Client: Explicit precache of the muzzleflash models.

This commit is contained in:
Marco Cawthorne 2023-09-18 18:48:26 -07:00
parent 7409ef7d6a
commit ac56cfd8f2
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,9 @@ ClientGame_RendererRestart(string rstr)
precache_model("models/shotgunshell.mdl");
/* there's also muzzleflash.spr, but that's just MUZZLE_SMALL again */
precache_model("sprites/muzzleflash1.spr");
precache_model("sprites/muzzleflash2.spr");
precache_model("sprites/muzzleflash3.spr");
MUZZLE_RIFLE = (int)getmodelindex("sprites/muzzleflash1.spr");
MUZZLE_SMALL = (int)getmodelindex("sprites/muzzleflash2.spr");
MUZZLE_WEIRD = (int)getmodelindex("sprites/muzzleflash3.spr");