mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
entire messed up branch in one commit (#30794)
Co-authored-by: Gatchapod <Gatchapod@users.noreply.github.com>
This commit is contained in:
@@ -17,3 +17,71 @@
|
||||
open_sound = 'sound/effects/stonedoor_openclose.ogg'
|
||||
close_sound = 'sound/effects/stonedoor_openclose.ogg'
|
||||
material_drop = /obj/item/stack/sheet/mineral/sandstone
|
||||
|
||||
/obj/structure/closet/coffin/vampire
|
||||
max_integrity = 500
|
||||
anchored = TRUE
|
||||
armor = list(MELEE = 200, BULLET = 200, LASER = 80, ENERGY = 200, BOMB = 200, RAD = 200, FIRE = 80, ACID = 200) // just burn it
|
||||
custom_fire_overlay = " " // gets rid of regular SSfires overlay, setting it on fire uses something completely different
|
||||
/// Owner of the coffin
|
||||
var/mob/vampire
|
||||
/// Is the coffin being set on fire?
|
||||
var/igniting = FALSE
|
||||
/// Last time the vampire was warned of the attack
|
||||
COOLDOWN_DECLARE(fire_act_cooldown)
|
||||
|
||||
/obj/structure/closet/coffin/vampire/Initialize(mapload, mob/user)
|
||||
. = ..()
|
||||
name = "\proper the coffin of [user]"
|
||||
desc += "<br>This coffin's owner may not actually have been dear to anyone, or even departed quite yet.<br>\
|
||||
<span class='warning'>It appears impervious to everything but lasers and fire! Especially fire!</span>"
|
||||
vampire = user
|
||||
|
||||
/obj/structure/closet/coffin/vampire/welder_act(mob/user, obj/item/I)
|
||||
if(igniting)
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
if(!I.tool_use_check(user, 30)) // it's a cursed coffin, you will need something better than a maintenance welder to ignite it
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
igniting = TRUE
|
||||
to_chat(user, "<span class='notice'>You attempt to set [src] on fire with [I].</span>")
|
||||
to_chat(vampire, "<span class='warning'>Your lair is being attacked!</span>")
|
||||
if(do_after(user, 15 SECONDS, target = src))
|
||||
fire_act()
|
||||
igniting = FALSE
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
/obj/structure/closet/coffin/vampire/bullet_act(obj/item/projectile/P)
|
||||
if(!P.immolate)
|
||||
return ..()
|
||||
fire_act()
|
||||
return ..()
|
||||
|
||||
/obj/structure/closet/coffin/vampire/fire_act()
|
||||
. = ..()
|
||||
if(!COOLDOWN_FINISHED(src, fire_act_cooldown))
|
||||
return
|
||||
to_chat(vampire, "<span class='warning'>Your lair is being attacked!</span>")
|
||||
switch(rand(1, 4))
|
||||
if(1)
|
||||
visible_message("<span class='danger'>The wood howls as fire bursts out from seemingly nowhere!</span>")
|
||||
playsound(src, "sound/goonstation/voice/howl.ogg", 30)
|
||||
if(2 to 3)
|
||||
visible_message("<span class='danger'>The wood hisses as fire bursts out from seemingly nowhere!</span>")
|
||||
if(prob(50))
|
||||
playsound(src, "sound/effects/unathihiss.ogg", 30)
|
||||
else
|
||||
playsound(src, "sound/effects/tajaranhiss.ogg", 30)
|
||||
if(4)
|
||||
visible_message("<span class='danger'>The wood growls as fire bursts out from seemingly nowhere!</span>")
|
||||
playsound(src, 'sound/goonstation/voice/growl3.ogg', 30)
|
||||
var/turf/new_fire = pick(oview(2, src))
|
||||
new /obj/effect/fire(get_turf(new_fire), T20C, 30 SECONDS, 1)
|
||||
new /obj/effect/fire(loc, T20C, 30 SECONDS, 1)
|
||||
COOLDOWN_START(src, fire_act_cooldown, 10 SECONDS)
|
||||
|
||||
/obj/structure/closet/coffin/vampire/burn()
|
||||
playsound(src, 'sound/hallucinations/wail.ogg', 20, extrarange = SOUND_RANGE_SET(5))
|
||||
visible_message("<span class='danger'>Fire bursts out from [name] as it falls apart!</span>")
|
||||
for(var/turf/T in range(1, src))
|
||||
new /obj/effect/fire(T, T20C, 30 SECONDS, 1)
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user