From 8004caccfb86c96778c5904357766c094a2c0ee0 Mon Sep 17 00:00:00 2001 From: cypress Date: Thu, 28 Dec 2023 11:56:04 -0500 Subject: [PATCH] SERVER: Fix v_morphine not hiding weapon2model --- source/server/weapons/frames_core.qc | 1 + source/server/weapons/weapon_core.qc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/server/weapons/frames_core.qc b/source/server/weapons/frames_core.qc index 1a34fa8..26d2eff 100644 --- a/source/server/weapons/frames_core.qc +++ b/source/server/weapons/frames_core.qc @@ -186,6 +186,7 @@ float(string path) model_should_hide_weapon2 = case "models/weapons/bk/v_bk.mdl": case "models/weapons/knife/v_bowie.mdl": case "models/weapons/knife/v_knife.mdl": + case "models/weapons/morphine/v_morphine.mdl": return true; } diff --git a/source/server/weapons/weapon_core.qc b/source/server/weapons/weapon_core.qc index c31fe2d..ae11f7f 100644 --- a/source/server/weapons/weapon_core.qc +++ b/source/server/weapons/weapon_core.qc @@ -1912,7 +1912,7 @@ void() CheckPlayer = if (!self.progress_bar_percent) { ChangeReviveIconState(ent.electro_targeted, 2); self.movetype = MOVETYPE_TOSS; - Set_W_Frame (0, 21, 0, 0, SPRINT, SUB_Null, "models/weapons/morphine/v_morphine.mdl", false, S_BOTH); + Set_W_Frame (0, 21, 0, 0, SPRINT, SUB_Null, "models/weapons/morphine/v_morphine.mdl", false, S_RIGHT); if !(self.perks & P_REVIVE) self.progress_bar_time = 4;