mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-16 09:01:41 +00:00
SERVER: Prevent Players in Last Stand from activating Door Triggers
This commit is contained in:
parent
8abb8feeef
commit
8eb0eabb5d
1 changed files with 1 additions and 3 deletions
|
@ -332,7 +332,7 @@ void() door_use =
|
||||||
|
|
||||||
void() door_trigger_touch =
|
void() door_trigger_touch =
|
||||||
{
|
{
|
||||||
if(other.classname != "player")
|
if(other.classname != "player" || other.downed)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(cvar("waypoint_mode"))
|
if(cvar("waypoint_mode"))
|
||||||
|
@ -400,8 +400,6 @@ 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