From 3d233480fce5ce32430df25f6b7e93932fff1ec7 Mon Sep 17 00:00:00 2001 From: MotoLegacy Date: Fri, 19 Jan 2024 18:41:08 -0500 Subject: [PATCH] SERVER: Prohibit trigger field firing in non-waypoint mode for Quake doors --- source/server/entities/doors.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/server/entities/doors.qc b/source/server/entities/doors.qc index a19bc2e..1b768a5 100644 --- a/source/server/entities/doors.qc +++ b/source/server/entities/doors.qc @@ -333,9 +333,7 @@ void() door_use = void() door_trigger_touch = { if(other.classname != "player") - { return; - } if(cvar("waypoint_mode")) { @@ -348,6 +346,9 @@ void() door_trigger_touch = } return; } + + if (self.owner.targetname && self.owner.classname != "door_nzp_cost") + return; if (other.health <= 20) return; @@ -399,6 +400,8 @@ void() door_touch = if (self.classname == "door" && self.targetname) return; + bprint(PRINT_HIGH, "hello..!\n"); + if (isPowerOn == FALSE) { if (self.owner.spawnflags & DOOR_POWER)