mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 03:41:15 +00:00
SERVER: Prohibit trigger field firing in non-waypoint mode for Quake doors
This commit is contained in:
parent
d5e9916cef
commit
3d233480fc
1 changed files with 5 additions and 2 deletions
|
@ -333,9 +333,7 @@ void() door_use =
|
|||
void() door_trigger_touch =
|
||||
{
|
||||
if(other.classname != "player")
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if(cvar("waypoint_mode"))
|
||||
{
|
||||
|
@ -349,6 +347,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)
|
||||
|
|
Loading…
Reference in a new issue