Skip to content
Snippets Groups Projects

MobjDamage hook tweaks for special stages

Merged 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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading