- Added NORANDOMPUFFZ flag to A_Saw

This commit is contained in:
Player701 2020-09-27 20:24:59 +03:00 committed by Christoph Oelckers
parent 56a387ac82
commit ffb4c52c96
2 changed files with 4 additions and 1 deletions

View file

@ -78,9 +78,11 @@ extend class StateProvider
return; return;
} }
int puffFlags = (flags & SF_NORANDOMPUFFZ) ? LAF_NORANDOMPUFFZ : 0;
Actor puff; Actor puff;
int actualdamage; int actualdamage;
[puff, actualdamage] = LineAttack (ang, range, slope, damage, 'Melee', pufftype, false, t); [puff, actualdamage] = LineAttack (ang, range, slope, damage, 'Melee', pufftype, puffFlags, t);
if (!t.linetarget) if (!t.linetarget)
{ {

View file

@ -36,6 +36,7 @@ enum ESawFlags
SF_NOPULLIN = 32, SF_NOPULLIN = 32,
SF_NOTURN = 64, SF_NOTURN = 64,
SF_STEALARMOR = 128, SF_STEALARMOR = 128,
SF_NORANDOMPUFFZ = 256,
}; };
// Flags for A_BFGSpray // Flags for A_BFGSpray