- MBF21: splash group.

This commit is contained in:
Christoph Oelckers 2021-06-29 17:47:52 +02:00
commit 0bb5ec0d22
3 changed files with 29 additions and 0 deletions

View file

@ -5956,6 +5956,11 @@ int P_RadiusAttack(AActor *bombspot, AActor *bombsource, int bombdamage, int bom
continue;
}
// MBF21
auto targetgroup = thing->GetClass()->ActorInfo()->splash_group;
auto sourcegroup = bombspot->GetClass()->ActorInfo()->splash_group;
if (targetgroup != 0 && targetgroup == sourcegroup) continue;
// a much needed option: monsters that fire explosive projectiles cannot
// be hurt by projectiles fired by a monster of the same type.
// Controlled by the DONTHARMCLASS and DONTHARMSPECIES flags.