From 8fb17756062c14247f88ff63b60ad72e90ea877f Mon Sep 17 00:00:00 2001 From: Indev Date: Sat, 31 May 2025 19:15:04 +0300 Subject: [PATCH] Forgot MusicCredit hook --- LUASTUFF.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LUASTUFF.md b/LUASTUFF.md index 3853f6e43..83ec76545 100644 --- a/LUASTUFF.md +++ b/LUASTUFF.md @@ -187,6 +187,11 @@ musicdef for green hills music. Global table for all musicdefs, similar to mobjinfo, states, etc. Can take either integer indices, from `0` to `#musicdefs-1`, or string indices (which is equal to calling `S_FindMusicCredit`). +## addHook("MusicCredit", function(musicdef)) + +Hook is called whenever `S_ShowMusicCredit` (either from game or mod) is called. Takes musicdef as only argument, returning true +will overwrite vanilla behavior (not show music credit), can be used to implement custom music credit pop-ups. + # Other changes ## P_PlayRinglossSound(source, damager)