mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-19 21:28:37 +01:00
b7d77d7245
* Hammers for hurting people Added a new dark variant of the squish hammer that breaks every bone in the targets body and shoots out blood. Unfortunately they will become unsquished when they fall over, but still gets a nice initial squeeze! Added a simple claw hammer weapon that I have plans for in an upcoming event. Strong melee weapon that easily breaks down windows and barricades, but also has a high chance of breaking any bones that it hits. * Just a friendly little warning to my fellow staff :)
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
/obj/item/squishhammer
|
|
name = "The Short Stacker"
|
|
desc = "Wield the power of this weapon with responsibility (God knows you won't)."
|
|
icon = 'icons/obj/items.dmi'
|
|
icon_state = "toyhammer"
|
|
attack_verb = list("stacked")
|
|
force = 0
|
|
throwforce = 0
|
|
|
|
// Attack mob
|
|
/obj/item/squishhammer/attack(mob/M as mob, mob/user as mob)
|
|
var/is_squished = M.tf_scale_x || M.tf_scale_y
|
|
playsound(src, 'sound/items/hooh.ogg', 50, 1)
|
|
if(!is_squished)
|
|
M.SetTransform(null, (M.size_multiplier * 1.2), (M.size_multiplier * 0.5))
|
|
else
|
|
M.ClearTransform()
|
|
M.update_transform()
|
|
return ..()
|
|
|
|
// Do not ever just leave this laying about, it will go horribly wrong!
|
|
/obj/item/squishhammer/dark
|
|
name = "The Dark Short Stacker"
|
|
desc = "Wield the power of this weapon with responsibility (God knows you won't)."
|
|
icon = 'icons/obj/items.dmi'
|
|
icon_state = "dark_hammer"
|
|
attack_verb = list("stacked")
|
|
force = 0
|
|
throwforce = 0
|
|
|
|
/obj/item/squishhammer/dark/attack(mob/M as mob, mob/user as mob)
|
|
..()
|
|
var/mob/living/carbon/human/H = M
|
|
if(istype(H))
|
|
for(var/obj/item/organ/external/E in H.organs)
|
|
E.fracture() // Oof, ouch, owie
|
|
var/turf/T = M.loc
|
|
if(isturf(T))
|
|
new /obj/effect/gibspawner/generic(T)
|