mirror of
https://github.com/nzp-team/quakec.git
synced 2025-01-18 23:31:38 +00:00
SERVER: Fix default Quake functionality for func_door
with targetname
This commit is contained in:
parent
371f4b9824
commit
8f1253244f
1 changed files with 7 additions and 0 deletions
|
@ -392,6 +392,13 @@ void() door_touch =
|
|||
centerprint (other, self.owner.message);
|
||||
}
|
||||
|
||||
// Since we've removed support for Quake keys (*.items),
|
||||
// this additional check is needed to prevent standard
|
||||
// func_door entities from activating on-touch if it's
|
||||
// set to only be triggered.
|
||||
if (self.classname == "door" && self.targetname)
|
||||
return;
|
||||
|
||||
if (isPowerOn == FALSE)
|
||||
{
|
||||
if (self.owner.spawnflags & DOOR_POWER)
|
||||
|
|
Loading…
Reference in a new issue