- MBF21: splash group.
This commit is contained in:
parent
cc801a7efa
commit
0bb5ec0d22
3 changed files with 29 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue