Closed thehonker closed 2 years ago
big thank https://github.com/tmick0/sm_hookevent
Works great on round_end
to reset things to defaults, haven't tested further but I don't see why it wouldn't work.
Examples you can put in the readme:
>> commandlist.txt from https://github.com/caxanga334/cvreduxmodified
!knifeonly Rf{r} exec custom/custom-modes/knife_only.cfg; sm_hookevent round_end "exec custom/defaults/default_all.cfg"
>> some_config_file.cfg
bot_quota 10
sm_hookevent round_end "bot_quota 0; bot_kick"
reopening as updated version w/ repeated hooks requires testing
tested working well 👍
Take a a cvar of command(s) to execute at round end
Now that I'm thinking about it more, it'd be really nice if we could hook round start as well.
Stretch goal can be to hook any event.