SERVER: Cancel Revive if Client disconnects

This commit is contained in:
Steam Deck User 2023-01-31 15:51:41 -05:00
parent 2de12f6791
commit 549df8f7e0

View file

@ -2298,8 +2298,11 @@ void() CheckPlayer =
addmoney(self, ent.requirespower, false); addmoney(self, ent.requirespower, false);
} }
} }
else if ((!self.button7 && self.reviving) || (self.reviving && self.active_door != ent)) { else if ((!self.button7 && self.reviving) || (self.reviving && self.active_door != ent) || ent.classname == "disconnected") {
ChangeReviveIconState(ent.electro_targeted, 1); if (ent.classname != "disconnected")
ChangeReviveIconState(ent.electro_targeted, 1);
else
DisableReviveIcon(ent.electro_targeted);
self.movetype = MOVETYPE_WALK; self.movetype = MOVETYPE_WALK;
ent.beingrevived = false; ent.beingrevived = false;
ent.firer = world; ent.firer = world;