mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Change wrench, wirecutters, and powered wirecutters suicides. (#24456)
* Change wrench, wirecutters, and powered wirecutters suicides. * Update code/game/objects/items/tools/wirecutters.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Update code/game/objects/items/tools/wrench.dm --------- Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
@@ -43,10 +43,21 @@
|
||||
return ..()
|
||||
|
||||
/obj/item/wirecutters/suicide_act(mob/user)
|
||||
user.visible_message("<span class='suicide'>[user] is cutting at [user.p_their()] arteries with [src]! It looks like [user.p_theyre()] trying to commit suicide!</span>")
|
||||
user.visible_message("<span class='suicide'>[user] is cutting at [user.p_their()] [is_robotic_suicide(user) ? "wiring" : "arteries"] with [src]! It looks like [user.p_theyre()] trying to commit suicide!</span>")
|
||||
playsound(loc, usesound, 50, 1, -1)
|
||||
return BRUTELOSS
|
||||
|
||||
/obj/item/wirecutters/proc/is_robotic_suicide(mob/user)
|
||||
if(!ishuman(user))
|
||||
return FALSE
|
||||
|
||||
var/mob/living/carbon/human/H = user
|
||||
var/obj/item/organ/external/chest/chest = H.bodyparts_by_name["chest"]
|
||||
if(!chest)
|
||||
return FALSE
|
||||
|
||||
return chest.is_robotic()
|
||||
|
||||
/obj/item/wirecutters/security
|
||||
name = "security wirecutters"
|
||||
desc = "A pair of wirecutters with a tactical grip and robust build."
|
||||
@@ -125,15 +136,27 @@
|
||||
random_color = FALSE
|
||||
|
||||
/obj/item/wirecutters/power/suicide_act(mob/user)
|
||||
user.visible_message("<span class='suicide'>[user] is wrapping \the [src] around [user.p_their()] neck. It looks like [user.p_theyre()] trying to rip [user.p_their()] head off!</span>")
|
||||
playsound(loc, 'sound/items/jaws_cut.ogg', 50, 1, -1)
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/H = user
|
||||
var/obj/item/organ/external/head/head = H.bodyparts_by_name["head"]
|
||||
if(head)
|
||||
head.droplimb(0, DROPLIMB_BLUNT, FALSE, TRUE)
|
||||
playsound(loc,pick('sound/misc/desceration-01.ogg','sound/misc/desceration-02.ogg','sound/misc/desceration-01.ogg') ,50, 1, -1)
|
||||
return BRUTELOSS
|
||||
user.visible_message("<span class='suicide'>[user] is wrapping [src] around [user.p_their()] neck. It looks like [user.p_theyre()] trying to rip [user.p_their()] head off!</span>")
|
||||
|
||||
if(!use_tool(user, user, 3 SECONDS, volume = tool_volume))
|
||||
return SHAME
|
||||
|
||||
if(!ishuman(user))
|
||||
return BRUTELOSS
|
||||
|
||||
var/mob/living/carbon/human/H = user
|
||||
var/obj/item/organ/external/head/head = H.bodyparts_by_name["head"]
|
||||
if(!head)
|
||||
user.visible_message("<span class='suicide'>...but [user.p_they()] [user.p_are()] already headless! How embarassing.</span>")
|
||||
return SHAME
|
||||
|
||||
head.droplimb(FALSE, DROPLIMB_SHARP, FALSE, TRUE)
|
||||
|
||||
if(user.stat != DEAD)
|
||||
user.visible_message("<span class='suicide'>...but [user.p_they()] didn't need it anyway! How embarassing.</span>")
|
||||
return SHAME
|
||||
|
||||
return OXYLOSS
|
||||
|
||||
/obj/item/wirecutters/power/attack_self(mob/user)
|
||||
playsound(get_turf(user), 'sound/items/change_jaws.ogg', 50, 1)
|
||||
|
||||
@@ -20,9 +20,27 @@
|
||||
tool_behaviour = TOOL_WRENCH
|
||||
|
||||
/obj/item/wrench/suicide_act(mob/user)
|
||||
user.visible_message("<span class='suicide'>[user] is beating [user.p_themselves()] to death with [src]! It looks like [user.p_theyre()] trying to commit suicide!</span>")
|
||||
playsound(loc, 'sound/weapons/genhit.ogg', 50, 1, -1)
|
||||
return BRUTELOSS
|
||||
user.visible_message("<span class='suicide'>[user] is unsecuring [user.p_their()] head with [src]! It looks like [user.p_theyre()] trying to commit suicide!</span>")
|
||||
|
||||
if(!use_tool(user, user, 3 SECONDS, volume = tool_volume))
|
||||
return SHAME
|
||||
|
||||
if(!ishuman(user))
|
||||
return BRUTELOSS
|
||||
|
||||
var/mob/living/carbon/human/H = user
|
||||
var/obj/item/organ/external/head/head = H.bodyparts_by_name["head"]
|
||||
if(!head)
|
||||
user.visible_message("<span class='suicide'>...but [user.p_they()] [user.p_are()] already headless! How embarassing.</span>")
|
||||
return SHAME
|
||||
|
||||
head.droplimb(TRUE, DROPLIMB_SHARP, FALSE, TRUE)
|
||||
|
||||
if(user.stat != DEAD)
|
||||
user.visible_message("<span class='suicide'>...but [user.p_they()] didn't need it anyway! How embarassing.</span>")
|
||||
return SHAME
|
||||
|
||||
return OXYLOSS
|
||||
|
||||
/obj/item/wrench/cyborg
|
||||
name = "automatic wrench"
|
||||
|
||||
Reference in New Issue
Block a user