Usefull Scripts !

Bio Tux

Some usefull scripts used by the geekjide :

By default, all these scripts are bound on the X key.

Connection settings

Allow to change the com_maxfps and the cl_maxpackets options according to the ingame fps. The basic idea is to reduce the effect of the lag by fixing the number of packets as a multiple of the number of fps and by having a constant number of fps.

set packet1 "set packettoggle vstr packet2; com_maxfps 76; cl_maxpackets 76; echo ^Dpackets 76-76"
set packet2 "set packettoggle vstr packet3; com_maxfps 76; cl_maxpackets 38; echo ^Apackets 76-38"
set packet3 "set packettoggle vstr packet1; com_maxfps 43; cl_maxpackets 43; echo ^Ipackets 43-43"
set packettoggle "vstr packet1"
bind X "vstr packettoggle" 

In the file autoexec.cfg, add the following lines to fix the default values :

seta cl_maxpackets "76"
seta com_maxfps "76" 

Demos recording

Start/Stop to record a demo just by pressing a key.

bind X "vstr demor"
set demor "vstr demoon"
set demoon "autorecord; echo ^3Recording ^dDemo ; set demor vstr demooff"
set demooff "stoprecord; echo ^dStop ^3Recording ; set demor vstr demoon"

Play in a quiet world

A very usefull script to play in peace on a server with noisy players.

seta chaton "cg_novoicechats 0; cg_novoicetext 0; cg_teamChatHeight 4; echo ^1CHAT ON; set blindtoggle vstr chatoff"
seta chatoff "cg_novoicechats 1; cg_novoicetext 1; cg_teamChatHeight 0; echo ^1CHAT OFF / SILENCE !!!; set blindtoggle vstr chaton"
seta blindtoggle "vstr chaton"
bind X "vstr blindtoggle" 

Stats and Topshots

Display the stats and the topshots at the same time by pressing only one key.

set Stats_1 "+stats; +topshots"
set Stats_0 "-stats; -topshots"
bind X "+vstr Stats_1 Stats_0" 

Quick FFE !

A script to call the artillery without taking the binoculars, just by pressing a key.

set FFEon  "+zoom; +attack"
set FFEoff "-zoom; -zoom; -attack; -attack"
bind X "+vstr FFEon FFEoff" 

Landmines checking !

A script to check the landmines just by pressing a key, releasing the key returns to the main weapon.

set CFLon  "+zoom"
set CFLoff "-zoom; -zoom"
bind X "+vstr CFLon CFLoff"

A good suicide !

Better than a simple kill ...

bind X "kill;forcetapout"

Dynamite planted !

A script to commit suicide and to respawn inge, sometimes very usefull ;-)

bind X "class e 1;kill;forcetapout"

Class switching

A very usefull script to switch from a class to another just by pressing a key. This kind of scripts is very common and can be found easily on the web. But this version allowes you to save some keys by using the weapons keys. So to change of class you have to use a key modifier (like ALT) and to press a weapon key. By pressing ALT+2 you become a medic at the next spawn and by pressing 2 you select the pistol like before.

set arme1 "bind 1 "weaponbank 1""
set arme2 "bind 2 "weaponbank 2""
set arme3 "bind 3 "weaponbank 3""
set arme4 "bind 4 "weaponbank 4""
set arme5 "bind 5 "weaponbank 5""
set arme6 "bind 6 "weaponbank 6""
set arme7 "bind 7 "weaponbank 7""
set arme8 "bind 8 "weaponbank 8""
set arme9 "bind 9 "weaponbank 9""
set menu_arme "vstr arme1;vstr arme2;vstr arme3;vstr arme4;vstr arme5;vstr arme6;vstr arme7;vstr arme8;vstr arme9"

