mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 02:24:11 +01:00
Adds the ability to pat out fires on burning people (#15015)
* Update carbon.dm * Heat resistance
This commit is contained in:
@@ -248,6 +248,25 @@
|
||||
"<span class='notice'>[M] shakes [src] trying to wake [p_them()] up!</span>",\
|
||||
"<span class='notice'>You shake [src] trying to wake [p_them()] up!</span>",\
|
||||
)
|
||||
|
||||
else if(on_fire)
|
||||
var/self_message = "<span class='warning'>You try to extinguish [src]!</span>"
|
||||
if(prob(30) && ishuman(M)) // 30% chance of burning your hands
|
||||
var/mob/living/carbon/human/H = M
|
||||
var/protected = FALSE // Protected from the fire
|
||||
if((H.gloves?.max_heat_protection_temperature > 360) || (HEATRES in H.mutations))
|
||||
protected = TRUE
|
||||
|
||||
var/obj/item/organ/external/active_hand = H.get_organ("[H.hand ? "l" : "r"]_hand")
|
||||
if(active_hand && !protected) // Wouldn't really work without a hand
|
||||
active_hand.receive_damage(0, 5)
|
||||
self_message = "<span class='danger'>You burn your hand trying to extinguish [src]!</span>"
|
||||
H.update_icons()
|
||||
|
||||
M.visible_message("<span class='warning'>[M] tries to extinguish [src]!</span>", self_message)
|
||||
playsound(get_turf(src), 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
|
||||
adjust_fire_stacks(-0.5)
|
||||
|
||||
// BEGIN HUGCODE - N3X
|
||||
else
|
||||
playsound(get_turf(src), 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
|
||||
|
||||
Reference in New Issue
Block a user