Skip to content

Commit

Permalink
Adds 1 in a 100 chance for the falling mob sounds to be lead pipe fal…
Browse files Browse the repository at this point in the history
…l sound. (#151)

* lead pipe

* Update transit.dm

* Update transit.dm
  • Loading branch information
Helg2 authored Aug 27, 2024
1 parent 8d1e8e0 commit 59a95d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/game/turfs/space/transit.dm
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,13 @@
/mob/living/handle_airdrop(turf/target_turf)
. = ..()
remove_status_effect(/datum/status_effect/spacefreeze)
playsound(target_turf, pick('sound/effects/bang.ogg', 'sound/effects/meteorimpact.ogg'), 75, TRUE)

var/drop_sound = pick('sound/effects/bang.ogg', 'sound/effects/meteorimpact.ogg')
var/mob/living/carbon/human/human = src
if(prob(1) || human?.species?.species_flags & (IS_SYNTHETIC|ROBOTIC_LIMBS) && prob(25))
drop_sound = 'sound/effects/lead_pipe_drop.ogg'

playsound(target_turf, drop_sound, 75, TRUE)
playsound(target_turf, "bone_break", 75, TRUE)

Knockdown(10 SECONDS)
Expand Down
Binary file added sound/effects/lead_pipe_drop.ogg
Binary file not shown.

0 comments on commit 59a95d1

Please sign in to comment.