* maps, tgui, tools * defines and helpers * onclick and controllers * datums fucking caught that hulk reversal too. * game and shuttle modular * module/admin * oh god they fucking moved antag shit again * haaaaate. Haaaaaaaaaate. * enables moff wings * more modules things * tgstation.dme before I forget something important * some mob stuff * s'more mob/living stuff * some carbon stuff * ayy lmaos and kitchen meat * Human stuff * species things moff wings have a 'none' version too * the rest of the module stuff. * some strings * misc * mob icons * some other icons. * It compiles FUCK BORERS FUCK BORERS
47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
/obj/structure/headpike
|
|
name = "spooky head on a spear"
|
|
desc = "When you really want to send a message."
|
|
icon = 'icons/obj/structures.dmi'
|
|
icon_state = "headpike"
|
|
density = FALSE
|
|
anchored = TRUE
|
|
var/bonespear = FALSE
|
|
var/obj/item/twohanded/spear/spear
|
|
var/obj/item/bodypart/head/victim
|
|
|
|
/obj/structure/headpike/bone //for bone spears
|
|
icon_state = "headpike-bone"
|
|
bonespear = TRUE
|
|
|
|
|
|
/obj/structure/headpike/CheckParts(list/parts_list)
|
|
..()
|
|
victim = locate(/obj/item/bodypart/head) in parts_list
|
|
name = "[victim.name] on a spear"
|
|
update_icon()
|
|
if(bonespear)
|
|
spear = locate(/obj/item/twohanded/bonespear) in parts_list
|
|
else
|
|
spear = locate(/obj/item/twohanded/spear) in parts_list
|
|
|
|
/obj/structure/headpike/Initialize()
|
|
. = ..()
|
|
pixel_x = rand(-8, 8)
|
|
|
|
/obj/structure/headpike/update_icon()
|
|
..()
|
|
var/obj/item/bodypart/head/H = locate() in contents
|
|
var/mutable_appearance/MA = new()
|
|
if(H)
|
|
MA.copy_overlays(H)
|
|
MA.pixel_y = 12
|
|
add_overlay(H)
|
|
|
|
/obj/structure/headpike/attack_hand(mob/user)
|
|
..()
|
|
to_chat(user, "<span class='notice'>You take down [src].</span>")
|
|
victim.forceMove(drop_location())
|
|
victim = null
|
|
spear.forceMove(drop_location())
|
|
spear = null
|
|
qdel(src) |