From 01ba8e39d0c05887c1d13140081d5a8273cfd7d4 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 31 Jul 2020 20:50:18 +1000 Subject: [PATCH] Disable an unused function in the CTF code --- qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc b/qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc index 4721d5ef4..9166f4f80 100644 --- a/qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc +++ b/qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc @@ -535,10 +535,12 @@ void ctf_Handle_Throw(entity player, entity receiver, int droptype) ctf_CaptureShield_Update(player, 0); // shield player from picking up flag } +#if 0 void shockwave_spawn(string m, vector org, float sz, float t1, float t2) { return modeleffect_spawn(m, 0, 0, org, '0 0 0', '0 0 0', '0 0 0', 0, sz, 1, t1, t2); } +#endif // ============== // Event Handlers @@ -602,7 +604,9 @@ void ctf_Handle_Capture(entity flag, entity toucher, int capturetype) // effects Send_Effect_(flag.capeffect, flag.origin, '0 0 0', 1); - //shockwave_spawn("models/ctf/shockwavetransring.md3", flag.origin - '0 0 15', -0.8, 0, 1); +#if 0 + shockwave_spawn("models/ctf/shockwavetransring.md3", flag.origin - '0 0 15', -0.8, 0, 1); +#endif // other if(capturetype == CAPTURE_NORMAL) -- 2.39.2