SERVER: Allow Door trigger field spawning with wayTargets

This commit is contained in:
cypress 2024-01-19 17:09:27 -05:00 committed by GitHub
parent 8b0b4f016f
commit d5e9916cef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);