need help with spawntimer
•
22 Oct 2018, 14:19
•
Journals
Hey guys,
Have gotten back to ET after a long time and while constructing a cfg for myself I faced the problem of creating a working spawntimer. I have found some spawntimers in configs on antman.info, but I can't figure out how they work.
Can anyone please help?
Cheers,
Vane
Have gotten back to ET after a long time and while constructing a cfg for myself I faced the problem of creating a working spawntimer. I have found some spawntimers in configs on antman.info, but I can't figure out how they work.
Can anyone please help?
Cheers,
Vane
set timer1 "timerset 30; set timer vstr timer2"
set timer2 "timerset 20; set timer vstr timer3"
set timer3 "timerset 35; set timer vstr timer4"
set timer4 "timerset 25; set timer vstr timer5"
set timer5 "timerset 15; set timer vstr timer1"
set timer "vstr timer1"
bind m "vstr timer"
bind n "resettimer"
where you need only 2 buttons to control any amount of different spawntimes.
There are also autoexec_mapname.cfg setups that allow you only press one button without needing to cycle through your spawntime binds when setting the spawntime. Those actually are useful since you save yourself from binding an unnecessary key, and you can trust that any time you set the spawntimer you're setting the correct one.
Put in this (into autoexec_adlernest.cfg) :
//
set spt_axis "timerset 30; cmd say_buddy [INSERT WHAT YOU WANT TEAM CHAT] ;echo "[INSERT ECHO MSG].""
set spt_allies "timerset 20;cmd say_buddy [INSERT WHAT YOU WANT TEAM CHAT];echo "[INSERT ECHO MSG].""
Then create 2 .cfg (autoexec_allies.cfg / autoexec_axis.cfg)
Put this into:
1) autoexec_allies.cfg
//
set spawningtime "vstr spt_axis"
bind h"vstr spt_axis"
2) autoexec_axis.cfg
//
set spawningtime "vstr spt_allies"
bind h"vstr spt_allies"
And you're ready to go
bind h "vstr timerSet-toggle"
set enemy-spawned "echo ^1~^7Enemy Spawned^1~;say_team ^1~^7Enemy Spawned^1~"
set timerSet-time "timerSet 20"
set timerSet-toggle "vstr timerSet30"
set timerSet-TimerInput "openTimerInput; set timerSet-time resetTimer; set timerSet-toggle vstr timerSetxx"
set timerSet20 "set timerSet-time timerSet 20; set timerSet-toggle vstr timerSet25; echo ^7>^1>^7Timer Set^1: ^720; play sound/menu/select.wav"
set timerSet25 "set timerSet-time timerSet 25; set timerSet-toggle vstr timerSet30; echo ^7>^1>^7Timer Set^1: ^725; play sound/menu/select.wav"
set timerSet30 "set timerSet-time timerSet 30; set timerSet-toggle vstr timerSet20; echo ^7>^1>^7Timer Set^1: ^730; play sound/menu/select.wav"
20.25.30