Basic binds, scripts and other stuff - ET-Legacy-Competitive/faq GitHub Wiki

SELFKILL

bind KEY "kill"

SPAWNTIMER

bind KEY "resettimer"

Please note that for a spawntimer this is all you need - the correct time for the timer for a specific map will selected automatically - no need for sophisticated scripts.

SPAWNPOINT SELECTOR

bind KEY "setspawnpt 1; play sound/menu/select; echo ^0[^7spawn @ 1^0]"
bind KEY "setspawnpt 2; play sound/menu/select; echo ^0[^7spawn @ 2^0]"
bind KEY "setspawnpt 3; play sound/menu/select; echo ^0[^7spawn @ 3^0]"
bind KEY "setspawnpt 4; play sound/menu/select; echo ^0[^7spawn @ 4^0]"
bind KEY "setspawnpt 5; play sound/menu/select; echo ^0[^7spawn @ 5^0]"
bind KEY "setspawnpt 0; play sound/menu/select; echo ^0[^7spawn @ default^0]"

Please be aware that some spawnpoints are different in Legacy compared to ETPro - you might need to check it yourself (an example is first stage goldrush spawnpoint to spawn back).

CLASS SELECTOR

bind KEY "class m 1; echo ^0[^7medic^0]"
bind KEY "class e 1; echo ^0[^7engi w/ smg^0]"
bind KEY "class e 2; echo ^0[^7engi w/ rifle^0]"
bind KEY "class f 1; echo ^0[^7fops^0]"
bind KEY "class c 1; echo ^0[^7sten^0]"
bind KEY "class c 3; echo ^0[^7sniper^0]"
bind KEY "class s 2; echo ^0[^7mobile mg^0]"
bind KEY "class s 4; echo ^0[^7panzer^0]" 

FOV SWITCH SCRIPT

set fov75 "echo ^1FOV 75; set cg_fov 75; set switch_fov vstr fov110;"
set fov110 "echo ^1FOV 110; set cg_fov 110; set switch_fov vstr fov75;"
set switch_fov "vstr fov75
bind KEY "vstr switch_fov"