mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-24 21:31:46 +00:00
Merge branch 'next' into 'next'
MobjDamage hook tweaks for special stages Closes #822 See merge request STJr/SRB2!2485
This commit is contained in:
commit
8b826bb267
1 changed files with 6 additions and 0 deletions
|
@ -3786,6 +3786,8 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
|||
|
||||
if (player->powers[pw_carry] == CR_NIGHTSMODE) // NiGHTS damage handling
|
||||
{
|
||||
if (player->powers[pw_flashing])
|
||||
return false;
|
||||
if (!force)
|
||||
{
|
||||
if (source == target)
|
||||
|
@ -3803,6 +3805,10 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
|||
|
||||
if (G_IsSpecialStage(gamemap) && !(damagetype & DMG_DEATHMASK))
|
||||
{
|
||||
if (player->powers[pw_flashing])
|
||||
return false;
|
||||
if (LUA_HookMobjDamage(target, inflictor, source, damage, damagetype))
|
||||
return true;
|
||||
P_SpecialStageDamage(player, inflictor, source);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue