SERVER: Allow moving while in Last Stand

This commit is contained in:
cypress 2023-12-14 12:36:33 -05:00
parent b4a2ce2ac5
commit 847556d5f1
2 changed files with 4 additions and 2 deletions

View file

@ -218,7 +218,6 @@ void() GetDown =
self.velocity = self.zoom = 0;
self.downed = true;
self.dive_delay = 0;
self.movetype = MOVETYPE_NONE;
float players_still_alive = PollPlayersAlive();
@ -389,7 +388,6 @@ void () GetUp =
addmoney(self, self.requirespower, false);
}
self.movetype = MOVETYPE_WALK;
Weapon_AssignWeapon(0, self.weaponbk, self.currentmagbk, self.currentammobk);
};

View file

@ -1904,6 +1904,8 @@ void() CheckPlayer =
// Broadcast that they're being revived
BroadcastMessageToClient(ent, time + 2, 3, self.netname);
ent.speed_penalty = 0.01;
ent.speed_penalty_time = time + 100;
ent.beingrevived = true;
ent.firer = self;
@ -1927,6 +1929,7 @@ void() CheckPlayer =
W_TakeOut();
ent.invoke_revive = 1;
ent.beingrevived = false;
ent.speed_penalty_time = 0;
self.reviving = 0;
self.progress_bar = 0;
self.progress_bar_time = 0;
@ -1942,6 +1945,7 @@ void() CheckPlayer =
DisableReviveIcon(ent.electro_targeted);
self.movetype = MOVETYPE_WALK;
ent.beingrevived = false;
ent.speed_penalty_time = 0;
ent.firer = world;
W_TakeOut();
self.progress_bar = 0;