Add HITOWNER flag, when set, allows a projectile to collide with its shooter.

This commit is contained in:
Mari the Deer 2018-08-17 19:03:50 +02:00 committed by Christoph Oelckers
commit 155afebb65
3 changed files with 4 additions and 2 deletions

View file

@ -1554,8 +1554,8 @@ bool PIT_CheckThing(FMultiBlockThingsIterator &it, FMultiBlockThingsIterator::Ch
if (tm.thing->target != NULL)
{
if (thing == tm.thing->target)
{ // Don't missile self
if (thing == tm.thing->target && !(tm.thing->flags8 & MF8_HITOWNER))
{ // Don't missile self -- [MK] unless explicitly allowed
return true;
}