SERVER: Prevent Players in Last Stand from activating Door Triggers

This commit is contained in:
MotoLegacy 2024-01-22 22:36:39 -05:00
parent 8abb8feeef
commit 8eb0eabb5d

View file

@ -332,7 +332,7 @@ void() door_use =
void() door_trigger_touch =
{
if(other.classname != "player")
if(other.classname != "player" || other.downed)
return;
if(cvar("waypoint_mode"))
@ -400,8 +400,6 @@ void() door_touch =
if (self.classname == "door" && self.targetname)
return;
bprint(PRINT_HIGH, "hello..!\n");
if (isPowerOn == FALSE)
{
if (self.owner.spawnflags & DOOR_POWER)