Two Communication Script Types are below,
choose a map cfg system or a full keypad system.
Comm Script Type #1
MAP SPECIFIC COMM SYSTEM
This is a simple communication script. The comms are
activated by the same 8 function keys, but the
messages change with each map that is loaded. This
comm system is installed in two parts.
Part A - Key Binds
The first part is the bind setup, easily done
in config.cfg. You may change the keys to your
choices, but keep the rest exactly as shown.
//key binds- any 8 keys
will work.
//You can bind directly in config.cfg,
//or you can put these lines in autoexec.cfg if you
want easy access to change key choices.
bind "F5" "comm_1"
bind "F6" "comm_2"
bind "F7" "comm_3"
bind "F8" "comm_4"
bind "F9" "comm_5"
bind "F10" "comm_6"
bind "F11" "comm_7"
bind "F12" "comm_8"
Part B - Map Configs
This part of the script must be installed in
each mapname.cfg. It will setup aliases for each of
the above keys that are custom for every map. For
example, below is the comm alias setup for the map
2fort. Install it in 2fort.cfg.
First put this line in your config.cfg, it will turn on the map config system:
setinfo "em" "1"
Then paste these lines into a cfg file with the same name as each map you
play regularly (ie "2fort.cfg"). Customize each say line for each map.
You can download this 2fort.cfg to use as a template.
//Customise the team_say for your position
echo 2FORT CFG LOADED
alias comm_1 "say_team D - Incoming Enemy by Elev"
alias comm_2 "say_team D - Incoming Enemy by
Spiral"
alias comm_3 "say_team D - Incoming Enemy Ramp
Room"
alias comm_4 "say_team D - Switch spots for
resupply"
alias comm_5 "say_team D - I am coming down
SPIRAL"
alias comm_6 "say_team D - I am coming thru RAMP
ROOM/ ELEV"
alias comm_7 "say_team D - Our FLAG outgoing by
Spiral"
alias comm_8 "say_team D - Our FLAG outgoing by
Elev"
For this system to work you must copy the 2fort alias
into each map's config. In each map config you should
customize the say_team lines to that map. If you do
this for each match map, over time you will build a
complete set.
Comm Script #2 - Offense/Defense/ Keypad or Function
Key COMM SYSTEM
This script uses generic preset messages on all
function keys. You rotate through the three message
categories for the same keys. Hit the 'offense' key
and all offense comms will load for the keys.
Hit the 'defense' key and defense comms load for the
same keys. The first setup uses the keypad keys as a
dedicated comm system.
Alternately you can use the Function Key setup,
with an extra section to restore Function keys setups.
That way you hit the 'function' key bind and the keys
switch from comm system back to the standard function
key setup.
Install in the autoexec.cfg file or make a separate
cfg and have it loaded in autoexec.cfg.
//Keybinds - using keypad keys
alias msg_offense "echo
OFFENSE;bind F1 o1;bind F2 o2;bind F3 o3;bind F4 o4;bind
F5 o5;bind F6 o6;bind F7 o7;bind F8 o8;bind F9 o9;bind
F10 o10;bind F11 o11;bind F12 o12"
bind "KP_HOME"
"o1"
bind "KP_UPARROW" "o2"
bind "KP_PGUP" "o3"
bind "KP_LEFTARROW" "o4"
bind "KP_5" "o5"
bind "KP_RIGHTARROW" "o6"
bind "KP_END" "o7"
bind "KP_DOWNARROW" "o8"
bind "KP_PGDN" "o9"
alias msg_defense "echo
DEFENSE;bind F1 d1;bind F2 d2;bind F3 d3;bind F4 d4;bind
F5 d5;bind F6 d6;bind F7 d7;bind F8 d8;bind F9 d9;bind
F10 d10;bind F11 d11;bind F12 d12"
bind "<" "msg_offense;say_team
Now playing offense! [%h/%a]"
bind "," "msg_offense;say_team Now
playing offense! [%h/%a]"
bind ">" "msg_defense;say_team
Now playing defense! [%h/%a]"
bind "." "msg_defense;say_team Now
playing defense! [%h/%a]"
//Offense Messages
alias o1 "say_team -O- Affirmative/On my way
[%h/%a]"
alias o2 "say_team -O- Negative/Disregard
[%h/%a]"
alias o3 "say_team -O- Attacking now! [%h/%a]"
alias o4 "say_team -O- Going out main!
[%h/%a]"
alias o5 "say_team -O- SG Down! [%h/%a]"
alias o6 "say_team -O- DEFENSE CLEAR ATTACK
ATTACK!!! [%h/%a]"
alias o7 "say_team -O- I'm dead, flag is in the
short hall! [%h/%a]"
alias o8 "say_team -O- I'm dead, flag is in long
hall! [%h/%a]"
alias o9 "say_team -O- I HAVE FLAG CAPPING IN 5
[%h/%a]"
alias o10 "say_team -O- I'm waiting for relay, CAP
FAST [%h/%a]"
alias o11 "say_team -O- I have %h health and %a
armor"
alias o12 "say_team -O- Where is the enemy flag???
[%h/%a]"
//Defense Array
alias d1 "say_team [D] Affirmative/On my way
[%h/%a]"
alias d2 "say_team [D] Negative/Disregard
[%h/%a]"
alias d3 "say_team [D] Incoming main! [%h/%a]"
alias d4 "say_team [D] Incoming secondary!
[%h/%a]"
alias d5 "say_team [D] SPY ALERT! [%h/%a]"
alias d6 "say_team [D] INCOMING TO FLAG!!!
[%h/%a]"
alias d7 "say_team [D] Flag going out main!
[%h/%a]"
alias d8 "say_team [D] Flag going out secondary!
[%h/%a]"
alias d9 "say_team [D] Flag gone, reset!
[%h/%a]"
alias d10 "say_team [D] Dead/Resupplying [%h/%a] -
MY POST IS OPEN!"
alias d11 "say_team [D] I'm in position [%h/%a] -
STAY ON YOUR GUARD!"
alias d12 "say_team [D] Where is our flag???
[%h/%a]"
//------------------
If you want to use Function
keys instead of keypad keys with the above script,
simply replace the keybinds section with the Keybinds
and Functions sections below.
//Alternate setup using
Function keys
//Keybinds
alias msg_offense "echo
OFFENSE;bind F1 o1;bind F2 o2;bind F3 o3;bind F4 o4;bind
F5 o5;bind F6 o6;bind F7 o7;bind F8 o8;bind F9 o9;bind
F10 o10;bind F11 o11;bind F12 o12"
alias msg_defense "echo
DEFENSE;bind F1 d1;bind F2 d2;bind F3 d3;bind F4 d4;bind
F5 d5;bind F6 d6;bind F7 d7;bind F8 d8;bind F9 d9;bind
F10 d10;bind F11 d11;bind F12 d12"
bind "<" "msg_offense;say_team
Now playing offense! [%h/%a]"
bind "," "msg_offense;say_team Now
playing offense! [%h/%a]"
bind ">" "msg_defense;say_team
Now playing defense! [%h/%a]"
bind "." "msg_defense;say_team Now
playing defense! [%h/%a]"
bind "?" "msg_functions"
bind "/" "msg_functions"
//Functions - setup these to your normal Fkey binds -
YOU MUST FILL THEM IN!
alias msg_functions "echo FUNCTIONS;bind F1 x1;bind
F2 x2;bind F3 x3;bind F4 x4;bind F5 x5;bind F6 x6;bind
F7 x7;bind F8 x8;bind F9 x9;bind F10 x10;bind F11
x11;bind F12 x12"
alias x1 " "
alias x2 " " //note----> Fill in these
binds with your normal commands for the F keys
alias x3 " "
alias x4 "quit"
alias x5 " "
alias x6 " "
alias x7 " "
alias x8 " "
alias x9 " "
alias x10 " "
alias x11 " "
alias x12 " "
|