mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
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:
parent
421c40e929
commit
c75a6c1e7d
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue