HIS-MOTHER Posted November 15, 2006 Share Posted November 15, 2006 I made a custom config and template, no issues there. Now in my configs I made a combo box for gametype, TDM, FFA, PCF, etc.. I now want to add combo box for the maps but some maps only run in certain gametypes. I do not want to have say a client select TDM and select a DM map. Is this where the parent Variable is used? How do I tell it that when TDM gametype is selected to only offer maps I assign as TDM maps? Thanks in advance. Link to comment Share on other sites More sharing options...
ECF Posted November 15, 2006 Share Posted November 15, 2006 Yes, this would be an instance where the parent variable would be used. Take a look at the setup for Ventrilo in the game configs. The cofig editor for the ventrilo_srv.ini has an example of this in the voice codecs variables. Link to comment Share on other sites More sharing options...
HIS-MOTHER Posted November 15, 2006 Author Share Posted November 15, 2006 Alright, I think I understand it now. So I have a variable of %gametype% With the values TDM, DM, CTF etc. Display names and values are the same in my config. Then I add a new one and set Misson one Variable> %map1% Parent Variable %gametype% Parent Value TDM Then if I am deciphering this correctly when they select TDM for a gametype it will only offer that map or maps if I set multiples for that value? Here I go Link to comment Share on other sites More sharing options...
ECF Posted November 16, 2006 Share Posted November 16, 2006 Correct. The secondary variable is dependant on the first ones response by the user. So if you select option 1, then the secondary variable list will display options associated with that choice. Link to comment Share on other sites More sharing options...
HIS-MOTHER Posted November 16, 2006 Author Share Posted November 16, 2006 Got it working! GREAT! Thanks for the help. It was a pain in the @ss but it was "painkiller I was working on. LOL Link to comment Share on other sites More sharing options...
ECF Posted November 16, 2006 Share Posted November 16, 2006 Glad you got it worked out. Link to comment Share on other sites More sharing options...
kaRMa Posted March 17, 2007 Share Posted March 17, 2007 lol how about sharing your painkiller config? or if anyone has one already id appreciate it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.