From d5e9916cef315de67bff9f9513703c6b25190a8d Mon Sep 17 00:00:00 2001 From: cypress Date: Fri, 19 Jan 2024 17:09:27 -0500 Subject: [PATCH] SERVER: Allow Door trigger field spawning with wayTargets --- source/server/entities/doors.qc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/server/entities/doors.qc b/source/server/entities/doors.qc index de9fa1c..a19bc2e 100644 --- a/source/server/entities/doors.qc +++ b/source/server/entities/doors.qc @@ -511,7 +511,11 @@ void() LinkDoors = return; if (self.health) return; - if (self.targetname && self.classname != "door_nzp_cost") + + // Only disable trigger spawn fields if this is a vanilla Quake door with a targetname + // AND its without a wayTarget. Implies the door isnt really a "door" and like a bonus + // or something, since if its a proper door you will want waypoint entry.. + if (self.targetname && self.classname != "door_nzp_cost" && !self.wayTarget) return; self.owner.trigger_field = spawn_field(cmins, cmaxs);