Class select and other useful scripts for Enemy Territory


(Ifurita) #1

If anyone wants a class/team/spawn point select script, I have one on my web site:

http://www.kan.org/michael/RTCW/et-class-select-v4.zip

Also, one for keeping the command map out:

//Command map script
//keeps map out until put away. used mostly when spotting artillery/mortar fire

set mapout “+mapexpand; +mapexpand; set nextmap vstr mapin”
set mapin “-mapexpand; -mapexpand; set nextmap vstr mapout”
set nextmap “vstr mapout”
bind x “vstr nextmap”

and one for toggling the fireteam icons on and off:

//Fireteam script - toggles buddy team icons
set showteam “selectbuddy -2; set nextteamtoggle vstr hideteam; echo Team Highlighted!!!”
set hideteam “selectbuddy -1; set nextteamtoggle vstr showteam; echo Team icons hidden!!!”
set nextteamtoggle “vstr showteam”
bind x “vstr nextteamtoggle”

That will be all


(ToeD) #2

hey man, i emailed you my script today.
hope will see it in. i dont know why it doesnt work.
i think that one i a bit more handyer that the one you wrote. since you wont have a menu and you have cool function attached binds :wink:


(Ifurita) #3

Without going into a major discussion about scripting, I’d added some comments in the quotes

//ALLIES

//covert ops
set co1 team [r][4][33]; say_team ^1spawning as a covert ops with a fg42;
set covertopsallies “vstr co2”

Should be:

set co1 “team b 4 33; say_team ^1spawning as a covert ops with a fg42;
set covertopsallies vstr co2”

Those changes apply to covert ops and soldier

set co2 team [r][4][25]; say_team ^1spawning as a covert ops with a garand;
set covertopsallies “vstr co3”
set co3 team [r][4][10]; say_team ^1spawning as a covert ops with a sten;
set covertopsallies “vstr co1”

set covertopsallies “vstr co1”
bind F10 “vstr covertopsallies”

//soldier
set sold1 team [r][0][35]; say_team ^1spawning as a soldier with a mortar;
set soldierallies “vstr sold2”
set sold2 team [r][0][31]; say_team ^1spawning as a soldier with a mg42; set
soldierallies “vstr sold3”
set sold3 team [r][0][5]; say_team ^1spawning as a soldier with a
panzerfaust; set soldierallies “vstr sold4”
set sold4 team [r][0][6]; say_team ^1spawning as a soldier with a
flamethrower; set soldierallies “vstr sold1”

set soldierallies “vstr sold1”
bind F9 “vstr soldierallies”

//engineer
set engi1 "team [r][2][8]; say_team ^1spawning as a engineer with a
thompson; bind 6 vstr sixx_eng;bind 5 vstr five_eng; set engineerallies
“vstr engi2"”

Have no idea what this does:

bind 6 vstr sixx_eng;bind 5 vstr five_eng;

Lose the first " in front of “vstr engi2”

set engi2 "team [r][2][24]; say_team ^1spawning as a engineer with a garand;
bind 6 vstr sixx_eng;bind 5 vstr five_eng; set engineerallies “vstr engi1"”

set engineerallies “vstr majoor1”
bind F8 “vstr engineerallies”

There is no line of script named majoor1

//field ops
bind F6 team [r][3][8]; say_team ^1spawning as a field ops with a thompson;
bind 6 vstr sixx_lt;bind 5 vstr five_lt

See comment above about elements which i have no idea what they do

//medic
bind F7 team [r][1][8]; say_team ^1spawning as a medic with a thompson; bind
6 vstr sixx_med;bind 5 vstr five_med

See comment above about elements which i have no idea what they do


(ToeD) #4

bind 6 vstr sixx_med;bind 5 vstr five_med
this is the part that bind 6 to weaponbank 6 and say dropping medpacks when you are a medic :slight_smile: (bottom of spawn.cfg) edit: which i, as i now see, forgot to add to it :frowning:

the majoor1 is something i forgot to change

thanks for looking at it :slight_smile: i really appriciate it.

toed