From d186bb36ce473d7a8015ba4902524479a8bd7aef Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 1 Oct 2016 06:49:56 +1000 Subject: [PATCH] Fix second model sticking after death --- qcsrc/common/weapons/all.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/weapons/all.qc b/qcsrc/common/weapons/all.qc index d2acab1a0..6139d41b4 100644 --- a/qcsrc/common/weapons/all.qc +++ b/qcsrc/common/weapons/all.qc @@ -391,7 +391,9 @@ void CL_WeaponEntity_SetModel(entity this, string name, bool _anim) { if (name == "") { - this.model = ""; + vector oldmin = this.mins, oldmax = this.maxs; + setmodel(this, MDL_Null); + setsize(this, oldmin, oldmax); if (this.weaponchild) delete(this.weaponchild); this.weaponchild = NULL; this.movedir = '0 0 0'; -- 2.39.2