From b64bdc049a8d07be21f185b1d36bbe5979327a5f Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Wed, 1 Mar 2023 23:09:25 -0800 Subject: [PATCH] func_escapezone/func_vip_safetyzone: deactivate flashlight upon entering --- src/server/func_escapezone.qc | 1 + src/server/func_vip_safetyzone.qc | 1 + 2 files changed, 2 insertions(+) diff --git a/src/server/func_escapezone.qc b/src/server/func_escapezone.qc index 00c9a86..f99e0cb 100644 --- a/src/server/func_escapezone.qc +++ b/src/server/func_escapezone.qc @@ -88,6 +88,7 @@ func_escapezone::Touch(entity eToucher) /* mark player as spectator for the end of this 'round' */ pl.MakeTempSpectator(); + pl.gflags &= ~GF_FLASHLIGHT; /* threshold has been met to trigger the end of the round */ if (rule.m_iEscapedTerrorists >= to_escape) { diff --git a/src/server/func_vip_safetyzone.qc b/src/server/func_vip_safetyzone.qc index 41b132d..785e064 100644 --- a/src/server/func_vip_safetyzone.qc +++ b/src/server/func_vip_safetyzone.qc @@ -65,4 +65,5 @@ func_vip_safetyzone::Touch(entity eToucher) /* mark player as spectator for the end of this 'round' */ pl.MakeTempSpectator(); + pl.gflags &= ~GF_FLASHLIGHT; }