env_muzzleflash: set it as MASK_GLOWS instead of MASK_ENGINE to ensure we attach
after the viewmodel position has updated.
This commit is contained in:
parent
ee60a09eed
commit
396910e587
|
@ -215,7 +215,7 @@ EV_MuzzleFlash_Parse(void)
|
||||||
|
|
||||||
setorigin(tempMuzzle, tempMuzzle.m_eOwner.origin);
|
setorigin(tempMuzzle, tempMuzzle.m_eOwner.origin);
|
||||||
setsize(tempMuzzle, [0,0,0], [0,0,0]);
|
setsize(tempMuzzle, [0,0,0], [0,0,0]);
|
||||||
tempMuzzle.drawmask = MASK_ENGINE;
|
tempMuzzle.drawmask = MASK_GLOWS;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -232,6 +232,6 @@ EV_MuzzleFlash_Create(entity muzzleOwner, int attachmentID, float muzzleScale, i
|
||||||
|
|
||||||
setorigin(tempMuzzle, tempMuzzle.m_eOwner.origin);
|
setorigin(tempMuzzle, tempMuzzle.m_eOwner.origin);
|
||||||
setsize(tempMuzzle, [0,0,0], [0,0,0]);
|
setsize(tempMuzzle, [0,0,0], [0,0,0]);
|
||||||
tempMuzzle.drawmask = MASK_ENGINE;
|
tempMuzzle.drawmask = MASK_GLOWS;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue