mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 07:46:20 +00:00
* 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>
12 lines
333 B
Plaintext
12 lines
333 B
Plaintext
/// The number of voters required for CTF to enable
|
|
#define CTF_REQUIRED_PLAYERS 4
|
|
|
|
/// The game ID for normal ghost CTF
|
|
#define CTF_GHOST_CTF_GAME_ID "centcom"
|
|
|
|
/// The game ID used by the medieval simulator shuttle.
|
|
#define CTF_MEDISIM_CTF_GAME_ID "medisim"
|
|
|
|
/// A list containing all loaded CTF games
|
|
GLOBAL_LIST_EMPTY(ctf_games)
|