set prof1  "bind 1 "vstr prof10""
set prof10 "vstr prof11"
set prof11 "class s 4; say_team "^d-->^3Panzer"; set prof10 "vstr prof12""
set prof12 "class s 2; say_team "^d-->^3MG42"; set prof10 "vstr prof13""
set prof13 "class s 3; say_team "^d-->^3Flamy"; set prof10 "vstr prof14""
set prof14 "class s 5; say_team "^d-->^3Mortar"; set prof10 "vstr prof11""
set prof2  "bind 2 "vstr prof20""
set prof20 "class m 1; say_team "^d-->^3Medic""
set prof3  "bind 3  "vstr prof30""
set prof30 "vstr prof31"
set prof31 "class e 1; say_team "^d-->^3Inge Smg"; set prof30 "vstr prof32""
set prof32 "class e 2; say_team "^d-->^3Inge Rifle"; set prof30 "vstr prof31""
set prof4  "bind 4 "vstr prof40""
set prof40 "class f 1; say_team ^d-->^3Field Ops""
set prof5  "bind 5 "vstr prof50""
set prof50 "vstr prof51"
set prof51 "class c 2; say_team "^d-->^3FG42"; set prof50 "vstr prof52""
set prof52 "class c 1; say_team "^d-->^3Sten"; set prof50 "vstr prof53""
set prof53 "class c 3; say_team "^d-->^3Snipe"; set prof50 "vstr prof51""
set prof6  "bind 6 "vstr prof60""
set prof60 "team b 1; say_team ^1 ***** ^3Allied ^1*****""
set prof7  "bind 7 "vstr prof70""
set prof70 "team r 1; say_team ^1 ***** ^3Axis ^1*****""
set prof8  "bind 8 "vstr prof80""
set prof80 "team spectator; say_team ^1 ***** ^3Spec ^1*****""
set menu_prof "vstr prof1;vstr prof2;vstr prof3;vstr prof4;vstr prof5;vstr prof6;vstr prof7;vstr prof8"

vstr menu_arme
bind X "+vstr menu_prof menu_arme"

Spawntimer

This script allows you to use the spawntimer functions of etpro. Using etpro, it is possible to display the amount of time before the next enemy spawn. On the image below, you can see that the enemy will spawn in 2 seconds. So it is time to take the flag ! The only thing, the player has to do to display this timer, is to press a key as soon as he sees the enemy spawning.

Step 1

Add in the file autoexec_allies.cfg, the following lines :

//Delete the timer
timerSet 0
//Fix the spawn time of the enemy
set respawn_myside "vstr respawn_axis"
//Reset the reset command :-)
set reset_respawn  "vstr reset_respawn1"

In the file autoexec_axis.cfg, add the following lines :

//Delete the timer
timerSet 0
//Fix the spawn time of the enemy
set respawn_myside "vstr respawn_allies"
//Reset the reset command :-)
set reset_respawn  "vstr reset_respawn1" 

In the file autoexec.cfg, add the following lines to fix the default value of the enemies spawns and to bind a key to launch the spawntimer :

set respawn_axis "timerSet 30"
set respawn_allies "timerSet 20"

set reset_respawn1 "vstr respawn_myside;resetTimer;echo ^xSpawnTimer ^7:^2Reset;set reset_respawn vstr reset_respawn2"
set reset_respawn2 "resetTimer;echo ^xSpawnTimer ^7:^2Reset"
set reset_respawn  "vstr reset_respawn1"
bind X "vstr reset_respawn" 

Step 2

The spawn times are not always the same on each map. Allies do not always spawn every 20 secs ... That is why we propose here to bind a key to display the enemy spawn time and to fix it in the dedicated spawntimer menu.

In the file autoexec_allies.cfg, add the following lines :

set set_respawn "toggleconsole; g_redlimbotime; wait 200; toggleconsole; openTimerInput"

In the file autoexec_axis.cfg, add the following lines :

set set_respawn "toggleconsole; g_bluelimbotime; wait 200; toggleconsole; openTimerInput"

In the file autoexec.cfg, add the following lines to bind the key

bind X "vstr reset_respawn;vstr set_respawn"