Replaced MISSILE(EVEN)MORE with a real property and added related Dehacked options from Crispy Doom.
This also adds proper deprecation messages to the deprecated flags which were missing due to a bad definition macro.
This commit is contained in:
parent
ad4eef3b6c
commit
8354c4a5c3
19 changed files with 138 additions and 69 deletions
|
|
@ -373,8 +373,7 @@ static int P_CheckMissileRange (AActor *actor)
|
|||
if (actor->MeleeState != nullptr && dist < actor->meleethreshold)
|
||||
return false; // From the Revenant: close enough for fist attack
|
||||
|
||||
if (actor->flags4 & MF4_MISSILEMORE) dist *= 0.5;
|
||||
if (actor->flags4 & MF4_MISSILEEVENMORE) dist *= 0.125;
|
||||
dist *= actor->missilechancemult;
|
||||
|
||||
int mmc = int(actor->MinMissileChance * G_SkillProperty(SKILLP_Aggressiveness));
|
||||
return pr_checkmissilerange() >= min(int(dist), mmc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue