From dae98790e5e470fd4bbaded50e0e6453f0fa6b14 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Wed, 6 Oct 2021 22:01:30 +0200 Subject: [PATCH] Insert muzzleflash precaches from Nuclide into ClientGame_RendererRestart --- src/client/init.qc | 8 +++++--- src/shared/w_satchel.qc | 2 -- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/init.qc b/src/client/init.qc index 5f6089d..f39fca0 100644 --- a/src/client/init.qc +++ b/src/client/init.qc @@ -37,9 +37,11 @@ ClientGame_RendererRestart(string rstr) { precache_model("models/shell.mdl"); precache_model("models/shotgunshell.mdl"); - precache_model("sprites/muzzleflash1.spr"); - precache_model("sprites/muzzleflash2.spr"); - precache_model("sprites/muzzleflash2.spr"); + + /* there's also muzzleflash.spr, but that's just MUZZLE_SMALL again */ + MUZZLE_RIFLE = (int)getmodelindex("sprites/muzzleflash1.spr"); + MUZZLE_SMALL = (int)getmodelindex("sprites/muzzleflash2.spr"); + MUZZLE_WEIRD = (int)getmodelindex("sprites/muzzleflash3.spr"); Obituary_Precache(); diff --git a/src/shared/w_satchel.qc b/src/shared/w_satchel.qc index 7b4a058..e8a911f 100644 --- a/src/shared/w_satchel.qc +++ b/src/shared/w_satchel.qc @@ -40,8 +40,6 @@ enum RADIO_HOLSTER }; - - #ifdef SERVER void s_satchel_drop(entity master, vector src, vector vel)