Refactors CTF (#74342)

## About The Pull Request
CTF code is rather infamous for being poor and hard to actually work
with, I wanted to add a feature for a mapping march project but the code
would not allow for it, so here we are refactoring the entire thing.
## Why It's Good For The Game

Replaces some really bad code with slightly less bad code. Should make
it much easier to add features onto CTF in the future.
## Changelog
🆑
refactor: CTF has been entirely refactored.
fix: Respawn times for CTF now work.
qol: CTF players are alerted during control point games when one team is
half way to winning.
admin: CTF instagib mode can now be toggled from the secrets panel.
/🆑
This commit is contained in:
NamelessFairy
2023-04-09 17:13:06 -06:00
committed by GitHub
parent 10f27448d6
commit 670136a239
25 changed files with 772 additions and 583 deletions
+1 -1
View File
@@ -737,7 +737,7 @@
set name = "Unload CTF"
set desc = "Despawns the majority of CTF"
toggle_id_ctf(usr, unload=TRUE)
toggle_id_ctf(usr, CTF_GHOST_CTF_GAME_ID, unload=TRUE)
/client/proc/run_empty_query(val as num)
set category = "Debug"