Files
b13672ab68 [ready and sitting here for a week] grab maneuver tweaks: grab state checks, interactions moved to alt-click, also screentips (#19971)
* grab state checked, combat mode freed for shoves

* hey why WAS it species level anyway -

* there's no randomness in grappling

* deprecision of targeting. stranglecoders take note

* specific wording

* a handful of true/falses and another doohickey

---------

Co-authored-by: Hatterhat <Hatterhat@users.noreply.github.com>
2023-03-29 23:56:02 +01:00

35 lines
1019 B
Plaintext

/mob/living/carbon/human/add_context(atom/source, list/context, obj/item/held_item, mob/living/user)
. = ..()
if (!ishuman(user))
return .
if (user == src)
return .
if (pulledby == user)
switch (user.grab_state)
if (GRAB_PASSIVE)
context[SCREENTIP_CONTEXT_CTRL_LMB] = "Grip"
if (GRAB_AGGRESSIVE)
context[SCREENTIP_CONTEXT_CTRL_LMB] = "Choke"
if (GRAB_NECK)
context[SCREENTIP_CONTEXT_CTRL_LMB] = "Strangle"
else
return .
// SKYRAT EDIT START - screentips for grab interactions (slams/suplexes/dislocations)
if(user.combat_mode && user.grab_state > GRAB_PASSIVE)
switch(deprecise_zone(user.zone_selected))
if (BODY_ZONE_HEAD)
if (src.body_position == LYING_DOWN)
context[SCREENTIP_CONTEXT_ALT_LMB] = "Headslam"
if (BODY_ZONE_CHEST)
context[SCREENTIP_CONTEXT_ALT_LMB] = "Suplex"
else
context[SCREENTIP_CONTEXT_ALT_LMB] = "Dislocate"
// SKYRAT EDIT END
else
context[SCREENTIP_CONTEXT_CTRL_LMB] = "Pull"
return CONTEXTUAL_SCREENTIP_SET