mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-25 05:11:05 +00:00
SERVER: Cancel Revive if Client disconnects
This commit is contained in:
parent
2de12f6791
commit
549df8f7e0
1 changed files with 5 additions and 2 deletions
|
@ -2298,8 +2298,11 @@ void() CheckPlayer =
|
|||
addmoney(self, ent.requirespower, false);
|
||||
}
|
||||
}
|
||||
else if ((!self.button7 && self.reviving) || (self.reviving && self.active_door != ent)) {
|
||||
ChangeReviveIconState(ent.electro_targeted, 1);
|
||||
else if ((!self.button7 && self.reviving) || (self.reviving && self.active_door != ent) || ent.classname == "disconnected") {
|
||||
if (ent.classname != "disconnected")
|
||||
ChangeReviveIconState(ent.electro_targeted, 1);
|
||||
else
|
||||
DisableReviveIcon(ent.electro_targeted);
|
||||
self.movetype = MOVETYPE_WALK;
|
||||
ent.beingrevived = false;
|
||||
ent.firer = world;
|
||||
|
|
Loading…
Reference in a new issue