mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 00:58:26 +01:00
[MIRROR] Refactors CTF [MDB IGNORE] (#20457)
* 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. /🆑 * Refactors CTF --------- Co-authored-by: NamelessFairy <40036527+NamelessFairy@users.noreply.github.com>
This commit is contained in:
co-authored by
NamelessFairy
parent
dbf35a416e
commit
e7500c6776
@@ -1529,7 +1529,7 @@
|
||||
else if(href_list["ctf_toggle"])
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
toggle_id_ctf(usr, "centcom")
|
||||
toggle_id_ctf(usr, CTF_GHOST_CTF_GAME_ID)
|
||||
|
||||
else if(href_list["rebootworld"])
|
||||
if(!check_rights(R_ADMIN))
|
||||
|
||||
Reference in New Issue
Block a user