Added (XF/RADF)_NOALLIES.

This flag allows explosions to not harm any actors that are friendly to its' source.
This commit is contained in:
inkoalawetrust 2023-01-06 05:19:44 +02:00 committed by Rachael Alexanderson
commit ca1f3ac580
4 changed files with 11 additions and 5 deletions

View file

@ -6072,10 +6072,12 @@ int P_RadiusAttack(AActor *bombspot, AActor *bombsource, int bombdamage, int bom
)
) continue;
if((species != NAME_None) && (thing->Species != species))
{
if ((species != NAME_None) && (thing->Species != species))
continue;
//[inkoalawetrust] Don't harm actors friendly to the explosions' source.
if ((flags & RADF_NOALLIES) && bombsource->IsFriend(thing))
continue;
}
if (bombsource && thing != bombsource && bombsource->player && P_ShouldPassThroughPlayer(bombsource, thing))
continue;