mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-28 23:02:51 +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);
|
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;
|
||||||
|
|
Loading…
Reference in a new issue