Modding > Spelunky 2 > Sample Mod - Custom Whip Sound
Because making fun of Roffy is comedy gold
- By:
- Trixelized, Malacath
- Downloads:
- 72
- Mod Type:
- Specific Asset
- Install Code:
-
sample-mod-custom-whip-sound
- Added:
- 3 years, 7 months ago
- Last Update:
- 3 years, 7 months ago
- Average Rating:
Details
Make Roffy's whip sound like a fart, because he's a fart
Disclaimer: I actually like Roffy, but you have to make fun of him to be part of the cool kids.
This mod uses a script to replace the whip sound for Roffy. It needs at least Playlunky v0.7.6 (or the equivalent Overlunky)
-- Thanks @Trixelized for your fart sounds -- create the sounds that you want to have instead of the whip at global scope pre_fart = create_sound('pre_fart.wav') fart = create_sound('fart.wav') -- for readability, store the id of the character you want to replace at global scope -- this is essentially just their position in the list when switching through them in character select roffy_character_id = 4 -- the whip sound is split into two different vanilla sounds, one when pulling out the whip and one when swinging it -- register a callback when the first part of the sound is started -- it has to be VANILLA_SOUND_CALLBACK_TYPE.STARTED because that means the sound has not played yet but is already in the playing state set_vanilla_sound_callback(VANILLA_SOUND.PLAYER_WHIP1, VANILLA_SOUND_CALLBACK_TYPE.STARTED, function(whip_sound) if whip_sound:get_parameter(VANILLA_SOUND_PARAM.PLAYER_CHARACTER) == roffy_character_id then -- check that the sound was made by the character we are interested in whip_sound:stop() -- stop the original sound local pre_fart_playing = pre_fart:play(true) -- play our own sound pre_fart_playing:set_volume(0.7) -- though it's a bit loud, so tune it down just a bit pre_fart_playing:set_pause(false) -- and unpause it end end) -- register a callback for the second part, using the same logic as the first set_vanilla_sound_callback(VANILLA_SOUND.PLAYER_WHIP2, VANILLA_SOUND_CALLBACK_TYPE.STARTED, function(whip_sound) if whip_sound:get_parameter(VANILLA_SOUND_PARAM.PLAYER_CHARACTER) == roffy_character_id then whip_sound:stop() fart:play() end end)
Other Disclaimer: This feature is still experimental, use at your own risk and report bugs to the Playlunky and/or Overlunky team. DO NOT REPORT BUGS TO MOSSMOUTH/BLITWORKS.
Downloads
Latest Download
Downloads | Name | Uploaded | |
---|---|---|---|
72 | fart_whip.zip | 3 years, 7 months ago |
Preview Images
Comments (2)
Please log in to leave a comment.
I hate blargho for starting the roffy hate movement. Other than that, I like blargh. Roffy is one of the best characters.. but just bullied relentlessly... i cri
Same i have to make fun of roffy because when i played online on the official Spelunky 2 server i got bullied and team killed for playing him.