Player Scripting
From WolfWiki
Team and class selection
Players no longer have to use the limbo menu or the complex team command to select team and class.
Class command
the command class allows you to script the selection of team and class.
syntax: class class weapon {secondary weapon}
Class:
- s: soldier
- m: medic
- f: field-op
- e: engineer
- c: covert-op
Weapon: use the weapon numbers from the class menu below:
Secondary Weapon (optional):
- pistol
- akimbo-pistol
- smg (for soldiers with level 4 heavy weapons)
Here's a template for making your own class binds:
bind KP_END "vstr cs_medic" bind KP_DOWNARROW "vstr cs_fieldop" bind KP_PGDN "vstr cs_engi_smg" bind KP_LEFTARROW "vstr cs_covert_sniper" bind KP_5 "vstr cs_panz"
// class vstr's set cs_mg42 "class s 2 3;echo spawning as: soldier w/mg42" set cs_flamer "class s 3 3;echo spawning as: soldier w/flamethrower" set cs_panz "class s 4 3;echo spawning as: soldier w/panzerfaust" set cs_mortar "class s 5 3;echo spawning as: soldier w/mortar" set cs_medic "class m 1 2;echo spawning as: medic" set cs_fieldop "class f 1 2;echo spawning as: field-ops" set cs_engi_smg "class e 1 2;echo spawning as: engineer w/smg" set cs_engi_rifle "class e 2 2;echo spawning as: engineer w/rifle" set cs_covert_sniper "class c 3 2;echo spawning as: covert-ops w/sniper rifle" set cs_covert_fg42 "class c 2 2;echo spawning as: covert-ops w/fg42" set cs_covert_sten "class c 1 2;echo spawning as: covert-ops w/sten"
using the command classmenu allows the player to select class and weapon:
bind x "classmenu"
- soldier
- smg
- mg42
- flamethrower
- panzerfaust
- mortar
- medic
- field-op
- engineer
- smg
- garand/k43
- covert-op
- sten
- fg42
- scoped garand/k43
the command teammenu allows the player to select a team before selecting class and weapon:
bind x "teammenu"
- axis --> class menu
- allies --> class menu
- spectator