Added (XF/RADF)_NOALLIES.
This flag allows explosions to not harm any actors that are friendly to its' source.
This commit is contained in:
parent
6489b05db9
commit
ca1f3ac580
4 changed files with 11 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue