mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-16 09:01:41 +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 =
|
void() door_trigger_touch =
|
||||||
{
|
{
|
||||||
if(other.classname != "player")
|
if(other.classname != "player")
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
if(cvar("waypoint_mode"))
|
if(cvar("waypoint_mode"))
|
||||||
{
|
{
|
||||||
|
@ -348,6 +346,9 @@ void() door_trigger_touch =
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (self.owner.targetname && self.owner.classname != "door_nzp_cost")
|
||||||
|
return;
|
||||||
|
|
||||||
if (other.health <= 20)
|
if (other.health <= 20)
|
||||||
return;
|
return;
|
||||||
|
@ -399,6 +400,8 @@ void() door_touch =
|
||||||
if (self.classname == "door" && self.targetname)
|
if (self.classname == "door" && self.targetname)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
bprint(PRINT_HIGH, "hello..!\n");
|
||||||
|
|
||||||
if (isPowerOn == FALSE)
|
if (isPowerOn == FALSE)
|
||||||
{
|
{
|
||||||
if (self.owner.spawnflags & DOOR_POWER)
|
if (self.owner.spawnflags & DOOR_POWER)
|
||||||
|
|
Loading…
Reference in a new issue