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:
Marco Cawthorne 2024-03-07 19:38:46 -08:00
parent ee60a09eed
commit 396910e587
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 2 additions and 2 deletions

View File

@ -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