From d5101dd0b25327d799f3a2426fa2d84f513655af Mon Sep 17 00:00:00 2001 From: Indev Date: Sat, 7 Sep 2024 11:46:59 +0300 Subject: [PATCH] Document changes to lua P_PlayRinglossSound and K_PlayHitEmSound functions --- LUASTUFF.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/LUASTUFF.md b/LUASTUFF.md index a8f285692..d753723f1 100644 --- a/LUASTUFF.md +++ b/LUASTUFF.md @@ -151,3 +151,15 @@ Best to be used in a Loop to ensure the color wont get overwritten by the game. Add Gamepad Rumble support for things. To be used with Displayplayers. Duration is in milliseconds and is optional to set, default value is 84ms. + +# Other changes + +## P_PlayRinglossSound(source, damager) + +Add optional `damager` argument (should be `mobj_t`), which causes hurt sound also play for damager +if `karthitemdialog` option is enabled + +## K_PlayHitEmSound(mobj, victim) + +Add optional `victim` argument (should be a player's `mobj_t`), which causes "hit em" sound to be +delayed and played for victim too if `karthitemdialog` option is enabled