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
1 changed files with 2 additions and 0 deletions

View File

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