Skip to content

Commit

Permalink
func_escapezone/func_vip_safetyzone: deactivate flashlight upon entering
Browse files Browse the repository at this point in the history
  • Loading branch information
eukara committed Mar 2, 2023
1 parent 2d51a76 commit b64bdc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/server/func_escapezone.qc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions src/server/func_vip_safetyzone.qc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit b64bdc0

Please sign in to comment.