diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index aacb45b18..b304e638f 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -996,6 +996,7 @@ enum FB_Flags FBF_NORANDOM = 2, FBF_EXPLICITANGLE = 4, FBF_NOPITCH = 8, + FBF_NOFLASH = 16, }; DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FireBullets) @@ -1025,7 +1026,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FireBullets) if (Range == 0) Range = PLAYERMISSILERANGE; - static_cast(self)->PlayAttacking2 (); + if (!(Flags & FBF_NOFLASH)) static_cast(self)->PlayAttacking2 (); if (!(Flags & FBF_NOPITCH)) bslope = P_BulletSlope(self); bangle = self->angle; diff --git a/wadsrc/static/actors/constants.txt b/wadsrc/static/actors/constants.txt index 05e77df2a..d6fdd42de 100644 --- a/wadsrc/static/actors/constants.txt +++ b/wadsrc/static/actors/constants.txt @@ -24,6 +24,7 @@ const int FBF_USEAMMO = 1; const int FBF_NORANDOM = 2; const int FBF_EXPLICITANGLE = 4; const int FBF_NOPITCH = 8; +const int FBF_NOFLASH = 16; // Flags for A_SpawnItemEx const int SXF_TRANSFERTRANSLATION=1;