projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1290e9
)
Fix second model sticking after death
author
Mario <mario@smbclan.net>
Fri, 30 Sep 2016 20:49:56 +0000
(06:49 +1000)
committer
Mario <mario@smbclan.net>
Fri, 30 Sep 2016 20:49:56 +0000
(06:49 +1000)
qcsrc/common/weapons/all.qc
patch
|
blob
|
history
diff --git
a/qcsrc/common/weapons/all.qc
b/qcsrc/common/weapons/all.qc
index d2acab1a040752da72e5237ce14c11b0aea77645..6139d41b494274d9c2fbefd6f5f51eacc9194813 100644
(file)
--- 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';