From 847556d5f1873acf50a8cd73e91fb79c622cf7bb Mon Sep 17 00:00:00 2001 From: cypress Date: Thu, 14 Dec 2023 12:36:33 -0500 Subject: [PATCH] SERVER: Allow moving while in Last Stand --- source/server/damage.qc | 2 -- source/server/weapons/weapon_core.qc | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/server/damage.qc b/source/server/damage.qc index fdd43dd..9673160 100644 --- a/source/server/damage.qc +++ b/source/server/damage.qc @@ -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); }; diff --git a/source/server/weapons/weapon_core.qc b/source/server/weapons/weapon_core.qc index 8961161..c31fe2d 100644 --- a/source/server/weapons/weapon_core.qc +++ b/source/server/weapons/weapon_core.qc @@ -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;