Skip to content

MobjDamage hook tweaks for special stages

Henry3230 requested to merge Henry_3230/srb-3230:next into next

Resolves #822 (closed) .

This MR makes the MobjDamage lua hook actually works for non-NiGHTS special stages, also supports return true.

It also tweaks the hook's function for both old-style specials and NiGHTS to avoid it being called when flashing.

srb20006

srb20007

Test files:

mobjdamage_test1.wad mobjdamage_test2.wad

About the test files:

Each time the player gets hurt, it outputs "playerdamage" to the console.

'test2' is just 'test1' with return true inside the hook.

Edited by Henry3230

Merge request reports