Terrain small splashes and splash bases now set their target to the thing that spawned them, allowing for extra customization.

This commit is contained in:
Major Cooke 2022-02-22 14:23:19 -06:00 committed by Christoph Oelckers
parent 421c40e929
commit c75a6c1e7d

View file

@ -6271,6 +6271,7 @@ foundone:
if (smallsplash && splash->SmallSplash) if (smallsplash && splash->SmallSplash)
{ {
mo = Spawn(sec->Level, splash->SmallSplash, pos, ALLOW_REPLACE); mo = Spawn(sec->Level, splash->SmallSplash, pos, ALLOW_REPLACE);
mo->target = thing;
if (mo) mo->Floorclip += splash->SmallSplashClip; if (mo) mo->Floorclip += splash->SmallSplashClip;
} }
else else
@ -6292,6 +6293,7 @@ foundone:
if (splash->SplashBase) if (splash->SplashBase)
{ {
mo = Spawn(sec->Level, splash->SplashBase, pos, ALLOW_REPLACE); mo = Spawn(sec->Level, splash->SplashBase, pos, ALLOW_REPLACE);
mo->target = thing;
} }
if (thing->player && !splash->NoAlert && alert) if (thing->player && !splash->NoAlert && alert)
{ {