diff --git a/code/game/sound.dm b/code/game/sound.dm index 876f65d811c..6eaa6abe651 100644 --- a/code/game/sound.dm +++ b/code/game/sound.dm @@ -68,6 +68,7 @@ var/const/SURROUND_CAP = 7 if ("explosion") soundin = pick('sound/effects/Explosion1.ogg','sound/effects/Explosion2.ogg') if ("sparks") soundin = pick('sound/effects/sparks1.ogg','sound/effects/sparks2.ogg','sound/effects/sparks3.ogg','sound/effects/sparks4.ogg') if ("rustle") soundin = pick('sound/effects/rustle1.ogg','sound/effects/rustle2.ogg','sound/effects/rustle3.ogg','sound/effects/rustle4.ogg','sound/effects/rustle5.ogg') + if ("bodyfall") soundin = pick('sound/effects/bodyfall1.ogg','sound/effects/bodyfall2.ogg','sound/effects/bodyfall3.ogg','sound/effects/bodyfall4.ogg') if ("punch") soundin = pick('sound/weapons/punch1.ogg','sound/weapons/punch2.ogg','sound/weapons/punch3.ogg','sound/weapons/punch4.ogg') if ("clownstep") soundin = pick('sound/effects/clownstep1.ogg','sound/effects/clownstep2.ogg') if ("jackboot") soundin = pick('sound/effects/jackboot1.ogg','sound/effects/jackboot2.ogg') diff --git a/code/modules/mob/living/carbon/human/human_damage.dm b/code/modules/mob/living/carbon/human/human_damage.dm index d9adfe9aa0e..90d2371ec2c 100644 --- a/code/modules/mob/living/carbon/human/human_damage.dm +++ b/code/modules/mob/living/carbon/human/human_damage.dm @@ -64,6 +64,7 @@ if(M_HULK in mutations) return ..() + /mob/living/carbon/human/adjustCloneLoss(var/amount) ..() var/heal_prob = max(0, 80 - getCloneLoss()) @@ -92,6 +93,13 @@ if (O.status & ORGAN_MUTATED) O.unmutate() src << "Your [O.display_name] is shaped normally again." + +/mob/living/carbon/human/update_canmove() + var/old_lying = lying + . = ..() + if(lying && !old_lying && !resting && !buckled) // fell down + playsound(loc, "bodyfall", 50, 1, -1) + //////////////////////////////////////////// //Returns a list of damaged organs @@ -259,4 +267,4 @@ organ.implants += S visible_message("The projectile sticks in the wound!") S.add_blood(src) - return 1 \ No newline at end of file + return 1 diff --git a/sound/effects/bodyfall1.ogg b/sound/effects/bodyfall1.ogg new file mode 100644 index 00000000000..cf217a8e077 Binary files /dev/null and b/sound/effects/bodyfall1.ogg differ diff --git a/sound/effects/bodyfall2.ogg b/sound/effects/bodyfall2.ogg new file mode 100644 index 00000000000..49f6cdd39ad Binary files /dev/null and b/sound/effects/bodyfall2.ogg differ diff --git a/sound/effects/bodyfall3.ogg b/sound/effects/bodyfall3.ogg new file mode 100644 index 00000000000..5a3817510d7 Binary files /dev/null and b/sound/effects/bodyfall3.ogg differ diff --git a/sound/effects/bodyfall4.ogg b/sound/effects/bodyfall4.ogg new file mode 100644 index 00000000000..e6a1661c931 Binary files /dev/null and b/sound/effects/bodyfall4.ogg differ