Lower flame damage if using accurate clipmove

The eduke clipmove will cause a higher hit %, lower all flame damage from 8->3 to compensate with overall higher sprite hit result
This commit is contained in:
carnivoroussociety 2021-08-19 22:18:52 +10:00
parent f0627fa6c2
commit 6d4a3243b7

View file

@ -4078,7 +4078,11 @@ static void actImpactMissile(DBloodActor* missileActor, int hitCode)
evPost(actorHit, 0, kCallbackFXFlameLick); evPost(actorHit, 0, kCallbackFXFlameLick);
actBurnSprite(missileOwner, actorHit, (4 + gGameOptions.nDifficulty) << 2); actBurnSprite(missileOwner, actorHit, (4 + gGameOptions.nDifficulty) << 2);
actDamageSprite(missileOwner, actorHit, kDamageBurn, 8); const bool reduceSprayDamage = !cl_bloodvanillaexplosions && !VanillaMode() && !DemoRecordStatus();
int nDamage = 8;
if (reduceSprayDamage) // reduce flame damage if using improved clipmove mode (higher hit rate)
nDamage = 3;
actDamageSprite(missileOwner, actorHit, kDamageBurn, nDamage);
} }
break; break;