mirror of
https://github.com/nzp-team/quakec.git
synced 2025-03-21 18:31:59 +00:00
SERVER: Allow Door trigger field spawning with wayTargets
This commit is contained in:
parent
8b0b4f016f
commit
d5e9916cef
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue