- Code: Select all
//In your own config, include these lines. Using the arrow keys moves you into a team as medic with default gear.
//Classselector
bind LEFTARROW "team b 1;exec allies.cfg;echo ^0-^7> ^4A^dllies^7" //seperate cfg file
bind RIGHTARROW "team r 1;exec axis.cfg;echo ^0-^7> ^1A^ixis^7" //seperate cfg file
bind DOWNARROW "team s;exec spec.cfg;echo ^0-^7> ^bS^2pectator^7" //seperate cfg file
- Code: Select all
// Create a NEW config, called allies.cfg
// Include the following lines
bind KP_END "team b 1 8 34; set singlePistol team b 1 8 7; say_buddy ^a=^7Medic^3+^7Smg^a=^7"
bind KP_DOWNARROW "team b 2 8 34; set singlePistol team b 2 8 7; say_buddy ^a=^7Engi^3+^7Smg^a=^7"
bind KP_PGDN "team b 2 23 34; set singlePistol team b 2 23 7; say_buddy ^a=^7Engi^3+^7Rifle^a=^7"
bind KP_LEFTARROW "team b 3 8 34; set singlePistol team b 3 8 7; say_buddy ^a=^7FieldOp^3+^7Smg^a=^7"
bind KP_5 "team b 4 10 44; set singlePistol team b 4 10 38; say_buddy ^a=^7CovOp^3+^7Sten^a=^7"
bind KP_RIGHTARROW "team b 4 51 44; set singlePistol team b 4 51 38; say_buddy ^a=^7CovOp^3+^7Bar^a=^7"
bind KP_HOME "team b 4 24 44; set singlePistol team b 4 24 38; say_buddy ^a=^7CovOp^3+^7Sniper^a=^7"
bind KP_UPARROW "team b 0 49 34; set singlePistol team b 0 49 7; say_buddy ^a=^7Soldier^3+^7Browning^a=^7"
bind KP_PGUP "team b 2 47 34; set singlePistol team b 2 47 7; say_buddy ^a=^7Engineer^3+^7Shotgun^a=^7"
bind KP_DEL "vstr singlePistol; echo ^0-^7> ^aS^7ingle ^aP^7istol^d!^7"
set singlePistol "echo ^0-^7> ^3N^/o class selected yet^3!^7"
- Code: Select all
// Create a NEW config, called axis.cfg
// Include the following lines
bind KP_END "team r 1 3 35; set singlePistol team r 1 3 2; say_buddy ^a=^7Medic^3+^7Smg^a=^7"
bind KP_DOWNARROW "team r 2 3 35; set singlePistol team r 2 3 2; say_buddy ^a=^7Engi^3+^7Smg^a=^7"
bind KP_PGDN "team r 2 22 35; set singlePistol team r 2 22 2; say_buddy ^a=^7Engi^3+^7Rifle^a=^7"
bind KP_LEFTARROW "team r 3 3 35; set singlePistol team r 3 3 2; say_buddy ^a=^7FieldOp^3+^7Smg^a=^7"
bind KP_5 "team r 4 56 45; set singlePistol team r 4 56 14; say_buddy ^a=^7CovOp^3+^7MP34^a=^7"
bind KP_RIGHTARROW "team r 4 31 45; set singlePistol team r 4 31 14; say_buddy ^a=^7CovOp^3+^7FG42^a=^7"
bind KP_HOME "team r 4 30 45; set singlePistol team r 4 30 14; say_buddy ^a=^7CovOp^3+^7Sniper^a=^7"
bind KP_UPARROW "team r 0 29 35; set singlePistol team r 0 29 2; say_buddy ^a=^7Soldier^3+^7MG42^a=^7"
bind KP_PGUP "team r 2 47 35; set singlePistol team r 2 47 2; say_buddy ^a=^7Engineer^3+^7Shotgun^a=^7"
bind KP_DEL "vstr singlePistol; echo ^0-^7> ^dS^/ingle Pistol^d!^7"
set singlePistol "echo ^0-^7> ^3N^/o class selected yet^3!^7"
- Code: Select all
// Create a NEW config, called spec.cfg
// Include the following lines
bind KP_END "echo ^0-^7> ^1DENIED ^3N^/ot on a team^3!"
bind KP_DOWNARROW "echo ^0-^7> ^1DENIED ^3N^/ot on a team^3!"
bind KP_PGDN "echo ^0-^7> ^1DENIED ^3N^/ot on a team^3!"
bind KP_LEFTARROW "echo ^0-^7> ^1DENIED ^3N^/ot on a team^3!"
bind KP_5 "echo ^0-^7> ^1DENIED ^3N^/ot on a team^3!"
bind KP_RIGHTARROW "echo ^0-^7> ^1DENIED ^3N^/ot on a team^3!"
bind KP_HOME "echo ^0-^7> ^1DENIED ^3N^/ot on a team^3!"
bind KP_PGUP "echo ^0-^7> ^1DENIED ^3N^/ot on a team^3!"
bind KP_DEL "echo ^0-^7> ^1DENIED ^3N^/ot on a team^3!"
Few (important) notes I'd like to share about this script...
- With the arrow keys, you can select your team. Use LEFTARROW to join the allies, RIGHTARROW for axis and DOWNARROW for spectators. When moving in a team, it selects medic with default gear automatically.
- With the keypad, you can select your class and weapons. If you join a team with the arrow keys, the script automatically loads a new config with the right set of weapons (the numbers below refer to the numbers on your keypad)
- 1 - Medic
- 2 - Engineer with SMG
- 3 - Engineer with rifle
- 4 - Field Ops with SMG
- 5 - Covert Ops (Sten/MP34)
- 6 - Covert Ops (BAR/FG42)
- 7 - Covert Ops with sniper rifle
- 8 - Soldier with machinegun and pistols(!)
- 9 - Engineer with shotgun (I added the shotgun just today, that's why it is not stored at '4' as you might have expected)
- Using the keypad selects akimbo pistols by default. If you like to use single pistol, however, just select your class and press the keypad dot (KP_DEL) and the script lets you respawn with single pistol!
- The scripts makes a difference between axis and allied weapons when on a team! When you are in the allied team but the script still thinks you are an axis soldier, the keypad will not pick the right weapons. Hence, first make sure your team is correctly set after f.e. a shuffle!
- The script is suitable for NoQuarter. Will probably not work on other mods such as ETPro, due to the difference in weapon numbers. Not sure though.
- Except for the colorscheme, it is recommended not to edit the code (in particular, the digits) unless you know what you are doing.
- Moving spec using the downarrow key deactivates the keypad-binds for the classes. For your own needs, you might edit the binds defined in 'spec.cfg' so you can store other commands at the keypad when not playing.
- If you are on a laptop, you might change the keys KP_(...) to different keys. I'd recommend using F1-F12.
- Only one soldier-combination is used, as soldier is mostly not chosen as class. Except for the machine gun (Browning/MG42), you have to pick the class for soldier yourself. If you want to be field ops with shotgun, you have to pick it in Limbo as well.
- Once aware of the key-class combinations, the script is to be used flawlessly.