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
1 changed files with 2 additions and 2 deletions
|
@ -215,7 +215,7 @@ EV_MuzzleFlash_Parse(void)
|
|||
|
||||
setorigin(tempMuzzle, tempMuzzle.m_eOwner.origin);
|
||||
setsize(tempMuzzle, [0,0,0], [0,0,0]);
|
||||
tempMuzzle.drawmask = MASK_ENGINE;
|
||||
tempMuzzle.drawmask = MASK_GLOWS;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -232,6 +232,6 @@ EV_MuzzleFlash_Create(entity muzzleOwner, int attachmentID, float muzzleScale, i
|
|||
|
||||
setorigin(tempMuzzle, tempMuzzle.m_eOwner.origin);
|
||||
setsize(tempMuzzle, [0,0,0], [0,0,0]);
|
||||
tempMuzzle.drawmask = MASK_ENGINE;
|
||||
tempMuzzle.drawmask = MASK_GLOWS;
|
||||
}
|
||||
#endif
|
Loading…
Reference in a new issue