diff --git a/code/game/objects/buckling.dm b/code/game/objects/buckling.dm index 878ba68230..b90dcf1e60 100644 --- a/code/game/objects/buckling.dm +++ b/code/game/objects/buckling.dm @@ -149,40 +149,41 @@ . = buckle_mob(M, check_loc = check_loc) if(!.) return - if (istype(M, /mob/living/carbon)) - var/mob/living/carbon/C = M - var/breaking_weight = M?.client?.prefs?.chair_breakage - if(isnull(breaking_weight) || (breaking_weight < 10) || (M != user) || ((breaking_weight / 3) > C.fatness)) - M.visible_message(\ - "[user] buckles [M] to [src]!",\ - "[user] buckles you to [src]!",\ - "You hear metal clanking.") - return + if (!istype(M, /mob/living/carbon)) + return + var/mob/living/carbon/C = M + var/breaking_weight = M?.client?.prefs?.chair_breakage + if(isnull(breaking_weight) || (breaking_weight < 10) || (M != user) || ((breaking_weight / 3) > C.fatness)) + M.visible_message(\ + "[user] buckles [M] to [src]!",\ + "[user] buckles you to [src]!",\ + "You hear metal clanking.") + return - if ((C.fatness >= breaking_weight) && istype(src, /obj/structure/chair)) //GS13 stuff - chair breaking mechanics - var/obj/structure/chair/chairToBreak = src - M.visible_message(\ - "[M] slowly buckles [M.p_them()]self to [src]. their movements slow and deliberate. As [M] settles into the seat, a sudden, violent crash echoes through the air. [M]'s massive weight mercilessly crushes the poor [src], reducing it to pieces! ",\ - "You slowly try to buckle yourself to [src]. But it breaks under your massive ass!",\ - "You hear metal clanking.") - playsound(loc, 'sound/effects/snap.ogg', 50, 1) - playsound(loc, 'sound/effects/woodhit.ogg', 50, 1) - playsound(loc, 'sound/effects/bodyfall4.ogg', 50, 1) - // Destroy the src object. If the chair can be deconstructed, do that as well.. - chairToBreak.deconstruct() - //src.Destroy() - else if(C.fatness >= (breaking_weight / 2)) - M.visible_message(\ - "[M] buckles [M.p_them()]self to the creaking [src]. The [src] protests audibly under the weight as [M]'s ample form settles onto its surface. .",\ - "You buckle yourself to [src].The [src] is cracking and is barely able to hold your weight ",\ - "You hear metal clanking.") - playsound(loc, 'GainStation13/sound/effects/crossed.ogg', 50, 1) - else if(C.fatness >= (breaking_weight / 3)) - M.visible_message(\ - "[M] buckles [M.p_them()]self to the creaking [src] as their weight spreads all over it.",\ - "You buckle yourself to [src].The [src] is creaking as you shuffle a bit ",\ - "You hear metal clanking.") - playsound(loc, 'GainStation13/sound/effects/crossed.ogg', 50, 1) + if ((C.fatness >= breaking_weight) && istype(src, /obj/structure/chair)) //GS13 stuff - chair breaking mechanics + var/obj/structure/chair/chairToBreak = src + M.visible_message(\ + "[M] slowly buckles [M.p_them()]self to [src]. their movements slow and deliberate. As [M] settles into the seat, a sudden, violent crash echoes through the air. [M]'s massive weight mercilessly crushes the poor [src], reducing it to pieces! ",\ + "You slowly try to buckle yourself to [src]. But it breaks under your massive ass!",\ + "You hear metal clanking.") + playsound(loc, 'sound/effects/snap.ogg', 50, 1) + playsound(loc, 'sound/effects/woodhit.ogg', 50, 1) + playsound(loc, 'sound/effects/bodyfall4.ogg', 50, 1) + // Destroy the src object. If the chair can be deconstructed, do that as well.. + chairToBreak.deconstruct() + //src.Destroy() + else if(C.fatness >= (breaking_weight / 2)) + M.visible_message(\ + "[M] buckles [M.p_them()]self to the creaking [src]. The [src] protests audibly under the weight as [M]'s ample form settles onto its surface. .",\ + "You buckle yourself to [src].The [src] is cracking and is barely able to hold your weight ",\ + "You hear metal clanking.") + playsound(loc, 'GainStation13/sound/effects/crossed.ogg', 50, 1) + else if(C.fatness >= (breaking_weight / 3)) + M.visible_message(\ + "[M] buckles [M.p_them()]self to the creaking [src] as their weight spreads all over it.",\ + "You buckle yourself to [src].The [src] is creaking as you shuffle a bit ",\ + "You hear metal clanking.") + playsound(loc, 'GainStation13/sound/effects/crossed.ogg', 50, 1) //GS13 End /atom/movable/proc/user_unbuckle_mob(mob/living/buckled_mob, mob/user)