How Make Script Change With Change Of Team/class
Xtof
Join Date: 2003-04-15 Member: 15514Members
<div class="IPBDescription">cuz i don't know how to do it...</div> Hi to everyone,
I have used the search function to look for an answer that I clearly haven't found, otherwise you wouldn't be reading this here. I hope that here is the right place to get some help (or should i go to a shrink).
What I basically want to achieve is to make my configuration change <u>automatically</u> (so without pushing a key) with (1) the changing of teams and with (2) the changing of class (I guess 2=1, changing class in scripting will equal to changing teams, cuz that's a different class).
(1) Marine <-> Aliens
(2) Marine: rine/HA/Jper <-> Commander
(2) Alien: skulk <-> gorge <-> lerk <-> fade <-> ono
<u>Is there a way to do it?</u> Yes or no?
If not (but i guess it is possible) I would like to work with a menu that is bound to one single button, and where i can cycle through the different configurations. That would be a fast way to work and it take just one key from my keyboard, which I can live with.
I hope you get the picture of what I want. Tx for the help annyone might five me...
Greetz,
XtOf
I have used the search function to look for an answer that I clearly haven't found, otherwise you wouldn't be reading this here. I hope that here is the right place to get some help (or should i go to a shrink).
What I basically want to achieve is to make my configuration change <u>automatically</u> (so without pushing a key) with (1) the changing of teams and with (2) the changing of class (I guess 2=1, changing class in scripting will equal to changing teams, cuz that's a different class).
(1) Marine <-> Aliens
(2) Marine: rine/HA/Jper <-> Commander
(2) Alien: skulk <-> gorge <-> lerk <-> fade <-> ono
<u>Is there a way to do it?</u> Yes or no?
If not (but i guess it is possible) I would like to work with a menu that is bound to one single button, and where i can cycle through the different configurations. That would be a fast way to work and it take just one key from my keyboard, which I can live with.
I hope you get the picture of what I want. Tx for the help annyone might five me...
Greetz,
XtOf
Comments
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
bind x "impulse 114; say_team I'm going Gorge!; exec gorge.cfg"
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
and with aliens you can change the configs for each class if you use buttons or a commandmenu to evolve in pretty much the same way; however, this can not be done with the right-click menu as im pretty sure that menu can only execute impulses. The only exception i know of for this is in commandmenus. In a commandmenu, there are 2 ways of detections, but you can only do it by team and map, such as this.
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
"1" "Test Team"{
TEAM2 "1" "Chuckle" "impulse 7"
TEAM1 "2" "Covering" "say_team Marines, I've got your back!; Impulse 8"
}
"2" "Test Map"{
MAP ns_hera "1" "Go Atmos" "say_team Go to atmos!!"
MAP co_core "2" "Attack CC" "say_team Rush the CC!"
}
}
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
In the first section, you will only see the commands if you are on the team with that given number (TEAM1 = marines TEAM2 = aliens). On the second menu, you will only see those commands if you are on the map given.
If you would like, i could setup a menu for youto use to switch through your configs, as you mentioned in the later part of your post. If you would like me to, send me a PM.
6john6doe6 : <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->you could use the binds f1 and f2 for each key configuration, then use f1 and f2 to choose teams. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd--> Well that's already the way it is, but it does not load a particular configuration automatically does it!? But tx Anway.
Urd:
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->What your asking about can <u><b>not</b></u> be done.<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd--> That clearly gave me an answer.
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->If you would like, i could setup a menu for youto use to switch through your configs, as you mentioned in the later part of your post. If you would like me to, send me a PM. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd--> And that is what I did; I might post the result here later once I got the configuration I am hoping for. That way other - less experienced peeps concerning scripting (like me) - can use it. I am just looking to use scripts not for abuse, but because a keyboard does not have enough keys to do what I want.
Greetz,
XtOf