View Full Version : class/weapon selection script
Joe999
06-29-2007, 09:51 AM
i've created the following script in order to switch classes using the numeric keypad keys 1-5:
/* switch classes with keypad */
/* GDF */
bind "kp_end" "clientClass soldier ; addchatline '^1class: ^3Soldier'" "" "soldier"
bind "kp_downarrow" "clientClass medic ; addchatline '^1class: ^3Medic'" "" "soldier"
bind "kp_pgdn" "clientClass engineer ; addchatline '^1class: ^3Engineer'" "" "soldier"
bind "kp_leftarrow" "clientClass fieldops ; addchatline '^1class: ^3FieldOps'" "" "soldier"
bind "kp_5" "clientClass covertops; addchatline '^1class: ^3CovertOps'" "" "soldier"
bind "kp_end" "clientClass soldier ; addchatline '^1class: ^3Soldier'" "" "medic"
bind "kp_downarrow" "clientClass medic ; addchatline '^1class: ^3Medic'" "" "medic"
bind "kp_pgdn" "clientClass engineer ; addchatline '^1class: ^3Engineer'" "" "medic"
bind "kp_leftarrow" "clientClass fieldops ; addchatline '^1class: ^3FieldOps'" "" "medic"
bind "kp_5" "clientClass covertops; addchatline '^1class: ^3CovertOps'" "" "medic"
bind "kp_end" "clientClass soldier ; addchatline '^1class: ^3Soldier'" "" "engineer"
bind "kp_downarrow" "clientClass medic ; addchatline '^1class: ^3Medic'" "" "engineer"
bind "kp_pgdn" "clientClass engineer ; addchatline '^1class: ^3Engineer'" "" "engineer"
bind "kp_leftarrow" "clientClass fieldops ; addchatline '^1class: ^3FieldOps'" "" "engineer"
bind "kp_5" "clientClass covertops; addchatline '^1class: ^3CovertOps'" "" "engineer"
bind "kp_end" "clientClass soldier ; addchatline '^1class: ^3Soldier'" "" "fieldops"
bind "kp_downarrow" "clientClass medic ; addchatline '^1class: ^3Medic'" "" "fieldops"
bind "kp_pgdn" "clientClass engineer ; addchatline '^1class: ^3Engineer'" "" "fieldops"
bind "kp_leftarrow" "clientClass fieldops ; addchatline '^1class: ^3FieldOps'" "" "fieldops"
bind "kp_5" "clientClass covertops; addchatline '^1class: ^3CovertOps'" "" "fieldops"
bind "kp_end" "clientClass soldier ; addchatline '^1class: ^3Soldier'" "" "covertops"
bind "kp_downarrow" "clientClass medic ; addchatline '^1class: ^3Medic'" "" "covertops"
bind "kp_pgdn" "clientClass engineer ; addchatline '^1class: ^3Engineer'" "" "covertops"
bind "kp_leftarrow" "clientClass fieldops ; addchatline '^1class: ^3FieldOps'" "" "covertops"
bind "kp_5" "clientClass covertops; addchatline '^1class: ^3CovertOps'" "" "covertops"
/* Strogg */
bind "kp_end" "clientClass aggressor ; addchatline '^1class: ^3Aggressor'" "" "aggressor"
bind "kp_downarrow" "clientClass technician ; addchatline '^1class: ^3Technician'" "" "aggressor"
bind "kp_pgdn" "clientClass constructor; addchatline '^1class: ^3Constructor'" "" "aggressor"
bind "kp_leftarrow" "clientClass oppressor ; addchatline '^1class: ^3Oppressor'" "" "aggressor"
bind "kp_5" "clientClass infiltrator; addchatline '^1class: ^3Infiltrator'" "" "aggressor"
bind "kp_end" "clientClass aggressor ; addchatline '^1class: ^3Aggressor'" "" "technician"
bind "kp_downarrow" "clientClass technician ; addchatline '^1class: ^3Technician'" "" "technician"
bind "kp_pgdn" "clientClass constructor; addchatline '^1class: ^3Constructor'" "" "technician"
bind "kp_leftarrow" "clientClass oppressor ; addchatline '^1class: ^3Oppressor'" "" "technician"
bind "kp_5" "clientClass infiltrator; addchatline '^1class: ^3Infiltrator'" "" "technician"
bind "kp_end" "clientClass aggressor ; addchatline '^1class: ^3Aggressor'" "" "constructor"
bind "kp_downarrow" "clientClass technician ; addchatline '^1class: ^3Technician'" "" "constructor"
bind "kp_pgdn" "clientClass constructor; addchatline '^1class: ^3Constructor'" "" "constructor"
bind "kp_leftarrow" "clientClass oppressor ; addchatline '^1class: ^3Oppressor'" "" "constructor"
bind "kp_5" "clientClass infiltrator; addchatline '^1class: ^3Infiltrator'" "" "constructor"
bind "kp_end" "clientClass aggressor ; addchatline '^1class: ^3Aggressor'" "" "oppressor"
bind "kp_downarrow" "clientClass technician ; addchatline '^1class: ^3Technician'" "" "oppressor"
bind "kp_pgdn" "clientClass constructor; addchatline '^1class: ^3Constructor'" "" "oppressor"
bind "kp_leftarrow" "clientClass oppressor ; addchatline '^1class: ^3Oppressor'" "" "oppressor"
bind "kp_5" "clientClass infiltrator; addchatline '^1class: ^3Infiltrator'" "" "oppressor"
bind "kp_end" "clientClass aggressor ; addchatline '^1class: ^3Aggressor'" "" "infiltrator"
bind "kp_downarrow" "clientClass technician ; addchatline '^1class: ^3Technician'" "" "infiltrator"
bind "kp_pgdn" "clientClass constructor; addchatline '^1class: ^3Constructor'" "" "infiltrator"
bind "kp_leftarrow" "clientClass oppressor ; addchatline '^1class: ^3Oppressor'" "" "infiltrator"
bind "kp_5" "clientClass infiltrator; addchatline '^1class: ^3Infiltrator'" "" "infiltrator"
that looks a bit circumstantial. is there a simpler way to achieve this, i. e. is there a strogg or gdf context?
and how can i cycle through the weapons, especially using the class change buttons?
thanks for hints :)
Kendle
06-29-2007, 10:58 AM
Here's my Class script. It uses 4 files:-
class.cfg
// ================================================== ==========================
// Kendle's ET:QW Config
// Download from :-
// http://www.gamersnation.co.uk/Competition/players/op=playerViewGame/cid=106/game=14.html
// ================================================== ==========================
// Teams
// --------------------------------------
bind F5 "exec spectator.cfg" // Join Spectators
bind F6 "exec gdf.cfg" // Join GDF
bind F7 "exec strogg.cfg" // Join Strogg
spectator.cfg
// ================================================== ==========================
// Kendle's ET:QW Config
// Download from :-
// http://www.gamersnation.co.uk/Competition/players/op=playerViewGame/cid=106/game=14.html
// ================================================== ==========================
ClientTeam Spectator
addchatline "Selected Team : Spectator"
set specmessage "addchatline 'Join a Team First'"
bind F8 $specmessage
bind F9 $specmessage
bind F10 $specmessage
bind F11 $specmessage
bind F12 $specmessage
gdf.cfg
// ================================================== ==========================
// Kendle's ET:QW Config
// Download from :-
// http://www.gamersnation.co.uk/Competition/players/op=playerViewGame/cid=106/game=14.html
// ================================================== ==========================
addchatline "Selected Team : GDF"
// GDF Class Selection
// --------------------------------------
// Soldier
set b_s1 "bind F8 $b_s2; ClientTeam GDF; ClientClass Soldier 0; addchatline 'Soldier Assault Rifle'"
set b_s2 "bind F8 $b_s3; ClientTeam GDF; ClientClass Soldier 1; addchatline 'Soldier Rocket Launcher'"
set b_s3 "bind F8 $b_s4; ClientTeam GDF; ClientClass Soldier 2; addchatline 'Soldier GPMG'"
set b_s4 "bind F8 $b_s1; ClientTeam GDF; ClientClass Soldier 3; addchatline 'Soldier Shotgun'"
bind F8 $b_s1
// Medic
set b_m1 "bind F9 $b_m2; ClientTeam GDF; ClientClass Medic 0; addchatline 'Medic Assault Rifle'"
set b_m2 "bind F9 $b_m1; ClientTeam GDF; ClientClass Medic 1; addchatline 'Medic Assault Shotgun'"
bind F9 $b_m1
// Engineer
set b_e1 "bind F10 $b_e2; ClientTeam GDF; ClientClass Engineer 0; addchatline 'Engineer Assault Rifle'"
set b_e2 "bind F10 $b_e3; ClientTeam GDF; ClientClass Engineer 1; addchatline 'Engineer Shotgun'"
set b_e3 "bind F10 $b_e1; ClientTeam GDF; ClientClass Engineer 2; addchatline 'Engineer Assault Rifle Grenade Launcher'"
bind F10 $b_e1
// Field Ops
set b_f1 "bind F11 $b_f2; ClientTeam GDF; ClientClass FieldOps 0; addchatline 'Field Ops Assault Rifle'"
set b_f2 "bind F11 $b_f1; ClientTeam GDF; ClientClass FieldOps 1; addchatline 'Field Ops Scoped Assault Rifle'"
bind F11 $b_f1
// Covert Ops
set b_c1 "bind F12 $b_c2; ClientTeam GDF; ClientClass CovertOps 0; addchatline 'Covert Assault Rifle'"
set b_c2 "bind F12 $b_c1; ClientTeam GDF; ClientClass CovertOps 1; addchatline 'Covert Sniper Rifle'"
bind F12 $b_c1
// Mouse Wheel is used for Next - Prev Weapon as GDF
// (it's used for Stroy Up - Down as Strogg)
bind MWHEELUP "_weapprev"
bind MWHEELDOWN "_weapnext"
// GDF specific VSAYs
bind * "clientQuickChat quickchat/global/bye"
bind KP_DOWNARROW "clientquickchat quickchat/need/ammo"
bind e "clientQuickChat quickchat/need/team/engineer"
bind r "clientQuickChat quickchat/need/team/fieldops"
bind m "clientQuickChat quickchat/need/team/medic"
bind k "clientQuickChat quickchat/global/taunts/enemyweakened"
strogg.cfg
// ================================================== ==========================
// Kendle's ET:QW Config
// Download from :-
// http://www.gamersnation.co.uk/Competition/players/op=playerViewGame/cid=106/game=14.html
// ================================================== ==========================
addchatline "Selected Team : Strogg"
// Strogg Class Selection
// --------------------------------------
// Aggressor
set r_s1 "bind F8 $r_s2; ClientTeam Strogg; ClientClass Aggressor 0; addchatline 'Aggressor Lacerator'"
set r_s2 "bind F8 $r_s3; ClientTeam Strogg; ClientClass Aggressor 1; addchatline 'Aggressor Obliterator'"
set r_s3 "bind F8 $r_s4; ClientTeam Strogg; ClientClass Aggressor 2; addchatline 'Aggressor Hyperblaster'"
set r_s4 "bind F8 $r_s1; ClientTeam Strogg; ClientClass Aggressor 3; addchatline 'Aggressor Nailgun'"
bind F8 $r_s1
// Technician
set r_m1 "bind F9 $r_m2; ClientTeam Strogg; ClientClass Technician 0; addchatline 'Technician Lacerator'"
set r_m2 "bind F9 $r_m1; ClientTeam Strogg; ClientClass Technician 1; addchatline 'Technician Nailgun'"
bind F9 $r_m1
// Constructor
set r_e1 "bind F10 $r_e2; ClientTeam Strogg; ClientClass Constructor 0; addchatline 'Constructor Lacerator'"
set r_e2 "bind F10 $r_e3; ClientTeam Strogg; ClientClass Constructor 1; addchatline 'Constructor Nailgun'"
set r_e3 "bind F10 $r_e1; ClientTeam Strogg; ClientClass Constructor 2; addchatline 'Constructor Lacerator Plasma Launcher'"
bind F10 $r_e1
// Oppressor
set r_f1 "bind F11 $r_f2; ClientTeam Strogg; ClientClass Oppressor 0; addchatline 'Oppressor Lacerator'"
set r_f2 "bind F11 $r_f1; ClientTeam Strogg; ClientClass Oppressor 1; addchatline 'Oppressor Scoped Lacerator'"
bind F11 $r_f1
// Infiltrator
set r_c1 "bind F12 $r_c2; ClientTeam Strogg; ClientClass Infiltrator 0; addchatline 'Infiltrator Lacerator'"
set r_c2 "bind F12 $r_c1; ClientTeam Strogg; ClientClass Infiltrator 1; addchatline 'Infiltrator Railgun'"
bind F12 $r_c1
// Mouse Wheel is used for Stroy Up - Down as Strogg
// (it's used for Next - Previous Weapon as GDF)
bind "MWHEELUP" "_stroyUp"
bind "MWHEELDOWN" "_stroyDown"
// Strogg specific VSAYs
bind * "clientQuickChat quickchat/global/taunts/meh"
bind KP_DOWNARROW "clientquickchat quickchat/need/stroyent"
bind e "clientQuickChat quickchat/need/team/constructor"
bind r "clientQuickChat quickchat/need/team/oppressor"
bind m "clientQuickChat quickchat/need/team/technician"
bind k "clientQuickChat quickchat/global/taunts/theycrumble"
So, select a team:-
F5 = Spectator
F6 = GDF
F7 = Strogg
Then select a Class:-
F8 = Soldier / Agressor
F9 = Medic / Technician
F10 = Engineer / Constructor
F11 = Field Ops / Oppressor
F12 = Covert Ops / Infiltrator
Repeatedly pressing F8 - F12 will cycle through the weapon loadouts for each Class, so GDF - Soldier - GPMG is F6, F8, F8, F8
All choices are echoed on screen so you know what you're selecting.
This script, including my complete config (cvars / binds etc.) can be downloaded here:-
http://www.gamersnation.co.uk/Competition/players/op=playerViewGame/cid=106/game=14.html
I'm always open to suggestions for how to improve things as well, we're all new to this and only just beginning to learn what's possible ;)
Joe999
06-29-2007, 11:31 AM
hmmm ... just found out that you can already select classes & cycle through weapons in limbo menu using the standard keys 1-5. guess i don't need a script after all, the only thing i need to do is to bind the _limbomenu command to a key that's quickly accessible.
paZifist
06-29-2007, 11:50 AM
plz add more infos about resolution in your cfg. you have set it to 5:4 and 1280x1024 what is not ok for most people would be nice if you at the other modi in the comments of the cfg so it can be edited effectively. I had to delete the section of the cfg. to overwrite them when starting the game.
and i dont know how you are playing but right, left, back on the crosskeys and forward on a ? WTF :D I had to make all binds disappear because you only can change things in the cfg. The game doesnt overwrite existing cvars (what is really stupid)
the rest of the config is freakin great!
Kendle
06-29-2007, 02:15 PM
Yeah, it's a pretty comprehensive config, but it does kinda rely on anyone who wants to use it to edit the bits they need to change, specifically the binds and I guess things like resolution. You can of course just comment out the options you don't want to set via config and set them in-game (at least the basic things like resolution).
As for movement I use the cursor keys, because I'm left-handed and I've been using those keys since I first started playing FPS games with Wolf3D and DOOM, too many years ago to remember now!
Kendle
06-29-2007, 02:19 PM
hmmm ... just found out that you can already select classes & cycle through weapons in limbo menu using the standard keys 1-5. guess i don't need a script after all, the only thing i need to do is to bind the _limbomenu command to a key that's quickly accessible.
You can change team / class in the limbo menu pretty quickly, but it means bringing up the limbo menu. Most RTCW / ET Clan players use class changing scripts cos they may need to change class instantly and won't want to do so without losing their view of the game, although it has to be said ET:QW's limbo nenu is better than either ET's or RTCW's.
dommafia
06-29-2007, 02:38 PM
thanks for all the great info kendle and joe, now on to customize all this to my own needs :D
Joe999
06-29-2007, 03:03 PM
You can change team / class in the limbo menu pretty quickly, but it means bringing up the limbo menu. Most RTCW / ET Clan players use class changing scripts cos they may need to change class instantly and won't want to do so without losing their view of the game, although it has to be said ET:QW's limbo nenu is better than either ET's or RTCW's.
yeah, it's pretty fast. no problem imo to have it up for a flash.
the only wish i have is maybe being able to navigate the classes with movement keys a/d or leftarrow/rightarrow on keypad, and the weapons with movement keys w/s or uparrow/downarrow on keypad in the limbo menu.
Ifurita
06-29-2007, 03:06 PM
I have 2 keys bound, one to exec the strogg.cfg and another to exec the gdf config. The configs also change some key binds and vsay binds.
GDF.cfg
// GDF Class binds
// By Michael "Ifurita" Kan, with lots of help. Updated 6/30/07
// ETQW 4 Newbies :: http://4newbies.planetwolfenstein.gamespy.com/ETQW
addchatline "^3GDF classes loaded"
bind "MWHEELDOWN" "_reload" "" "default"
bind "LEFTARROW" "clientQuickChat quickchat/need/medic" "" "default"
bind "RIGHTARROW" "clientQuickChat quickchat/need/ammo" "" "default"
bind "RIGHTARROW" "quickchat/self/items/suppliesdropped" "" "medic"
set c_blargh1 "clientTeam GDF; ClientClass CovertOps 0; addchatline '^3Covert Ops^7*^3Assault Rifle'; bind KP_END $c_blargh2"
set c_blargh2 "clientTeam GDF; ClientClass CovertOps 1; addchatline '^3Covert Ops^7*^3Sniper'; bind KP_END $c_blargh1"
bind KP_END $c_blargh1
set e_blargh1 "clientTeam GDF; ClientClass Engineer 0; addchatline '^3Engineer^7*^3Assault Rifle'; bind KP_DOWNARROW $e_blargh2"
set e_blargh2 "clientTeam GDF; ClientClass Engineer 1; addchatline '^3Engineer^7*^3Shotgun'; bind KP_DOWNARROW $e_blargh2"
set e_blargh3 "clientTeam GDF; ClientClass Engineer 2; addchatline '^3Engineer^7*^3Grenade Launcher'; bind KP_DOWNARROW $e_blargh1"
bind KP_DOWNARROW $e_blargh1
set m_blargh1 "clientTeam GDF; ClientClass Medic 0; addchatline '^3Medic^7*^3Assault Rifle'; bind KP_PGDN $m_blargh2"
set m_blargh2 "clientTeam GDF; ClientClass Medic 1; addchatline '^3Medic^7*^3Shotgun'; bind KP_PGDN $m_blargh1"
bind KP_PGDN $m_blargh1
set f_blargh1 "clientTeam GDF; ClientClass FieldOps 0; addchatline '^3FieldOps^7*^3Assault Rifle'; bind KP_PGDN $f_blargh2"
set f_blargh2 "clientTeam GDF; ClientClass FieldOps 1; addchatline '^3FieldOps^7*^3Scoped AR'; bind KP_PGDN $f_blargh1"
bind KP_PGDN $f_blargh1
set s_blargh1 "clientTeam GDF; ClientClass Soldier 0; addchatline '^3Soldier^7*^3Assault Rifle'; bind KP_5 $s_blargh2"
set s_blargh2 "clientTeam GDF; ClientClass Soldier 1; addchatline '^3Soldier^7*^3Rocket Launcher'; bind KP_5 $s_blargh3"
set s_blargh3 "clientTeam GDF; ClientClass Soldier 2; addchatline '^3Soldier^7*^3GPMG'; bind KP_5 $s_blargh4"
set s_blargh4 "clientTeam GDF; ClientClass Soldier 3; addchatline '^3Soldier^7*^3Shotgun'; bind KP_5 $s_blargh1"
bind KP_5 $s_blargh1
Strogg.cfg
// Strogg Class binds
// By Michael "Ifurita" Kan, with lots of help. Updated 6/30/07
// ETQW 4 Newbies :: http://4newbies.planetwolfenstein.gamespy.com/ETQW
addchatline "^1Strogg classes loaded"
bind "MWHEELDOWN" "_stroyDown" //Allows Strogg to exchange ammo for health
bind "LEFTARROW" "clientQuickChat quickchat/need/technician"
bind "RIGHTARROW" "sayteam <-- Spawnhost available" "" "technician"
bind "RIGHTARROW" "clientQuickChat quickchat/need/stroyent" "" "default"
set i_blargh1 "clientTeam Strogg; ClientClass Infiltrator 0; addchatline '^1Infiltrator^3*^1Lacerator'; bind KP_END $i_blargh2"
set i_blargh2 "clientTeam Strogg; ClientClass Infiltrator 1; addchatline '^1Infiltrator^3*^1Railgun'; bind KP_END $i_blargh1"
bind KP_END $i_blargh1
set con_blargh1 "clientTeam Strogg; ClientClass Constructor 0; addchatline '^1Constructor^3*^1Lacerator'; bind KP_DOWNARROW $con_blargh2"
set con_blargh2 "clientTeam Strogg; ClientClass Constructor 1; addchatline '^1Constructor^3*^1Nailgun'; bind KP_DOWNARROW $con_blargh3"
set con_blargh3 "clientTeam Strogg; ClientClass Constructor 2; addchatline '^1Constructor^3*^1Lacerator w/ Plasma Launcher'; bind KP_DOWNARROW $con_blargh1"
bind KP_DOWNARROW $con_blargh1
set tech_blargh1 "clientTeam Strogg; ClientClass Technician 0; addchatline '^1Technician^3*^1Lacerator'; bind KP_PGDN $tech_blargh2"
set tech_blargh2 "clientTeam Strogg; ClientClass Technician 1; addchatline '^1Technician^3*^1Nailgun'; bind KP_PGDN $tech_blargh1"
bind KP_PGDN $tech_blargh1
set opp_blargh1 "clientTeam Strogg; ClientClass Oppressor 0; addchatline '^1Oppressor^3*^1Lacerator'; bind KP_PGDN $opp_blargh2"
set opp_blargh2 "clientTeam Strogg; ClientClass Oppressor 1; addchatline '^1Oppressor^3*^1Accurized Lacerator'; bind KP_PGDN $opp_blargh1"
bind KP_PGDN $opp_blargh1
set a_blargh1 "clientTeam Strogg; ClientClass Aggressor 0; addchatline '^1Aggressor^3*^1Lacerator'; bind KP_5 $a_blargh2"
set a_blargh2 "clientTeam Strogg; ClientClass Aggressor 1; addchatline '^1Aggressor^3*^1Obliterator'; bind KP_5 $a_blargh3"
set a_blargh3 "clientTeam Strogg; ClientClass Aggressor 2; addchatline '^1Aggressor^3*^1Hyperblaster'; bind KP_5 $a_blargh4"
set a_blargh4 "clientTeam Strogg; ClientClass Aggressor 3; addchatline '^1Aggressor^3*^1Nailgun'; bind KP_5 $a_blargh1"
bind KP_5 $a_blargh1
Ender-Wiggin.DA.
06-29-2007, 06:51 PM
thanks Kendle, I was trying to write something like that last night but discovered that vstr scripting doesn't work anymore.
Demolama
06-30-2007, 03:58 PM
if you do something like this you will automatically spawn you when you press F5 or F6 with whatever class you pick as default... so for me its Fops or Oppressor
bind "F4" "clientTeam spectator" "" "default"
bind "F5" "clientTeam gdf; ClientClass FieldOps 0; exec GDF_spawn.cfg" "" "default"
bind "F6" "clientTeam strogg;ClientClass Oppressor 0; exec Strogg_spawn.cfg" "" "default"
also Iffy seemed to have forgotten about the upgrades Fops/Opp and Eng/Con get as a weapon choice. :P
Ifurita
06-30-2007, 04:05 PM
Hmmm, I had those in at one point. Updated script posted above
FlyingFork
07-01-2007, 02:32 PM
I wrote this one today:
bind "Kp_home" "ClientClass Aggressor 0; ClientClass Soldier 0"
bind "Kp_uparrow" "ClientClass Aggressor 1; ClientClass Soldier 1"
bind "kp_pgup" "ClientClass Aggressor 2; ClientClass Soldier 2"
bind "kp_leftarrow" "ClientClass Aggressor 3; ClientClass Soldier 3"
bind "kp_5" "ClientClass Technician 0; ClientClass Medic 0"
bind "kp_rightarrow" "ClientClass Technician 1; ClientClass Medic 1"
bind "kp_end" "ClientClass Constructor 0; ClientClass Engineer 0"
bind "kp_end" "ClientClass Constructor 1; ClientClass Engineer 1"
bind "kp_end" "ClientClass Constructor 2; ClientClass Engineer 2"
bind "uparrow" "ClientClass Oppressor 0; ClientClass FieldOps 0"
bind "leftarrow" "ClientClass Oppressor 1; ClientClass FieldOps 1"
bind "downarrow" "ClientClass Infiltrator 0; ClientClass CovertOps 0"
bind "rightarrow" "ClientClass Infiltrator 1; ClientClass CovertOps 1"
Unfortunately it only works with GDF, the Storgg-commands are somehow just missing out. Anyone got a clue?
Ifurita
07-01-2007, 02:36 PM
Well, the way the game would read that, is you're choosing a strogg class first, then immediately selecting a GDF class. It's like being at a restaurant and saying, "I'd like the salad, no wait, bring me a steak". Lo and behold, when dinner comes around, you're presented with a steak.
FlyingFork
07-01-2007, 02:46 PM
Hm okay I thought it would just ignore the GDF one because it's not the team i am in. I also did that with the quickchat commands, but here the game ignores the mismatching commands.
Ifurita
07-01-2007, 03:52 PM
Just to clarify, that's what I THINK is going on. It's seeing the first choice, then sees a second choice, upon which it discards the first choice even though the second choice is invalid.
doson
07-17-2007, 04:27 PM
I managed to simplify Joe999's script by using team contexts and i added the SHIFT modifier to select the most used alternative weapons: the rocket launcher/obliterator for soldiers/aggressors and the sniper rifle/railgun for covops/infiltrators:
////////////////////////////////////////////////////////////////////////////////////////
//// CLASS SELECTION SCRIPT --- www.n1ce.it ////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
// Contexts ////////////////////////////////////////////
seta g_class_context_aggressor "team_strogg"
seta g_class_context_technician "team_strogg"
seta g_class_context_constructor "team_strogg"
seta g_class_context_oppressor "team_strogg"
seta g_class_context_infiltrator "team_strogg"
seta g_class_context_solider "team_gdf"
seta g_class_context_medic "team_gdf"
seta g_class_context_engineer "team_gdf"
seta g_class_context_fieldops "team_gdf"
seta g_class_context_covertops "team_gdf"
// GDF Classes ////////////////////////////////////////////
bind "1" "clientClass soldier ; addchatline '^0>>> Class ^2SOLDIER ^0with Assault Rifle'" "" "team_gdf"
bind "1" "clientClass soldier 1; addchatline '^0>>> Class ^2SOLDIER ^0with Rocket Launcher'" "shift" "team_gdf"
bind "2" "clientClass medic ; addchatline '^0>>> Class ^2MEDIC ^0with Assault Rifle'" "" "team_gdf"
bind "3" "clientClass engineer ; addchatline '^0>>> Class ^2ENGINEER ^0with Assault Rifle'" "" "team_gdf"
bind "4" "clientClass fieldops ; addchatline '^0>>> Class ^2FIELD OPS. ^0with Assault Rifle'" "" "team_gdf"
bind "5" "clientClass covertops; addchatline '^0>>> Class ^2COVERT OPS. ^0with Assault Rifle'" "" "team_gdf"
bind "5" "clientClass covertops 1; addchatline '^0>>> Class ^2COVERT OPS. ^0with Sniper Rifle'" "shift" "team_gdf"
// STROGG Classes ///////////////////////////////////////////
bind "1" "clientClass aggressor ; addchatline '^0>>> Class ^1AGGRESSOR ^0with Lacerator'" "" "team_strogg"
bind "1" "clientClass aggressor 1; addchatline '^0>>> Class ^1AGGRESSOR ^0with Obliterator'" "shift" "team_strogg"
bind "2" "clientClass technician ; addchatline '^0>>> Class ^1TECHNICIAN ^0with Lacerator'" "" "team_strogg"
bind "3" "clientClass constructor; addchatline '^0>>> Class ^1CONSTRUCTOR ^0with Lacerator'" "" "team_strogg"
bind "4" "clientClass oppressor ; addchatline '^0>>> Class ^1OPPRESSOR ^0with Lacerator'" "" "team_strogg"
bind "5" "clientClass infiltrator; addchatline '^0>>> Class ^1INFILTRATOR ^0with Lacerator'" "" "team_strogg"
bind "5" "clientClass infiltrator 1; addchatline '^0>>> Class ^1INFILTRATOR ^0with RailGun'" "shift" "team_strogg"
echo "^aCLASS SELECTION SCRIPT LOADED"
You select your class by pressing 1,2,3,4 or 5 and you will get that class depending on what team you're on.
Class come with the default weapons, if you want an alternative one you can use SHIFT+[numbers]:
SHIFT+1 gives you a soldier with rocket and SHIFT+5 gives you a covops with sniper rifle (same for the strogg team).
I didnt include shotguns/nailguns/heavy machine guns because i never use them, if you want to add them you can easily find out how (shotgun is clientclass medic 1 for example).
Thanks for the configs guys. These examples are great!
mikeX
07-25-2007, 07:44 PM
edit: fixed
doson
08-03-2007, 05:19 PM
Script updated
Keys from 1 to 5 used (obviously change them if you play with a WASD setup):
1 = Soldier/Aggressor with AR/Lacerator
shift+1 = Soldier/Aggressor with RL/Obliterator
2= Medic/Technician with AR/Lacerator
shift+2= Medic/Technician with ShotGun/NailGun
3= Engineer/Constructor AR/Lacerator
shift+3= Engineer/Constructor with ShotGun/Nailgun
4= Fieldops/Oppressor AR/Lacerator
shift+4= Fieldops/Oppressor with Accurized weapon
5= Covertops/Infiltrator AR/Lacerator
shift+5= Covertops/Infiltrator with Sniper rifle/RailGun
Doesn't work when inside a vehicle.
////////////////////////////////////////////////////////////////////////////////////////
//// CLASS SELECTION SCRIPT --- WWW.N1CE.IT ///////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////
unbind "1"
unbind "2"
unbind "3"
unbind "4"
unbind "5"
// Contexts ///////////////////////////////////////////
seta g_class_context_aggressor "team_strogg"
seta g_class_context_technician "team_strogg"
seta g_class_context_constructor "team_strogg"
seta g_class_context_oppressor "team_strogg"
seta g_class_context_infiltrator "team_strogg"
seta g_class_context_soldier "team_gdf"
seta g_class_context_medic "team_gdf"
seta g_class_context_engineer "team_gdf"
seta g_class_context_fieldops "team_gdf"
seta g_class_context_covertops "team_gdf"
seta g_bind_context_anansi "vehicle"
seta g_bind_context_badger "vehicle"
seta g_bind_context_bumblebee "vehicle"
seta g_bind_context_mcp "vehicle"
seta g_bind_context_platypus "vehicle"
seta g_bind_context_titan "vehicle"
seta g_bind_context_trojan "vehicle"
seta g_bind_context_husky "vehicle"
seta g_bind_context_desecrator "vehicle"
seta g_bind_context_goliath "vehicle"
seta g_bind_context_hog "vehicle"
seta g_bind_context_hornet "vehicle"
seta g_bind_context_icarus "vehicle"
// GDF ////////////////////////////////////////////
bind "1" "clientClass soldier 0; addchatline '^z>>> Class ^2SOLDIER ^zwith Assault Rifle'" "" "team_gdf"
bind "1" "clientClass soldier 1; addchatline '^z>>> Class ^2SOLDIER ^zwith Rocket Launcher'" "shift" "team_gdf"
bind "2" "clientClass medic 0; addchatline '^z>>> Class ^2MEDIC ^z con Assault Rifle'" "" "team_gdf"
bind "2" "clientClass medic 1; addchatline '^z>>> Class ^2MEDIC ^z con Shotgun'" "shift" "team_gdf"
bind "3" "clientClass engineer 0; addchatline '^z>>> Class ^2ENGINEER ^z con Assault Rifle'" "" "team_gdf"
bind "3" "clientClass engineer 1; addchatline '^z>>> Class ^2ENGINEER ^z con Shotgun'" "shift" "team_gdf"
bind "4" "clientClass fieldops 0; addchatline '^z>>> Class ^2FIELD OPS. ^z con Assault Rifle'" "" "team_gdf"
bind "4" "clientClass fieldops 1; addchatline '^z>>> Class ^2FIELD OPS. ^z con Scoped Rifle'" "shift" "team_gdf"
bind "5" "clientClass covertops 0; addchatline '^z>>> Class ^2COVERT OPS. ^z con Assault Rifle'" "" "team_gdf"
bind "5" "clientClass covertops 1; addchatline '^z>>> Class ^2COVERT OPS. ^zwith Sniper Rifle'" "shift" "team_gdf"
// Strogg /////////////////////////////////////////
bind "1" "clientClass aggressor 0; addchatline '^z>>> Class ^1AGGRESSOR ^zwith Lacerator'" "" "team_strogg"
bind "1" "clientClass aggressor 1; addchatline '^z>>> Class ^1AGGRESSOR ^zwith Obliterator'" "shift" "team_strogg"
bind "2" "clientClass technician 0; addchatline '^z>>> Class ^1TECHNICIAN ^zwith Lacerator'" "" "team_strogg"
bind "2" "clientClass technician 1; addchatline '^z>>> Class ^1TECHNICIAN ^zwith NailGun'" "shift" "team_strogg"
bind "3" "clientClass constructor 0; addchatline '^z>>> Class ^1CONSTRUCTOR ^zwith Lacerator'" "" "team_strogg"
bind "3" "clientClass constructor 1; addchatline '^z>>> Class ^1CONSTRUCTOR ^zwith NailGun'" "shift" "team_strogg"
bind "4" "clientClass oppressor 0; addchatline '^z>>> Class ^1OPPRESSOR ^zwith Lacerator'" "" "team_strogg"
bind "4" "clientClass oppressor 1; addchatline '^z>>> Class ^1OPPRESSOR ^zwith Scoped Lacerator'" "shift" "team_strogg"
bind "5" "clientClass infiltrator 0; addchatline '^z>>> Class ^1INFILTRATOR ^zwith Lacerator'" "" "team_strogg"
bind "5" "clientClass infiltrator 1; addchatline '^z>>> Class ^1INFILTRATOR ^zwith RailGun'" "shift" "team_strogg"
// PD //
bind "1" "addchatline '^1Class Selection Script doesn't work in veichles'" "" "vehicle"
bind "1" "addchatline '^1Class Selection Script doesn't work in veichles'" "shift" "vehicle"
bind "2" "addchatline '^1Class Selection Script doesn't work in veichles'" "" "vehicle"
bind "2" "addchatline '^1Class Selection Script doesn't work in veichles'" "shift" "vehicle"
bind "3" "addchatline '^1Class Selection Script doesn't work in veichles'" "" "vehicle"
bind "3" "addchatline '^1Class Selection Script doesn't work in veichles'" "shift" "vehicle"
bind "4" "addchatline '^1Class Selection Script doesn't work in veichles'" "" "vehicle"
bind "4" "addchatline '^1Class Selection Script doesn't work in veichles'" "shift" "vehicle"
bind "5" "addchatline '^1Class Selection Script doesn't work in veichles'" "" "vehicle"
bind "5" "addchatline '^1Class Selection Script doesn't work in veichles'" "shift" "vehicle"
addchatline "^z>>> ^3CLASS SELECTION SCRIPT LOADED ^z//www.n^11^zce.it"
RedFox
08-11-2007, 05:39 PM
Class and weapon section script
Once you enabled this script you only have the press CTRL and a number key a couple of times until you have selected the loadout you want to spawn with next time. The numbers are in the same sequence as in the Limbo menu: 1 Soldier/Aggressor; 2 Medic/Technician; 3 Engineer/Constructor; 4 FieldOps/Oppressor and 5 CovertOps/Infiltrator.
Add to autoexec.cfg:
//
// Team and class binds by =F=RedFox
//
set gdfteam "clientTeam gdf; vstr gdfteam0; vstr gdfteam1; vstr gdfteam2; addChatline 'GDF selected and classes loaded'"
set gdfteam0 "bind 1 $soldier0 CTRL; bind 2 $medic0 CTRL; bind 3 $engineer0 CTRL; bind 4 $fieldops0 CTRL; bind 5 $covertops0 CTRL;"
set gdfteam1 "bind t clientQuickchat botchat/generic/medicenroute CTRL"
set gdfteam2 "bind MOVEFORWARD '_forward' '' 'medic'; bind MOVEFORWARD '_forward' '' 'fieldops'; bind MOVEFORWARD '_forward' '' 'engineer'; bind MOVEFORWARD '_forward' '' 'covertops'; bind MOVEFORWARD '_forward' '' 'soldier'; vstr gdfteam2b"
set gdfteam2b "bind MOVEFORWARD $stroggteam '' 'technician'; bind MOVEFORWARD $stroggteam '' 'oppressor'; bind MOVEFORWARD $stroggteam '' 'constructor'; bind MOVEFORWARD $stroggteam '' 'infiltrator'; bind MOVEFORWARD $stroggteam '' 'aggressor'"
set stroggteam "clientTeam strogg; vstr stroggteam0; vstr stroggteam1; vstr stroggteam2; addChatline 'Strogg selected and classes loaded'"
set stroggteam0 "bind 1 $aggressor0 CTRL; bind 2 $technician0 CTRL; bind 3 $constructor0 CTRL; bind 4 $oppressor0 CTRL; bind 5 $infiltrator0 CTRL"
set stroggteam1 "bind t clientQuickchat botchat/generic/technicianenroute CTRL"
set stroggteam2 "bind MOVEFORWARD '_forward' '' 'technician'; bind MOVEFORWARD '_forward' '' 'oppressor'; bind MOVEFORWARD '_forward' '' 'constructor'; bind MOVEFORWARD '_forward' '' 'infiltrator'; bind MOVEFORWARD '_forward' '' 'aggressor'; vstr stroggteam2b"
set stroggteam2b "bind MOVEFORWARD $gdfteam '' 'medic'; bind MOVEFORWARD $gdfteam '' 'fieldops'; bind MOVEFORWARD $gdfteam '' 'engineer'; bind MOVEFORWARD $gdfteam '' 'covertops'; bind MOVEFORWARD $gdfteam '' 'soldier'"
set specteam "clientTeam spectator; vstr specteam0; vstr specteam1; vstr specteam2; addChatline 'Changed to spectator'"
set specteam0 "bind 1 '' 'CTRL'; bind 2 '' 'CTRL'; bind 3 '' 'CTRL'; bind 4 '' 'CTRL'; bind 5 '' 'CTRL'"
set specteam1 "bind t '' 'CTRL'"
set specteam2 "bind MOVEFORWARD $gdfteam '' 'medic'; bind MOVEFORWARD $gdfteam '' 'fieldops'; bind MOVEFORWARD $gdfteam '' 'engineer'; bind MOVEFORWARD $gdfteam '' 'covertops'; bind MOVEFORWARD $gdfteam '' 'soldier'; vstr specteam2b"
set specteam2b "bind MOVEFORWARD $stroggteam '' 'technician'; bind MOVEFORWARD $stroggteam '' 'oppressor'; bind MOVEFORWARD $stroggteam '' 'constructor'; bind MOVEFORWARD $stroggteam '' 'infiltrator'; bind MOVEFORWARD $stroggteam '' 'aggressor'"
bind "F5" $gdfteam "" "default"
bind "F6" $stroggteam "" "default"
bind "F7" $specteam "" "default"
bind "k" "kill" "CTRL"
// Do not change anything below this line
vstr specteam2
// Soldier
set soldier0 "ClientClass Soldier 0; addChatline 'Soldier Assault Rifle selected'; bind 1 $soldier1 CTRL; bind 2 $medic0 CTRL; bind 3 $engineer0 CTRL; bind 4 $fieldops0 CTRL; bind 5 $covertops0 CTRL"
set soldier1 "ClientClass Soldier 1; addChatline 'Soldier Rocket Launcher selected'; bind 1 $soldier2 CTRL; bind 2 $medic0 CTRL; bind 3 $engineer0 CTRL; bind 4 $fieldops0 CTRL; bind 5 $covertops0 CTRL"
set soldier2 "ClientClass Soldier 2; addChatline 'Soldier GPMG selected'; bind 1 $soldier3 CTRL; bind 2 $medic0 CTRL; bind 3 $engineer0 CTRL; bind 4 $fieldops0 CTRL; bind 5 $covertops0 CTRL"
set soldier3 "ClientClass Soldier 3; addChatline 'Soldier Shotgun selected'; bind 1 $soldier0 CTRL; bind 2 $medic0 CTRL; bind 3 $engineer0 CTRL; bind 4 $fieldops0 CTRL; bind 5 $covertops0 CTRL"
// Medic
set medic0 "ClientClass Medic 0; addChatline 'Medic Assault Rifle selected'; bind 2 $medic1 CTRL; bind 1 $soldier0 CTRL; bind 3 $engineer0 CTRL; bind 4 $fieldops0 CTRL; bind 5 $covertops0 CTRL"
set medic1 "ClientClass Medic 1; addChatline 'Medic Shotgun selected'; bind 2 $medic0 CTRL; bind 1 $soldier0 CTRL; bind 3 $engineer0 CTRL; bind 4 $fieldops0 CTRL; bind 5 $covertops0 CTRL"
// Engineer
set engineer0 "ClientClass Engineer 0; addChatline 'Engineer Assault Rifle selected'; bind 3 $engineer1 CTRL; bind 1 $soldier0 CTRL; bind 2 $medic0 CTRL; bind 4 $fieldops0 CTRL; bind 5 $covertops0 CTRL"
set engineer1 "ClientClass Engineer 1; addChatline 'Engineer Shotgun selected'; bind 3 $engineer2 CTRL; bind 1 $soldier0 CTRL; bind 2 $medic0 CTRL; bind 4 $fieldops0 CTRL; bind 5 $covertops0 CTRL"
set engineer2 "ClientClass Engineer 2; addChatline 'Engineer Assault Rifle w/ Grenade Launcher selected'; bind 3 $engineer0 CTRL; bind 1 $soldier0 CTRL; bind 2 $medic0 CTRL; bind 4 $fieldops0 CTRL; bind 5 $covertops0 CTRL"
// FieldOps
set fieldops0 "ClientClass FieldOps 0; addChatline 'FieldOps Assault Rifle selected'; bind 4 $fieldops1 CTRL; bind 1 $soldier0 CTRL; bind 2 $medic0 CTRL; bind 3 $engineer0 CTRL; bind 5 $covertops0 CTRL"
set fieldops1 "ClientClass FieldOps 1; addChatline 'FieldOps Scoped Assault Rifle selected'; bind 4 $fieldops0 CTRL; bind 1 $soldier0 CTRL; bind 2 $medic0 CTRL; bind 3 $engineer0 CTRL; bind 5 $covertops0 CTRL"
// CovertOps
set covertops0 "ClientClass CovertOps 0; addChatline 'CovertOps Scoped Assault Rifle selected'; bind 5 $covertops1 CTRL; bind 1 $soldier0 CTRL; bind 2 $medic0 CTRL; bind 3 $engineer0 CTRL; bind 4 $fieldops0 CTRL"
set covertops1 "ClientClass CovertOps 1; addChatline 'CovertOps Sniper selected'; bind 5 $covertops0 CTRL; bind 1 $soldier0 CTRL; bind 2 $medic0 CTRL; bind 3 $engineer0 CTRL; bind 4 $fieldops0 CTRL"
// Aggressor
set aggressor0 "ClientClass Aggressor 0; addChatline 'Aggressor Lacerator selected'; bind 1 $aggressor1 CTRL; bind 2 $technician0 CTRL; bind 3 $constructor0 CTRL; bind 4 $oppressor0 CTRL; bind 5 $infiltrator0 CTRL"
set aggressor1 "ClientClass Aggressor 1; addChatline 'Aggressor Obliterator selected'; bind 1 $aggressor2 CTRL; bind 2 $technician0 CTRL; bind 3 $constructor0 CTRL; bind 4 $oppressor0 CTRL; bind 5 $infiltrator0 CTRL"
set aggressor2 "ClientClass Aggressor 2; addChatline 'Aggressor Hyperblaster selected'; bind 1 $aggressor3 CTRL; bind 2 $technician0 CTRL; bind 3 $constructor0 CTRL; bind 4 $oppressor0 CTRL; bind 5 $infiltrator0 CTRL"
set aggressor3 "ClientClass Aggressor 3; addChatline 'Aggressor Nailgun selected'; bind 1 $aggressor0 CTRL; bind 2 $technician0 CTRL; bind 3 $constructor0 CTRL; bind 4 $oppressor0 CTRL; bind 5 $infiltrator0 CTRL"
// Technician
set technician0 "ClientClass Technician 0; addChatline 'Technician Lacerator selected'; bind 2 $technician1 CTRL; bind 1 $aggressor0 CTRL; bind 3 $constructor0 CTRL; bind 4 $oppressor0 CTRL; bind 5 $infiltrator0 CTRL"
set technician1 "ClientClass Technician 1; addChatline 'Technician Nailgun selected'; bind 2 $technician0 CTRL; bind 1 $aggressor0 CTRL; bind 3 $constructor0 CTRL; bind 4 $oppressor0 CTRL; bind 5 $infiltrator0 CTRL"
// Constructor
set constructor0 "ClientClass Constructor 0; addChatline 'Constructor Lacerator selected'; bind 3 $constructor1 CTRL; bind 1 $aggressor0 CTRL; bind 2 $technician0 CTRL; bind 4 $oppressor0 CTRL; bind 5 $infiltrator0 CTRL"
set constructor1 "ClientClass Constructor 1; addChatline 'Constructor Nailgun selected'; bind 3 $constructor2 CTRL; bind 1 $aggressor0 CTRL; bind 2 $technician0 CTRL; bind 4 $oppressor0 CTRL; bind 5 $infiltrator0 CTRL"
set constructor2 "ClientClass Constructor 2; addChatline 'Constructor Lacerator w/ Plasma Launcher selected'; bind 3 $constructor0 CTRL; bind 1 $aggressor0 CTRL; bind 2 $technician0 CTRL; bind 4 $oppressor0 CTRL; bind 5 $infiltrator0 CTRL"
// Oppressor
set oppressor0 "ClientClass Oppressor 0; addChatline 'Oppressor Lacerator selected'; bind 4 $oppressor1 CTRL; bind 1 $aggressor0 CTRL; bind 2 $technician0 CTRL; bind 3 $constructor0 CTRL; bind 5 $infiltrator0 CTRL"
set oppressor1 "ClientClass Oppressor 1; addChatline 'Oppressor Accurized Lacerator selected'; bind 4 $oppressor0 CTRL; bind 1 $aggressor0 CTRL; bind 2 $technician0 CTRL; bind 3 $constructor0 CTRL; bind 5 $infiltrator0 CTRL"
// Infiltrator
set infiltrator0 "ClientClass Infiltrator 0; addChatline 'Infiltrator Accurized Lacerator selected'; bind 5 $infiltrator1 CTRL; bind 1 $aggressor0 CTRL; bind 2 $technician0 CTRL; bind 3 $constructor0 CTRL; bind 4 $oppressor0 CTRL"
set infiltrator1 "ClientClass Infiltrator 1; addChatline 'Infiltrator Railgun selected'; bind 5 $infiltrator0 CTRL; bind 1 $aggressor0 CTRL; bind 2 $technician0 CTRL; bind 3 $constructor0 CTRL; bind 4 $oppressor0 CTRL"
You don't need to bind the clientQuickchat of course, but you can put any side specific binds in the gdfteam1 or stroggteam1 variables. Switch sides with the F5 (GDF) and F6 (Strogg) keys.
If you use the limbo menu, or the server or an admin changes your team, the side specific bindings will get loaded the first time you try to move forward, you just need to replace all instances of MOVEFORWARD with the key you use to move forward (no quotation marks, just a letter). If you don't want this behavior you need to remove the "vstr XXXteam2;" part from three lines that starts with "set XXXteam" where XXX is gdf, strogg and spec respectively and remove the line "vstr specteam2" completely.
If you select a different class it starts with the Assault Rifle/Lacerator unlike most scripts that "remember" the last state of that class. For instance, with this script to switch to the Medic/Shotgun combo from another class you press CTRL-2 twice, always, no matter what you used the last time you were a medic.
Also cleaned it up a bit so you don't need extra cfg files but can dump everything in you autoexec.cfg. Hope you like it. Thanks to everyone that gave my ideas by their examples.
bullet_magnet47
09-23-2007, 04:24 AM
Thanks so much Joe999 and everyone else who helped out.
I've spent like an hour trying to figure out how to do this.
THANKS!
Stilz
09-26-2007, 07:56 AM
This is written a bit different from the others. This contains 2 .cfg files, one GDF.cfg and one Strogg.cfg. Create an autoexec.cfg if you havent already done so and add these lines below.
Autoexec
bind "F9" "clientTeam gdf; exec gdf.cfg; addchatline $GDF"
bind "F10" "clientTeam Spectator" "" "default"
bind "F11" "clientTeam strogg; exec strogg.cfg; addchatline $Strogg"
seta GDF "^4|^7GDF Enabled^4|"
seta Strogg "^4|^7Strogg Enabled^4|"
GDF
//Class Toggle GDF
seta Soldier1 "^2|^7Soldier ^2- ^7Assault Rifle^2|"
seta Soldier2 "^2|^7Soldier ^2- ^7 Rocket Launcher^2|"
seta Soldier3 "^2|^7Soldier ^2- ^7 GPMG^2|"
seta Soldier4 "^2|^7Soldier ^2- ^7 Shotgun^2|"
seta Medic1 "^1|^7Medic ^1- ^7Assault Rifle^1|"
seta Medic2 "^1|^7Medic ^1- ^7Shotgun^1|"
seta Engineer1 "^4|^7Engineer ^4- ^7Assault Rifle^4|"
seta Engineer2 "^4|^7Engineer ^4- ^7Shotgun^4|"
seta Engineer3 "^4|^7Engineer ^4- ^7Grenade Launcher^4|"
seta FieldOps1 "^6|^7Field Ops ^6- ^7Assault Rifle^6|"
seta FieldOps2 "^6|^7Field Ops ^6- ^7Scoped Assault Rifle^6|"
seta CovertOps1 "^u|^7Covert Ops ^u- ^7Scoped Assault Rifle^u|"
seta CovertOps2 "^u|^7Covert Ops ^u- ^7Sniper Rifle^u|"
//Soldier
seta sol1 "clientClass Soldier 0; addchatline $Soldier1; seta sol0 vstr sol2; seta med0 $med1 ; seta eng0 $eng1; seta fop0 $fop1; seta cov0 $cov1"
seta sol2 "clientClass Soldier 1; addchatline $Soldier2; seta sol0 vstr sol3"
seta sol3 "clientClass Soldier 2; addchatline $Soldier3; seta sol0 vstr sol4"
seta sol4 "clientClass Soldier 3; addchatline $Soldier4; seta sol0 vstr sol1"
seta sol0 "vstr sol1"
bind f4 "vstr sol0"
//Medic
seta med1 "clientClass Medic 0; addchatline $Medic1; seta med0 vstr med2; seta sol0 $sol1 ; seta eng0 $eng1; seta fop0 $fop1; seta cov0 $cov1"
seta med2 "clientClass Medic 1; addchatline $Medic2; seta med0 vstr med1"
seta med0 "vstr med1"
bind F5 "vstr med0"
//Engineer
seta eng1 "clientClass Engineer 0; addchatline $Engineer1; seta eng0 vstr eng2; seta med0 $med1; seta sol0 $sol1; seta fop0 $fop1; seta cov0 $cov1"
seta eng2 "clientClass Engineer 1; addchatline $Engineer2; seta eng0 vstr eng3"
seta eng3 "clientClass Engineer 2; addchatline $Engineer3; seta eng0 vstr eng1"
seta eng0 "vstr eng1"
bind F6 "vstr eng0"
//Field Ops
seta fop1 "clientClass FieldOps 0; addchatline $FieldOps1; seta fop0 vstr fop2; seta med0 $med1 ; seta eng0 $eng1; seta sol0 $sol1; seta cov0 $cov1"
seta fop2 "clientClass FieldOps 1; addchatline $FieldOps2; seta fop0 vstr fop1"
seta fop0 "vstr fop1"
bind f7 "vstr fop0"
//Covert Ops
seta cov1 "clientClass CovertOps 0; addchatline $CovertOps1; seta cov0 vstr cov2; seta med0 $med1 ; seta eng0 $eng1; seta fop0 $fop1; seta sol0 $sol1"
seta cov2 "clientClass CovertOps 1; addchatline $CovertOps2; seta cov0 vstr cov1"
seta cov0 "vstr cov1"
bind f8 "vstr cov0"
Strogg
//Class Toggle Strogg
seta Aggressor1 "^2|^7Agggressor ^2- ^7Lacerator^2|"
seta Aggressor2 "^2|^7Agggressor ^2- ^7Obliterator^2|"
seta Aggressor3 "^2|^7Agggressor ^2- ^7Hyperblaster^2|"
seta Aggressor4 "^2|^7Agggressor ^2- ^7Nailgun^2|"
seta Technician1 "^1|^7Technician ^1- ^7Lacerator^1|"
seta Technician2 "^1|^7Technician ^1- ^7Nailgun^1|"
seta Constructor1 "^4|^7Constructor ^4- ^7Lacerator^4|"
seta Constructor2 "^4|^7Constructor ^4- ^7Nailgun^4|"
seta Constructor3 "^4|^7Constructor ^4- ^7Plasma Launcher^4|"
seta Oppressor1 "^6|^7Oppressor ^6- ^7Lacerator^6|"
seta Oppressor2 "^6|^7Oppressor ^6- ^7Accurized Lacerator^6|"
seta Infiltrator1 "^u|^7Infiltrator ^u- ^7Accurized Lacerator^u|"
seta Infiltrator2 "^u|^7Infiltrator ^u- ^7Railgun^u|"
//Aggressor
seta agg1 "clientClass Aggressor 0; addchatline $Aggressor1; seta agg0 vstr agg2; seta tech0 $tech1; seta con0 $con1; seta opp0 $opp1; seta inf0 $inf1"
seta agg2 "clientClass Aggressor 1; addchatline $Aggressor2; seta agg0 vstr agg3"
seta agg3 "clientClass Aggressor 2; addchatline $Aggressor3; seta agg0 vstr agg4"
seta agg4 "clientClass Aggressor 3; addchatline $Aggressor4; seta agg0 vstr agg1"
seta agg0 "vstr agg1"
bind f4 "vstr agg0"
//Technician
seta tech1 "clientClass Technician 0; addchatline $Technician1; seta tech0 vstr tech2; seta agg0 $agg1; seta con0 $con1; seta opp0 $opp1; seta inf0 $inf1"
seta tech2 "clientClass Technician 1; addchatline $Technician2; seta tech0 vstr tech1"
seta tech0 "vstr tech1"
bind F5 "vstr tech0"
//Constructor
seta con1 "clientClass Constructor 0; addchatline $Constructor1; seta con0 vstr con2; seta tech0 $tech1; seta agg0 $agg1; seta opp0 $opp1; seta inf0 $inf1"
seta con2 "clientClass Constructor 1; addchatline $Constructor2; seta con0 vstr con3"
seta con3 "clientClass Constructor 2; addchatline $Constructor3; seta con0 vstr con1"
seta con0 "vstr con1"
bind F6 "vstr con0"
//Oppressor
seta opp1 "clientClass Oppressor 0; addchatline $Oppressor1; seta opp0 vstr opp2; seta tech0 $tech1; seta con0 $con1; seta agg0 $agg1; seta inf0 $inf1"
seta opp2 "clientClass Oppressor 1; addchatline $Oppressor2; seta opp0 vstr opp1"
seta opp0 "vstr opp1"
bind f7 "vstr opp0"
//Infiltrator
seta inf1 "clientClass Infiltrator 0; addchatline $Infiltrator1; seta inf0 vstr inf2; seta tech0 $tech1; seta con0 $con1; seta opp0 $opp1; seta agg0 $agg1"
seta inf2 "clientClass Infiltrator 1; addchatline $Infiltrator2; seta inf0 vstr inf1"
seta inf0 "vstr inf1"
bind f8 "vstr inf0"
Remember to exec your autoexec.cfg in your console by typing "exec autoexec.cfg". Once you have done that, it will automatically load all your settings each time you run the game.
GoneMAD
09-27-2007, 06:03 PM
the whole point of an autoexec is that it automatically gets executed.. u shouldnt have to manually exec it
Stilz
09-28-2007, 02:04 AM
You exec it once and it will autoexec all the time.
5150CRASH
10-11-2007, 03:43 AM
ty for all the examples gives me some ideas as well
one of them was this:
bind "0" "clientquickchat quickchat/self/imsoldier" "" "soldier"
bind "0" "clientquickchat quickchat/self/immedic" "" "medic"
bind "0" "clientquickchat quickchat/self/imengineer" "" "engineer"
bind "0" "clientquickchat quickchat/self/imfieldops" "" "fieldops"
bind "0" "clientquickchat quickchat/self/imcovertops" "" "covertops"
bind "0" "clientquickchat quickchat/self/imaggressor" "" "aggressor"
bind "0" "clientquickchat quickchat/self/imtechnician" "" "technician"
bind "0" "clientquickchat quickchat/self/imconstructor" "" "constructor"
bind "0" "clientquickchat quickchat/self/imoppressor" "" "oppressor"
bind "0" "clientquickchat quickchat/self/iminfiltrator" "" "infiltrator"
might come in handy for ALL these scripts
I AM A XXXXXXXX in voicechat for whatever you are on one key
DocSnyper
10-11-2007, 09:06 AM
is there any way to combine this with a"kill" command so you can rapidly respawn as an e.g. engi - so you can change classes quicker if the respawntimer is very low and on a public server everybody is playing covops and nobody cares to defuse charges at the objective ??
5150CRASH
10-11-2007, 01:21 PM
yes,
bind "x" "kill"
or add "kill" after a ; in one of the scripts
Franek
01-02-2008, 08:51 PM
Fu.ck ... its a lot of this ... Can u give me 1 and a good one?
I want to have a class changer with a text, example
Example:
FrN Has Changed into a [Medic] with a [Shotgun]
... and all wpns as example say's
GDF:
Soldier --- Wpn 2 and 3 (RL and GPMG) --- 1/1+0 (numerical - on Num Pad)
Medic --- Wpn 1 and 2 (AR/ Shotgun) --- 2/2+0 (numerical - on Num Pad)
Enginner --- Wpn 2 and 3 (Shotgun/Granade Launcher) or if u cant make granade launcher so Wpn 1 and 2 (AR/Shotgun) --- 3/3+0 (numerical - on Num Pad)
Field Ops --- AR/Scoped AR 4/4+0 --- (numerical - on Num Pad)
Covert Ops --- Scoped AR/Snipe Gun 5/5+0 (numerical - on Num Pad)
And strogg:
Aggressor --- Wpn 2/3 (Obliterator/Hyperblaster) --- 1/1+0 (numerical - on Num Pad)
Technican --- Wpn 1/2 (Lacerator/Nailgun) --- 2/2+0 (numerical - on Num Pad)
Constructor --- Wpn 2/3 (Nailgun/PlasmaLauncher) or if u cant make plasmalauncher so wpn 1/2 (lacelator+nailgun) --- 3/3+0 (numerical - on Num Pad)
Oppressor --- Wpn 1/2 (Lacelator/Scoped Lacelator) --- 4/4+0 (numerical - on Num Pad)
Infiltrator --- Wpn 1/2 (Scoped Lacelator/Railgun) --- 5/5+0 (numerical - on Num Pad)
Thats all... can some1 make if for me? i will be very grateful and happy xD
Peace. and Thnx.
RedFox
01-16-2008, 11:43 PM
Changed a few things in my version (see page 1)
If you switch class it starts by select the Assault Rifle/Lacerator. If you switch classes most scripts "remember" the last state of the class. With this script to switch to the Medic/Shotgun combo from another class you press CTRL-2 twice, always, no matter what you used the last time you were a medic.
Also cleaned it up a bit so you don't need extra cfg files but can dump everything in you autoexec.cfg
Boumy
01-17-2008, 10:35 AM
Hello
Lot of people using a class selector composed of two files : gdf.cfg and strogg.cfg and load the right cfg in function of the side.
But...did you never forget to load the good cfg during a match ? and then, when you pressed the key for change class, you switched to the other team !
To avoid it, add this lines to your cfg :
*Auto Class Selector
In your main.cfg
seta stroggclass "exec strogg.cfg"
seta gdfclass "exec gdf.cfg "
bind UPARROW $stroggclass "" "technician"
bind UPARROW $stroggclass "" "oppressor"
bind UPARROW $stroggclass "" "constructor"
bind UPARROW $stroggclass "" "infiltrator"
bind UPARROW $stroggclass "" "aggressor"
bind UPARROW $gdfclass "" "medic"
bind UPARROW $gdfclass "" "fieldops"
bind UPARROW $gdfclass "" "engineer"
bind UPARROW $gdfclass "" "covertops"
bind UPARROW $gdfclass "" "soldier"
In your gdf.cfg
bind UPARROW '_forward' '' 'medic'
bind UPARROW '_forward' '' 'fieldops'
bind UPARROW '_forward' '' "engineer"
bind UPARROW '_forward' '' "covertops"
bind UPARROW '_forward' '' "soldier"
bind UPARROW $stroggclass "" "technician"
bind UPARROW $stroggclass "" "oppressor"
bind UPARROW $stroggclass "" "constructor"
bind UPARROW $stroggclass "" "infiltrator"
bind UPARROW $stroggclass "" "aggressor"
In your strogg.cfg
bind UPARROW '_forward' '' "technician"
bind UPARROW '_forward' '' "oppressor"
bind UPARROW '_forward' '' "constructor"
bind UPARROW '_forward' '' "infiltrator"
bind UPARROW '_forward' '' "aggressor"
bind UPARROW $gdfclass "" "medic"
bind UPARROW $gdfclass "" "fieldops"
bind UPARROW $gdfclass "" "engineer"
bind UPARROW $gdfclass "" "covertops"
bind UPARROW $gdfclass "" "soldier"
Replace UPARROW by your key that you're using for move forward.
An exemple of how it works :
Imagine your are medic gdf but for some reason, the gd.cfg it's not load.
So you press "forward" key. This key is bind to bind UPARROW $gdfclass "" "medic" (main.cfg) and it load your gdf.cfg.
Now, gdf file rebind "forward" key to bind UPARROW '_forward' '' 'medic'
so you will now move forward by pressing this key.
RedFox
01-17-2008, 01:00 PM
Hey, pretty cool. I'm going to incorporate that too =]
Dirka_Dirka
01-17-2008, 05:18 PM
nice addition boumy..
RedFox
01-17-2008, 09:50 PM
Updated my version on page one with the addon of Boumy and changed it so there is no need for other files besides autoexec.cfg.
PizzaPasta
01-17-2008, 11:32 PM
Updated my version on page one with the addon of Boumy and changed it so there is no need for other files besides autoexec.cfg.
Redfox,
I don't quite know how the _forward binds are supposed to work. Care to explain it more clearly? I tried your original script and the updated one but saw no difference.
Does the forward key change your classes? I'm confused :(
Boumy
01-17-2008, 11:35 PM
Redfox,
I don't quite know how the _forward binds are supposed to work. Care to explain it more clearly? I tried your original script and saw no difference.
I also try RedFox class selector because I was surprise of how it work.
Yet I still don't understand, but it works :O
edit : In fact I can see the begining. There are to much "vstr" and "$" inside each other.
Dirka_Dirka
01-18-2008, 02:05 AM
Updated my version on page one with the addon of Boumy and changed it so there is no need for other files besides autoexec.cfg.
it would be nice if you modified it some more... unless people use the e key for forward movement, editing your config to suit their needs is a bitch.
set "forwardkey" "e" near the beginning and tell users to change that entry.. then use bind $forwardkey everywhere else.
same could be said for the other key binds.. have the list of sets at the top and people can quickly modify it and use it.
RedFox
01-18-2008, 09:29 AM
I thought I had changed it so that you only had to replace all the MOVEFORWARD with the key you use to move your character forward (in my case e). Haven't looked at it yet but it could be that I missed a few (it was late =] ). Let me have a look and get back to you.
I can assure you that it works, there are not too many $ and vstr in each other. The deal with your move forward key is exactly as Boumy explained above: If you forget to change sides with the F5 or F6 keys but use the Limbo menu (or the server or an admin changes your team) the first time you try to move forward the classes for that side are loaded so you can use the class selection script for that side. You see a confirmation message and you will need to let go of the key and press it again to start moving forward (I'm have an idea to try and make it so you don't have to let go if the key but I'll have to try it first).
If you don't want this behavior you need to remove the "vstr XXXteam2;" part from three lines that starts with "set XXXteam" where XXX is gdf, strogg and spec respectively and remove the line "vstr specteam2" completely.
Edit: I had put the updated version only on our clans website and forgot to update this page. I have updated the script on page one so you only need to do a "search and replace all" on MOVEFORWARD and replace it with the letter of the key you use to move forward. Let me know if it works now.
PizzaPasta
01-18-2008, 04:05 PM
I thought I had changed it so that you only had to replace all the MOVEFORWARD with the key you use to move your character forward (in my case e). Haven't looked at it yet but it could be that I missed a few (it was late =] ). Let me have a look and get back to you.
I can assure you that it works, there are not too many $ and vstr in each other. The deal with your move forward key is exactly as Boumy explained above: If you forget to change sides with the F5 or F6 keys but use the Limbo menu (or the server or an admin changes your team) the first time you try to move forward the classes for that side are loaded so you can use the class selection script for that side. You see a confirmation message and you will need to let go of the key and press it again to start moving forward (I'm have an idea to try and make it so you don't have to let go if the key but I'll have to try it first).
If you don't want this behavior you need to remove the "vstr XXXteam2;" part from three lines that starts with "set XXXteam" where XXX is gdf, strogg and spec respectively and remove the line "vstr specteam2" completely.
Edit: I had put the updated version only on our clans website and forgot to update this page. I have updated the script on page one so you only need to do a "search and replace all" on MOVEFORWARD and replace it with the letter of the key you use to move forward. Let me know if it works now.
Thanks Redfox!
PizzaPasta
01-19-2008, 03:24 AM
Redfox,
One more question.
What is this for?
set gdfteam1 "bind t clientQuickchat botchat/generic/medicenroute CTRL"
Will that say "medic on route" everytime you change to a medic class?
Abedeus
01-19-2008, 05:57 AM
No, by pressing Ctrl + T you shout Medic en Route!, so people dont tap out.
RedFox
01-20-2008, 11:11 PM
What Abedeus said.
It's actually just to show you a place where you can put side specific bindings. For instance, some people want to bind Stroy -> Health conversion to "r" when they are playing strogg and bind it to reload when playing GDF.
RamsesIII
01-21-2008, 12:12 AM
hmmm ... just found out that you can already select classes & cycle through weapons in limbo menu using the standard keys 1-5. guess i don't need a script after all, the only thing i need to do is to bind the _limbomenu command to a key that's quickly accessible.
Having binds for it, combined with a kill-bind really is much nicer and even changes playstyle a bit as it encourages faster class changes to take advantage of some situation. Even if limbo menu is fast, it is distracting and definitely not as fast.
As for binds, I use a modified version of one I found somewhere which used a clever scheme laid out like the limbo menu with columns and rows and alt as modifier, so if I press alt+1 I go soldier with regular, alt+q soldier with rl, alt+a = gmpg/hyperblaster.
Then next colum, 2ws is medic variants, next 3ed engineer, 4rf field ops, 5tg cov ops.
R3B3L
06-09-2008, 06:34 AM
I have been having problems with the gdf.cfg. when my autoexec execs the gdf.cfg I get this message
execing 'gdf.cfg'
Selected Team : GDF
cs1 cannot be changed in multiplayer.
cs2 cannot be changed in multiplayer.
cs3 cannot be changed in multiplayer.
cs4 cannot be changed in multiplayer.
cs5 cannot be changed in multiplayer.
b_s1 cannot be changed in multiplayer.
b_s2 cannot be changed in multiplayer.
b_s3 cannot be changed in multiplayer.
b_s4 cannot be changed in multiplayer.
b_m1 cannot be changed in multiplayer.
b_m2 cannot be changed in multiplayer.
b_e1 cannot be changed in multiplayer.
b_e2 cannot be changed in multiplayer.
b_e3 cannot be changed in multiplayer.
b_f1 cannot be changed in multiplayer.
b_f2 cannot be changed in multiplayer.
b_c1 cannot be changed in multiplayer.
b_c2 cannot be changed in multiplayer.
which is refering to this set of lines
set cs1 "clientQuickChat quickchat/self/imsoldier"
set cs2 "clientQuickChat quickchat/self/immedic"
set cs3 "clientQuickChat quickchat/self/imengineer"
set cs4 "clientQuickChat quickchat/self/imfieldops"
set cs5 "clientQuickChat quickchat/self/imcovertops"
set b_s1 "bind F8 $b_s2; bind KP_HOME $cs1; ClientTeam GDF; ClientClass Soldier 2; addchatline 'Soldier GPMG'"
set b_s2 "bind F8 $b_s3; bind KP_HOME $cs1; ClientTeam GDF; ClientClass Soldier 0; addchatline 'Soldier Assault Rifle'"
set b_s3 "bind F8 $b_s4; bind KP_HOME $cs1; ClientTeam GDF; ClientClass Soldier 1; addchatline 'Soldier Rocket Launcher'"
set b_s4 "bind F8 $b_s1; bind KP_HOME $cs1; ClientTeam GDF; ClientClass Soldier 3; addchatline 'Soldier Shotgun'"
set b_m1 "bind F9 $b_m2; bind KP_HOME $cs2; ClientTeam GDF; ClientClass Medic 0; addchatline 'Medic Assault Rifle'"
set b_m2 "bind F9 $b_m1; bind KP_HOME $cs2; ClientTeam GDF; ClientClass Medic 1; addchatline 'Medic Assault Shotgun'"
set b_e1 "bind F10 $b_e2; bind KP_HOME $cs3; ClientTeam GDF; ClientClass Engineer 0; addchatline 'Engineer Assault Rifle'"
set b_e2 "bind F10 $b_e3; bind KP_HOME $cs3; ClientTeam GDF; ClientClass Engineer 1; addchatline 'Engineer Shotgun'"
set b_e3 "bind F10 $b_e1; bind KP_HOME $cs3; ClientTeam GDF; ClientClass Engineer 2; addchatline 'Engineer Assault Rifle + Grenade Launcher'"
set b_f1 "bind F11 $b_f2; bind KP_HOME $cs4; ClientTeam GDF; ClientClass FieldOps 0; addchatline 'Field Ops Assault Rifle'"
set b_f2 "bind F11 $b_f1; bind KP_HOME $cs4; ClientTeam GDF; ClientClass FieldOps 1; addchatline 'Field Ops Scoped Assault Rifle'"
set b_c1 "bind F12 $b_c2; bind KP_HOME $cs5; ClientTeam GDF; ClientClass CovertOps 0; addchatline 'Covert Assault Rifle'"
set b_c2 "bind F12 $b_c1; bind KP_HOME $cs5; ClientTeam GDF; ClientClass CovertOps 1; addchatline 'Covert Sniper Rifle'"
when I hit my bind for the self vsay I get no verbal vsay from the game only this in console
WARNING: Thread 'main': Could not find quickchat: gdf/quickchat/self/imconstru
ctor (quickchat/self/imconstructor)
I get one for every class' self vsay on gdf.
strogg works fine. I also hit the f5 key for gdf and f6 key for strogg before i change classes so it knows what cfg to look in for the binds.
I have all strogg classes in a team strogg context and gdf in team gdf context unlinke the og files kendle gave us with all classes as infantry context. I tried switching them out but to no avail.
Any ideas?
sp00ge
06-09-2008, 02:32 PM
Just about all of the class selection scripts that I have seen are fairly complex due to the lack of an accessible isGDF/isStrogg var. I started playing with the commands and noticed that if you put ClientClass Soldier 0, ClientClass Aggressor 0 on the same line you would be shifted to the proper class on the side you are currently on rather then flipping sides. So I decided to come up with a script that is simpler and not dependant on context binds. I have not extensively tested it, but I am using it now along with one of my teammates and it appears to work fine in 1.5 and in .55b pro mod. This only supports class / weapon combinations used in competition games, but it is easy to augment the list and alter the teamSay text for pub combinations.
bind "KP_DEL" "ClientClass Soldier 0; ClientClass Aggressor 0; sayTeam '^8SPAWNING ^1> ^2SOLDIER ^1<'" "" "default"
bind "KP_MINUS" "ClientClass Soldier 1; ClientClass Aggressor 1; sayTeam '^8SPAWNING ^1> ^2ROCKET ^1<'" "" "default"
bind "KP_PLUS" "ClientClass Soldier 2; ClientClass Aggressor 2; sayTeam '^8SPAWNING ^1> ^2HYPER/GPMG ^1<'" "" "default"
bind "KP_INS" "ClientClass Medic 0; ClientClass Technician 0; sayTeam '^8SPAWNING ^1> ^2MEDIC ^1<'" "" "default"
bind "KP_HOME" "ClientClass CovertOps 0; ClientClass Infiltrator 0; sayTeam '^8SPAWNING ^1> ^2COVERT OPS ^1<'" "" "default"
bind "KP_PGUP" "ClientClass CovertOps 1; ClientClass Infiltrator1; sayTeam '^8SPAWNING ^1> ^2SNIPER ^1<'" "" "default"
bind "KP_LEFTARROW" "ClientClass Engineer 0; ClientClass Constructor 0; sayTeam '^8SPAWNING ^1> ^2ENGINEER ^1<'" "" "default"
bind "KP_END" "ClientClass FieldOps 0; ClientClass Oppressor 0; sayTeam '^8SPAWNING ^1> ^2FIELD OPS ^1<'" "" "default"
Dirka_Dirka
06-10-2008, 12:47 AM
r3b3l launch the game and exec the configs before you connect to a server. as your quote says.. you cant change the cvars in multiplayer. by execing the configs manually before connecting to a server, you allow the cvars to be saved in your game-generated config properly.
R3B3L
06-10-2008, 01:23 AM
Thx Dirka I will try that. ;)
reyalp
06-10-2008, 01:31 AM
r3b3l launch the game and exec the configs before you connect to a server. as your quote says.. you cant change the cvars in multiplayer. by execing the configs manually before connecting to a server, you allow the cvars to be saved in your game-generated config properly.
If you use seta in stead of set you should be able to. This will have the side effect of saving them in your etqwconfig.cfg
R3B3L
06-10-2008, 02:48 AM
If you use seta in stead of set you should be able to. This will have the side effect of saving them in your etqwconfig.cfg
YOU ARE A GENIUS:D :dance: worked like a charm :dance:
bandit_999
06-11-2008, 09:52 AM
+1 You exec it once and it will autoexec all the time.
Dr_Driller
06-11-2008, 10:16 AM
easily generate yours autoexec.cfg with your own bind for your class selector, spawn selector, tweak config... : http://community.enemyterritory.com/forums/showthread.php?t=27646