From 1000dc8455870155c00ff8aee1d22f38e135a3a7 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Sun, 12 Sep 2021 00:29:46 +0200 Subject: [PATCH] Respawn env_shooters as part of the gamerules too... --- src/server/gamerules.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server/gamerules.qc b/src/server/gamerules.qc index 3861379..e0227b0 100644 --- a/src/server/gamerules.qc +++ b/src/server/gamerules.qc @@ -332,6 +332,10 @@ SHMultiplayerRules::FrameStart(void) func_pushable pb = (func_pushable)e; pb.Respawn(); } + for (e = world; (e = find( e, ::classname, "env_shooter"));) { + env_shooter sh = (env_shooter)e; + sh.Respawn(); + } } }