This commit is contained in:
silicons
2020-07-20 11:25:17 -07:00
parent d43a5cae26
commit 98d3ac80d9
221 changed files with 262 additions and 542 deletions

View File

@@ -33,7 +33,6 @@
FlushCurrentAction() FlushCurrentAction()
else else
DiscardCurrentAction() DiscardCurrentAction()
/* /*
Standard mob ClickOn() Standard mob ClickOn()

View File

@@ -28,13 +28,19 @@
SEND_SIGNAL(src, COMSIG_HUMAN_MELEE_UNARMED_ATTACK, A) SEND_SIGNAL(src, COMSIG_HUMAN_MELEE_UNARMED_ATTACK, A)
A.attack_hand(src, intent, flags) A.attack_hand(src, intent, flags)
//Return TRUE to cancel other attack hand effects that respect it.
/atom/proc/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /atom/proc/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = FALSE
if(!(interaction_flags_atom & INTERACT_ATOM_NO_FINGERPRINT_ATTACK_HAND)) if(!(interaction_flags_atom & INTERACT_ATOM_NO_FINGERPRINT_ATTACK_HAND))
add_fingerprint(user) add_fingerprint(user)
if(SEND_SIGNAL(src, COMSIG_ATOM_ATTACK_HAND, user) & COMPONENT_NO_ATTACK_HAND) if(SEND_SIGNAL(src, COMSIG_ATOM_ATTACK_HAND, user) & COMPONENT_NO_ATTACK_HAND)
. = TRUE return
if(attack_hand_speed)
if(!user.CheckActionCooldown(attack_hand_speed))
return
attack_hand(user, act_intent, unarmed_attack_flags)
if(attack_hand_unwieldlyness)
user.DelayNextAction(attack_hand_unwieldlyness, considered_action = attack_hand_is_action)
/atom/proc/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(interaction_flags_atom & INTERACT_ATOM_ATTACK_HAND) if(interaction_flags_atom & INTERACT_ATOM_ATTACK_HAND)
. = _try_interact(user) . = _try_interact(user)

View File

@@ -103,8 +103,7 @@
. = ..() . = ..()
QDEL_IN(src, 300) QDEL_IN(src, 300)
//ATTACK HAND IGNORING PARENT RETURN VALUE /obj/effect/hallucination/simple/bluespace_stream/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
/obj/effect/hallucination/simple/bluespace_stream/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(user != seer || !linked_to) if(user != seer || !linked_to)
return return
var/slip_in_message = pick("slides sideways in an odd way, and disappears", "jumps into an unseen dimension",\ var/slip_in_message = pick("slides sideways in an odd way, and disappears", "jumps into an unseen dimension",\

View File

@@ -149,7 +149,7 @@
add_fingerprint(user) add_fingerprint(user)
return ..() return ..()
/obj/machinery/dominator/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/dominator/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(operating || (stat & BROKEN)) if(operating || (stat & BROKEN))
examine(user) examine(user)
return return

View File

@@ -7,7 +7,7 @@
/obj/structure/door_assembly /obj/structure/door_assembly
var/datum/airlock_maker/maker = null var/datum/airlock_maker/maker = null
/obj/structure/door_assembly/attack_hand() /obj/structure/door_assembly/on_attack_hand()
. = ..() . = ..()
if(.) if(.)
return return

View File

@@ -107,10 +107,7 @@
stat |= BROKEN stat |= BROKEN
update_icon() update_icon()
/obj/machinery/pdapainter/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/pdapainter/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(!storedpda) if(!storedpda)
to_chat(user, "<span class='notice'>[src] is empty.</span>") to_chat(user, "<span class='notice'>[src] is empty.</span>")

View File

@@ -122,10 +122,7 @@
else else
icon_state = "airlock_sensor_off" icon_state = "airlock_sensor_off"
/obj/machinery/airlock_sensor/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/airlock_sensor/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
var/datum/signal/signal = new(list( var/datum/signal/signal = new(list(
"tag" = master_tag, "tag" = master_tag,
"command" = "cycle" "command" = "cycle"

View File

@@ -100,10 +100,7 @@
stat |= BROKEN stat |= BROKEN
update_icon() update_icon()
/obj/machinery/aug_manipulator/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/aug_manipulator/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
add_fingerprint(user) add_fingerprint(user)
if(storedpart) if(storedpart)

View File

@@ -138,7 +138,7 @@
var/obj/item/assembly/control/A = device var/obj/item/assembly/control/A = device
A.id = "[idnum][id]" A.id = "[idnum][id]"
/obj/machinery/button/attack_hand(mob/user) /obj/machinery/button/on_attack_hand(mob/user)
. = ..() . = ..()
if(.) if(.)
return return

View File

@@ -79,10 +79,7 @@
charging = null charging = null
update_icon() update_icon()
/obj/machinery/cell_charger/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/cell_charger/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(!charging) if(!charging)
return return

View File

@@ -8,7 +8,7 @@
icon_state = "arcade" icon_state = "arcade"
circuit = /obj/item/circuitboard/computer/arcade/amputation circuit = /obj/item/circuitboard/computer/arcade/amputation
/obj/machinery/computer/arcade/amputation/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/computer/arcade/amputation/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(!iscarbon(user)) if(!iscarbon(user))
return return
var/mob/living/carbon/c_user = user var/mob/living/carbon/c_user = user

View File

@@ -103,10 +103,7 @@
return FALSE return FALSE
return ..() return ..()
/obj/machinery/computer/camera_advanced/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/computer/camera_advanced/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(current_user) if(current_user)
to_chat(user, "The console is already in use!") to_chat(user, "The console is already in use!")
return return

View File

@@ -59,7 +59,7 @@
return defib.get_cell() return defib.get_cell()
//defib interaction //defib interaction
/obj/machinery/defibrillator_mount/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/defibrillator_mount/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
if(!defib) if(!defib)
to_chat(user, "<span class='warning'>There's no defibrillator unit loaded!</span>") to_chat(user, "<span class='warning'>There's no defibrillator unit loaded!</span>")
return return

View File

@@ -31,7 +31,7 @@
if(user.Adjacent(src)) if(user.Adjacent(src))
. += "<span class='notice'>Alt-click it to beam its contents to any nearby disposal bins.</span>" . += "<span class='notice'>Alt-click it to beam its contents to any nearby disposal bins.</span>"
/obj/machinery/dish_drive/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/dish_drive/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
if(!contents.len) if(!contents.len)
to_chat(user, "<span class='warning'>There's nothing in [src]!</span>") to_chat(user, "<span class='warning'>There's nothing in [src]!</span>")
return return

View File

@@ -763,10 +763,7 @@
/obj/machinery/door/airlock/attack_paw(mob/user) /obj/machinery/door/airlock/attack_paw(mob/user)
return attack_hand(user) return attack_hand(user)
/obj/machinery/door/airlock/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/door/airlock/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(!(issilicon(user) || IsAdminGhost(user))) if(!(issilicon(user) || IsAdminGhost(user)))
if(src.isElectrified()) if(src.isElectrified())
if(src.shock(user, 100)) if(src.shock(user, 100))

View File

@@ -140,10 +140,7 @@
do_animate("deny") do_animate("deny")
return return
/obj/machinery/door/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/door/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
return try_to_activate_door(user) return try_to_activate_door(user)
/obj/machinery/door/attack_tk(mob/user) /obj/machinery/door/attack_tk(mob/user)

View File

@@ -88,10 +88,7 @@
else else
stat |= NOPOWER stat |= NOPOWER
/obj/machinery/door/firedoor/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/door/firedoor/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(!welded && !operating && !(stat & NOPOWER) && (!density || allow_hand_open(user))) if(!welded && !operating && !(stat & NOPOWER) && (!density || allow_hand_open(user)))
add_fingerprint(user) add_fingerprint(user)

View File

@@ -141,7 +141,7 @@
if(user) if(user)
log_game("[user] reset a fire alarm at [COORD(src)]") log_game("[user] reset a fire alarm at [COORD(src)]")
/obj/machinery/firealarm/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/firealarm/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(buildstage != 2) if(buildstage != 2)
return ..() return ..()
add_fingerprint(user) add_fingerprint(user)

View File

@@ -50,7 +50,7 @@
harvesting = FALSE harvesting = FALSE
warming_up = FALSE warming_up = FALSE
/obj/machinery/harvester/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/harvester/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(state_open) if(state_open)
close_machine() close_machine()
else if(!harvesting) else if(!harvesting)

View File

@@ -78,7 +78,7 @@ GLOBAL_LIST_EMPTY(network_holopads)
new_disk.forceMove(src) new_disk.forceMove(src)
disk = new_disk disk = new_disk
/obj/machinery/holopad/tutorial/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/holopad/tutorial/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(!istype(user)) if(!istype(user))
return return
if(user.incapacitated() || !is_operational()) if(user.incapacitated() || !is_operational())

View File

@@ -26,10 +26,7 @@
on = TRUE on = TRUE
icon_state = "igniter1" icon_state = "igniter1"
/obj/machinery/igniter/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/igniter/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
add_fingerprint(user) add_fingerprint(user)
use_power(50) use_power(50)

View File

@@ -158,10 +158,7 @@
attached.transfer_blood_to(beaker, amount) attached.transfer_blood_to(beaker, amount)
update_icon() update_icon()
/obj/machinery/iv_drip/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/iv_drip/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(!ishuman(user)) if(!ishuman(user))
return return
if(attached) if(attached)

View File

@@ -168,10 +168,7 @@
return ..() return ..()
/obj/machinery/porta_turret_construct/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/porta_turret_construct/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
switch(build_step) switch(build_step)
if(PTURRET_GUN_EQUIPPED) if(PTURRET_GUN_EQUIPPED)
build_step = PTURRET_INTERNAL_ARMOUR_ON build_step = PTURRET_INTERNAL_ARMOUR_ON

View File

@@ -31,10 +31,7 @@
return parent_turret.attack_ai(user) return parent_turret.attack_ai(user)
/obj/machinery/porta_turret_cover/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/porta_turret_cover/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
return parent_turret.attack_hand(user) return parent_turret.attack_hand(user)

View File

@@ -108,10 +108,7 @@
return ..() return ..()
/obj/machinery/recharger/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/recharger/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
add_fingerprint(user) add_fingerprint(user)
if(charging) if(charging)

View File

@@ -68,10 +68,7 @@ GLOBAL_VAR_INIT(singularity_counter, 0)
/obj/machinery/power/singularity_beacon/attack_ai(mob/user) /obj/machinery/power/singularity_beacon/attack_ai(mob/user)
return return
/obj/machinery/power/singularity_beacon/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/power/singularity_beacon/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(anchored) if(anchored)
return active ? Deactivate(user) : Activate(user) return active ? Deactivate(user) : Activate(user)
else else

View File

@@ -297,10 +297,7 @@ GLOBAL_LIST_INIT(dye_registry, list(
else else
return ..() return ..()
/obj/machinery/washing_machine/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/washing_machine/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(busy) if(busy)
to_chat(user, "<span class='warning'>[src] is busy.</span>") to_chat(user, "<span class='warning'>[src] is busy.</span>")
return return

View File

@@ -10,7 +10,7 @@
var/charges = 1 var/charges = 1
var/insisting = 0 var/insisting = 0
/obj/machinery/wish_granter/attack_hand(mob/living/carbon/user) /obj/machinery/wish_granter/on_attack_hand(mob/living/carbon/user)
if(charges <= 0) if(charges <= 0)
to_chat(user, "The Wish Granter lies silent.") to_chat(user, "The Wish Granter lies silent.")
return return

View File

@@ -54,7 +54,7 @@
. *= booster_damage_modifier . *= booster_damage_modifier
/obj/mecha/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/mecha/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..() . = ..()
if(.) if(.)
return return

View File

@@ -9,7 +9,7 @@
var/buckle_prevents_pull = FALSE var/buckle_prevents_pull = FALSE
//Interaction //Interaction
/atom/movable/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /atom/movable/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..() . = ..()
if(.) if(.)
return return

View File

@@ -101,10 +101,7 @@
to_chat(user, "<span class='notice'>You carefully remove the poster from the wall.</span>") to_chat(user, "<span class='notice'>You carefully remove the poster from the wall.</span>")
roll_and_drop(user.loc) roll_and_drop(user.loc)
/obj/structure/sign/poster/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/sign/poster/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(ruined) if(ruined)
return return
visible_message("[user] rips [src] in a single, decisive motion!" ) visible_message("[user] rips [src] in a single, decisive motion!" )

View File

@@ -137,10 +137,7 @@
random_icon_states = list("vomit_1", "vomit_2", "vomit_3", "vomit_4") random_icon_states = list("vomit_1", "vomit_2", "vomit_3", "vomit_4")
beauty = -150 beauty = -150
/obj/effect/decal/cleanable/vomit/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/effect/decal/cleanable/vomit/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(ishuman(user)) if(ishuman(user))
var/mob/living/carbon/human/H = user var/mob/living/carbon/human/H = user
if(isflyperson(H)) if(isflyperson(H))

View File

@@ -284,10 +284,7 @@
/obj/structure/foamedmetal/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0) /obj/structure/foamedmetal/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
playsound(src.loc, 'sound/weapons/tap.ogg', 100, 1) playsound(src.loc, 'sound/weapons/tap.ogg', 100, 1)
/obj/structure/foamedmetal/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/foamedmetal/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
user.changeNext_move(CLICK_CD_MELEE) user.changeNext_move(CLICK_CD_MELEE)
user.do_attack_animation(src, ATTACK_EFFECT_PUNCH) user.do_attack_animation(src, ATTACK_EFFECT_PUNCH)
to_chat(user, "<span class='warning'>You hit [src] but bounce off it!</span>") to_chat(user, "<span class='warning'>You hit [src] but bounce off it!</span>")

View File

@@ -60,10 +60,7 @@
/obj/effect/portal/attack_tk(mob/user) /obj/effect/portal/attack_tk(mob/user)
return return
/obj/effect/portal/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/effect/portal/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(get_turf(user) == get_turf(src)) if(get_turf(user) == get_turf(src))
teleport(user) teleport(user)
if(Adjacent(user)) if(Adjacent(user))

View File

@@ -152,7 +152,7 @@
else else
..() ..()
/obj/structure/spider/spiderling/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/spider/spiderling/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..() . = ..()
if(user.a_intent != INTENT_HELP) if(user.a_intent != INTENT_HELP)
user.changeNext_move(CLICK_CD_MELEE) user.changeNext_move(CLICK_CD_MELEE)

View File

@@ -304,10 +304,7 @@ GLOBAL_VAR_INIT(embedpocalypse, FALSE) // if true, all items will be able to emb
add_fingerprint(usr) add_fingerprint(usr)
return ..() return ..()
/obj/item/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/item/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(!user) if(!user)
return return
if(anchored) if(anchored)

View File

@@ -43,8 +43,7 @@
"Monkey" = image(icon = src.icon, icon_state = "cutout_monky"), "Monkey" = image(icon = src.icon, icon_state = "cutout_monky"),
)) ))
//ATTACK HAND IGNORING PARENT RETURN VALUE /obj/item/cardboard_cutout/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
/obj/item/cardboard_cutout/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
if(user.a_intent == INTENT_HELP || pushed_over) if(user.a_intent == INTENT_HELP || pushed_over)
return ..() return ..()
user.visible_message("<span class='warning'>[user] pushes over [src]!</span>", "<span class='danger'>You push over [src]!</span>") user.visible_message("<span class='warning'>[user] pushes over [src]!</span>", "<span class='danger'>You push over [src]!</span>")

View File

@@ -77,8 +77,7 @@
/obj/item/defibrillator/ui_action_click() /obj/item/defibrillator/ui_action_click()
toggle_paddles() toggle_paddles()
//ATTACK HAND IGNORING PARENT RETURN VALUE /obj/item/defibrillator/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
/obj/item/defibrillator/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(loc == user) if(loc == user)
if(slot_flags == ITEM_SLOT_BACK) if(slot_flags == ITEM_SLOT_BACK)
if(user.get_item_by_slot(SLOT_BACK) == src) if(user.get_item_by_slot(SLOT_BACK) == src)

View File

@@ -132,8 +132,7 @@
/obj/effect/dummy/chameleon/attackby() /obj/effect/dummy/chameleon/attackby()
master.disrupt() master.disrupt()
//ATTACK HAND IGNORING PARENT RETURN VALUE /obj/effect/dummy/chameleon/on_attack_hand()
/obj/effect/dummy/chameleon/attack_hand()
master.disrupt() master.disrupt()
/obj/effect/dummy/chameleon/attack_animal() /obj/effect/dummy/chameleon/attack_animal()

View File

@@ -11,7 +11,7 @@
/obj/item/stack/circuit_stack/attack_self(mob/user)// Prevents the crafting menu, and tells you how to use it. /obj/item/stack/circuit_stack/attack_self(mob/user)// Prevents the crafting menu, and tells you how to use it.
to_chat(user, "<span class='warning'>You can't use [src] by itself, you'll have to try and remove one of these circuits by hand... carefully.</span>") to_chat(user, "<span class='warning'>You can't use [src] by itself, you'll have to try and remove one of these circuits by hand... carefully.</span>")
/obj/item/stack/circuit_stack/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/item/stack/circuit_stack/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
var/mob/living/carbon/human/H = user var/mob/living/carbon/human/H = user
if(!user.get_inactive_held_item() == src) if(!user.get_inactive_held_item() == src)
return ..() return ..()

View File

@@ -97,10 +97,7 @@ GLOBAL_LIST_EMPTY(power_sinks)
/obj/item/powersink/attack_ai() /obj/item/powersink/attack_ai()
return return
/obj/item/powersink/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/item/powersink/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
switch(mode) switch(mode)
if(DISCONNECTED) if(DISCONNECTED)
..() ..()

View File

@@ -31,8 +31,7 @@
SSradio.remove_object(src, frequency) SSradio.remove_object(src, frequency)
. = ..() . = ..()
//ATTACK HAND IGNORING PARENT RETURN VALUE /obj/item/electropack/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
/obj/item/electropack/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(iscarbon(user)) if(iscarbon(user))
var/mob/living/carbon/C = user var/mob/living/carbon/C = user
if(src == C.back) if(src == C.back)
@@ -162,7 +161,7 @@
materials = list(/datum/material/iron = 5000, /datum/material/glass =2000) materials = list(/datum/material/iron = 5000, /datum/material/glass =2000)
category = list("hacked", "Misc") category = list("hacked", "Misc")
/obj/item/electropack/shockcollar/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/item/electropack/shockcollar/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(loc == user && user.get_item_by_slot(SLOT_NECK)) if(loc == user && user.get_item_by_slot(SLOT_NECK))
to_chat(user, "<span class='warning'>The collar is fastened tight! You'll need help taking this off!</span>") to_chat(user, "<span class='warning'>The collar is fastened tight! You'll need help taking this off!</span>")
return return

View File

@@ -86,10 +86,7 @@
/obj/item/radio/intercom/attack_ai(mob/user) /obj/item/radio/intercom/attack_ai(mob/user)
interact(user) interact(user)
/obj/item/radio/intercom/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/item/radio/intercom/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
interact(user) interact(user)
/obj/item/radio/intercom/interact(mob/user) /obj/item/radio/intercom/interact(mob/user)

View File

@@ -45,7 +45,7 @@
to_chat(loc, "<span class='userdanger'>*ding*</span>") to_chat(loc, "<span class='userdanger'>*ding*</span>")
addtimer(CALLBACK(src, .proc/snap), 2) addtimer(CALLBACK(src, .proc/snap), 2)
/obj/item/reverse_bear_trap/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/item/reverse_bear_trap/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(iscarbon(user)) if(iscarbon(user))
var/mob/living/carbon/C = user var/mob/living/carbon/C = user
if(C.get_item_by_slot(SLOT_HEAD) == src) if(C.get_item_by_slot(SLOT_HEAD) == src)

View File

@@ -54,8 +54,7 @@
mytape.ruin() //Fires destroy the tape mytape.ruin() //Fires destroy the tape
..() ..()
//ATTACK HAND IGNORING PARENT RETURN VALUE /obj/item/taperecorder/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
/obj/item/taperecorder/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(loc == user) if(loc == user)
if(mytape) if(mytape)
if(!user.is_holding(src)) if(!user.is_holding(src))

View File

@@ -79,7 +79,7 @@
if(attached_device) if(attached_device)
attached_device.Crossed(AM) attached_device.Crossed(AM)
/obj/item/transfer_valve/attack_hand()//Triggers mousetraps /obj/item/transfer_valve/on_attack_hand()//Triggers mousetraps
. = ..() . = ..()
if(.) if(.)
return return

View File

@@ -320,7 +320,7 @@
do_sparks(1, TRUE, src) do_sparks(1, TRUE, src)
qdel(src) qdel(src)
/obj/item/restraints/legcuffs/beartrap/energy/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/item/restraints/legcuffs/beartrap/energy/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
Crossed(user) //honk Crossed(user) //honk
. = ..() . = ..()

View File

@@ -621,7 +621,7 @@
to_chat(user, "<span class='warning'>[target] doesn't seem to want to get on [src]!</span>") to_chat(user, "<span class='warning'>[target] doesn't seem to want to get on [src]!</span>")
update_icon() update_icon()
/obj/item/melee/roastingstick/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/item/melee/roastingstick/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
..() ..()
if (held_sausage) if (held_sausage)
user.put_in_hands(held_sausage) user.put_in_hands(held_sausage)

View File

@@ -31,10 +31,7 @@
to_chat(user, "<span class='notice'>You slice off [src]'s uneven chunks of aluminium and scorch marks.</span>") to_chat(user, "<span class='notice'>You slice off [src]'s uneven chunks of aluminium and scorch marks.</span>")
return TRUE return TRUE
/obj/item/target/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/item/target/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(pinnedLoc) if(pinnedLoc)
pinnedLoc.removeTarget(user) pinnedLoc.removeTarget(user)

View File

@@ -74,8 +74,7 @@
/obj/item/stack/sheet/bluespace_crystal/attack_self(mob/user)// to prevent the construction menu from ever happening /obj/item/stack/sheet/bluespace_crystal/attack_self(mob/user)// to prevent the construction menu from ever happening
to_chat(user, "<span class='warning'>You cannot crush the polycrystal in-hand, try breaking one off.</span>") to_chat(user, "<span class='warning'>You cannot crush the polycrystal in-hand, try breaking one off.</span>")
//ATTACK HAND IGNORING PARENT RETURN VALUE /obj/item/stack/sheet/bluespace_crystal/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
/obj/item/stack/sheet/bluespace_crystal/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(user.get_inactive_held_item() == src) if(user.get_inactive_held_item() == src)
if(zero_amount()) if(zero_amount())
return return

View File

@@ -280,7 +280,7 @@
return return
. = ..() . = ..()
/obj/item/stack/medical/mesh/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/item/stack/medical/mesh/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(!is_open & user.get_inactive_held_item() == src) if(!is_open & user.get_inactive_held_item() == src)
to_chat(user, "<span class='warning'>You need to open [src] first.</span>") to_chat(user, "<span class='warning'>You need to open [src] first.</span>")
return return

View File

@@ -389,8 +389,7 @@
merge(AM) merge(AM)
. = ..() . = ..()
//ATTACK HAND IGNORING PARENT RETURN VALUE /obj/item/stack/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
/obj/item/stack/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(user.get_inactive_held_item() == src) if(user.get_inactive_held_item() == src)
if(zero_amount()) if(zero_amount())
return return

View File

@@ -205,10 +205,7 @@
new /obj/item/paper(src) new /obj/item/paper(src)
new /obj/item/pen(src) new /obj/item/pen(src)
/obj/item/storage/secure/safe/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/item/storage/secure/safe/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
return attack_self(user) return attack_self(user)
/obj/item/storage/secure/safe/HoS /obj/item/storage/secure/safe/HoS

View File

@@ -72,7 +72,7 @@
QDEL_NULL(noz) QDEL_NULL(noz)
return ..() return ..()
/obj/item/watertank/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/item/watertank/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if (user.get_item_by_slot(user.getBackSlot()) == src) if (user.get_item_by_slot(user.getBackSlot()) == src)
toggle_mister(user) toggle_mister(user)
else else

View File

@@ -574,10 +574,7 @@
else else
. = ..() . = ..()
/obj/item/toy/prize/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/item/toy/prize/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(loc == user) if(loc == user)
attack_self(user) attack_self(user)
@@ -811,9 +808,8 @@
cards += "Ace of Clubs" cards += "Ace of Clubs"
cards += "Ace of Diamonds" cards += "Ace of Diamonds"
//ATTACK HAND IGNORING PARENT RETURN VALUE
//ATTACK HAND NOT CALLING PARENT //ATTACK HAND NOT CALLING PARENT
/obj/item/toy/cards/deck/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/item/toy/cards/deck/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
draw_card(user) draw_card(user)
/obj/item/toy/cards/deck/proc/draw_card(mob/user) /obj/item/toy/cards/deck/proc/draw_card(mob/user)

View File

@@ -28,10 +28,7 @@
queue_smooth_neighbors(src) queue_smooth_neighbors(src)
return ..() return ..()
/obj/structure/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(structureclimber && structureclimber != user) if(structureclimber && structureclimber != user)
user.changeNext_move(CLICK_CD_MELEE) user.changeNext_move(CLICK_CD_MELEE)
user.do_attack_animation(src) user.do_attack_animation(src)

View File

@@ -249,7 +249,7 @@
/obj/structure/alien/egg/attack_alien(mob/living/carbon/alien/user) /obj/structure/alien/egg/attack_alien(mob/living/carbon/alien/user)
return attack_hand(user) return attack_hand(user)
/obj/structure/alien/egg/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/alien/egg/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..() . = ..()
if(.) if(.)
return return

View File

@@ -52,10 +52,7 @@
/obj/structure/sign/barsign/attack_ai(mob/user) /obj/structure/sign/barsign/attack_ai(mob/user)
return attack_hand(user) return attack_hand(user)
/obj/structure/sign/barsign/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/sign/barsign/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(!allowed(user)) if(!allowed(user))
to_chat(user, "<span class='info'>Access denied.</span>") to_chat(user, "<span class='info'>Access denied.</span>")
return return

View File

@@ -311,10 +311,7 @@ LINEN BINS
/obj/structure/bedsheetbin/attack_paw(mob/user) /obj/structure/bedsheetbin/attack_paw(mob/user)
return attack_hand(user) return attack_hand(user)
/obj/structure/bedsheetbin/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/bedsheetbin/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(user.incapacitated()) if(user.incapacitated())
return return
if(amount >= 1) if(amount >= 1)

View File

@@ -458,10 +458,7 @@
return return
container_resist(user) container_resist(user)
/obj/structure/closet/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/closet/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(user.lying && get_dist(src, user) > 0) if(user.lying && get_dist(src, user) > 0)
return return

View File

@@ -91,7 +91,7 @@
locked = TRUE locked = TRUE
return ..() return ..()
/obj/structure/closet/secure_closet/genpop/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/closet/secure_closet/genpop/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(user.lying && get_dist(src, user) > 0) if(user.lying && get_dist(src, user) > 0)
return return

View File

@@ -41,10 +41,7 @@
if(manifest) if(manifest)
. += "manifest" . += "manifest"
/obj/structure/closet/crate/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/closet/crate/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(manifest) if(manifest)
tear_manifest(user) tear_manifest(user)

View File

@@ -8,7 +8,7 @@
delivery_icon = "deliverybox" delivery_icon = "deliverybox"
integrity_failure = 0 //Makes the crate break when integrity reaches 0, instead of opening and becoming an invisible sprite. integrity_failure = 0 //Makes the crate break when integrity reaches 0, instead of opening and becoming an invisible sprite.
/obj/structure/closet/crate/large/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/closet/crate/large/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
add_fingerprint(user) add_fingerprint(user)
if(manifest) if(manifest)
tear_manifest(user) tear_manifest(user)

View File

@@ -157,10 +157,7 @@
/obj/structure/displaycase/attack_paw(mob/user) /obj/structure/displaycase/attack_paw(mob/user)
return attack_hand(user) return attack_hand(user)
/obj/structure/displaycase/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/displaycase/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
user.changeNext_move(CLICK_CD_MELEE) user.changeNext_move(CLICK_CD_MELEE)
if (showpiece && (broken || open)) if (showpiece && (broken || open))
to_chat(user, "<span class='notice'>You deactivate the hover field built into the case.</span>") to_chat(user, "<span class='notice'>You deactivate the hover field built into the case.</span>")

View File

@@ -7,7 +7,7 @@
density = FALSE density = FALSE
can_buckle = 1 can_buckle = 1
/obj/structure/sacrificealtar/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/sacrificealtar/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..() . = ..()
if(.) if(.)
return return
@@ -30,7 +30,7 @@
var/time_between_uses = 1800 var/time_between_uses = 1800
var/last_process = 0 var/last_process = 0
/obj/structure/healingfountain/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/healingfountain/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..() . = ..()
if(.) if(.)
return return

View File

@@ -19,7 +19,7 @@
new /obj/item/stack/sheet/mineral/wood(drop_location(), 10) new /obj/item/stack/sheet/mineral/wood(drop_location(), 10)
qdel(src) qdel(src)
/obj/structure/dresser/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/dresser/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..() . = ..()
if(. || !ishuman(user) || !user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK)) if(. || !ishuman(user) || !user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK))
return return

View File

@@ -69,10 +69,7 @@
return ..() return ..()
/obj/structure/extinguisher_cabinet/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/extinguisher_cabinet/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(iscyborg(user) || isalien(user)) if(iscyborg(user) || isalien(user))
return return
if(stored_extinguisher) if(stored_extinguisher)

View File

@@ -41,7 +41,7 @@
new /obj/structure/falsewall/brass(loc) new /obj/structure/falsewall/brass(loc)
qdel(src) qdel(src)
/obj/structure/falsewall/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/falsewall/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(opening) if(opening)
return return
. = ..() . = ..()
@@ -180,7 +180,7 @@
radiate() radiate()
return ..() return ..()
/obj/structure/falsewall/uranium/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/falsewall/uranium/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
radiate() radiate()
. = ..() . = ..()

View File

@@ -32,7 +32,7 @@
if (LAZYLEN(buckled_mobs)) if (LAZYLEN(buckled_mobs))
. += "Someone appears to be strapped in. You can help them unbuckle, or activate the femur breaker." . += "Someone appears to be strapped in. You can help them unbuckle, or activate the femur breaker."
/obj/structure/femur_breaker/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/femur_breaker/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
add_fingerprint(user) add_fingerprint(user)
// Currently being used // Currently being used

View File

@@ -120,7 +120,7 @@
open = TRUE open = TRUE
density = TRUE density = TRUE
/obj/structure/fence/door/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/fence/door/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(can_open(user)) if(can_open(user))
toggle(user) toggle(user)

View File

@@ -105,10 +105,7 @@
fireaxe = null fireaxe = null
qdel(src) qdel(src)
/obj/structure/fireaxecabinet/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/fireaxecabinet/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(open || broken) if(open || broken)
if(fireaxe) if(fireaxe)
user.put_in_hands(fireaxe) user.put_in_hands(fireaxe)

View File

@@ -65,7 +65,7 @@
var/gift_type = /obj/item/a_gift/anything var/gift_type = /obj/item/a_gift/anything
var/list/ckeys_that_took = list() var/list/ckeys_that_took = list()
/obj/structure/flora/tree/pine/xmas/presents/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/flora/tree/pine/xmas/presents/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..() . = ..()
if(.) if(.)
return return

View File

@@ -110,7 +110,7 @@
desc = "Space Jesus is my copilot." desc = "Space Jesus is my copilot."
icon_state = "driverseat" icon_state = "driverseat"
/obj/structure/fluff/bus/passable/seat/driver/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/fluff/bus/passable/seat/driver/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
playsound(src, 'sound/items/carhorn.ogg', 50, 1) playsound(src, 'sound/items/carhorn.ogg', 50, 1)
. = ..() . = ..()

View File

@@ -186,10 +186,7 @@
else else
new_spawn.mind.assigned_role = "Free Golem" new_spawn.mind.assigned_role = "Free Golem"
/obj/effect/mob_spawn/human/golem/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/effect/mob_spawn/human/golem/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(isgolem(user) && can_transfer) if(isgolem(user) && can_transfer)
var/transfer_choice = alert("Transfer your soul to [src]? (Warning, your old body will die!)",,"Yes","No") var/transfer_choice = alert("Transfer your soul to [src]? (Warning, your old body will die!)",,"Yes","No")
if(transfer_choice != "Yes" || QDELETED(src) || uses <= 0 || !user.canUseTopic(src, BE_CLOSE, NO_DEXTERY, NO_TK)) if(transfer_choice != "Yes" || QDELETED(src) || uses <= 0 || !user.canUseTopic(src, BE_CLOSE, NO_DEXTERY, NO_TK))

View File

@@ -99,7 +99,7 @@
..(user, 1) ..(user, 1)
return TRUE return TRUE
/obj/structure/grille/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/grille/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..() . = ..()
if(.) if(.)
return return

View File

@@ -51,7 +51,7 @@
if (LAZYLEN(buckled_mobs)) if (LAZYLEN(buckled_mobs))
. += "Someone appears to be strapped in. You can help them out, or you can harm them by activating the guillotine." . += "Someone appears to be strapped in. You can help them out, or you can harm them by activating the guillotine."
/obj/structure/guillotine/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/guillotine/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
add_fingerprint(user) add_fingerprint(user)
// Currently being used by something // Currently being used by something

View File

@@ -53,10 +53,7 @@
else else
return ..() return ..()
/obj/structure/guncase/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/guncase/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(iscyborg(user) || isalien(user)) if(iscyborg(user) || isalien(user))
return return
if(contents.len && open) if(contents.len && open)

View File

@@ -37,10 +37,7 @@
MA.pixel_y = 12 MA.pixel_y = 12
. += H . += H
/obj/structure/headpike/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/headpike/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
to_chat(user, "<span class='notice'>You take down [src].</span>") to_chat(user, "<span class='notice'>You take down [src].</span>")
if(victim) if(victim)
victim.forceMove(drop_location()) victim.forceMove(drop_location())

View File

@@ -25,7 +25,7 @@
projector = null projector = null
return ..() return ..()
/obj/structure/holosign/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/holosign/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..() . = ..()
if(.) if(.)
return return
@@ -162,7 +162,7 @@
return TRUE //nice or benign diseases! return TRUE //nice or benign diseases!
return TRUE return TRUE
/obj/structure/holosign/barrier/medical/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/holosign/barrier/medical/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
if(CanPass(user) && user.a_intent == INTENT_HELP) if(CanPass(user) && user.a_intent == INTENT_HELP)
force_allaccess = !force_allaccess force_allaccess = !force_allaccess
to_chat(user, "<span class='warning'>You [force_allaccess ? "deactivate" : "activate"] the biometric scanners.</span>") //warning spans because you can make the station sick! to_chat(user, "<span class='warning'>You [force_allaccess ? "deactivate" : "activate"] the biometric scanners.</span>") //warning spans because you can make the station sick!
@@ -182,7 +182,7 @@
/obj/structure/holosign/barrier/cyborg/hacked/proc/cooldown() /obj/structure/holosign/barrier/cyborg/hacked/proc/cooldown()
shockcd = FALSE shockcd = FALSE
/obj/structure/holosign/barrier/cyborg/hacked/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/holosign/barrier/cyborg/hacked/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..() . = ..()
if(.) if(.)
return return

View File

@@ -91,10 +91,7 @@
else else
return ..() return ..()
/obj/structure/janitorialcart/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/janitorialcart/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
var/list/items = list() var/list/items = list()
if(mybag) if(mybag)

View File

@@ -60,8 +60,7 @@
deconstruct(TRUE) deconstruct(TRUE)
return TRUE return TRUE
//ATTACK HAND IGNORING PARENT RETURN VALUE /obj/structure/kitchenspike/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
/obj/structure/kitchenspike/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
if(VIABLE_MOB_CHECK(user.pulling) && user.a_intent == INTENT_GRAB && !has_buckled_mobs()) if(VIABLE_MOB_CHECK(user.pulling) && user.a_intent == INTENT_GRAB && !has_buckled_mobs())
var/mob/living/L = user.pulling var/mob/living/L = user.pulling
if(HAS_TRAIT(user, TRAIT_PACIFISM) && L.stat != DEAD) if(HAS_TRAIT(user, TRAIT_PACIFISM) && L.stat != DEAD)

View File

@@ -122,10 +122,7 @@
return FALSE return FALSE
return TRUE return TRUE
/obj/structure/ladder/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/ladder/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
use(user) use(user)
/obj/structure/ladder/attack_paw(mob/user) /obj/structure/ladder/attack_paw(mob/user)

View File

@@ -24,10 +24,7 @@
var/respawn_time = 50 var/respawn_time = 50
var/respawn_sound = 'sound/magic/staff_animation.ogg' var/respawn_sound = 'sound/magic/staff_animation.ogg'
/obj/structure/life_candle/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/life_candle/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(!user.mind) if(!user.mind)
return return
if(user.mind in linked_minds) if(user.mind in linked_minds)

View File

@@ -50,10 +50,7 @@
/obj/structure/mineral_door/attack_paw(mob/user) /obj/structure/mineral_door/attack_paw(mob/user)
return attack_hand(user) return attack_hand(user)
/obj/structure/mineral_door/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/mineral_door/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
return TryToSwitchState(user) return TryToSwitchState(user)
/obj/structure/mineral_door/CanPass(atom/movable/mover, turf/target) /obj/structure/mineral_door/CanPass(atom/movable/mover, turf/target)

View File

@@ -15,10 +15,7 @@
if(icon_state == "mirror_broke" && !broken) if(icon_state == "mirror_broke" && !broken)
obj_break(null, mapload) obj_break(null, mapload)
/obj/structure/mirror/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/mirror/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(broken || !Adjacent(user)) if(broken || !Adjacent(user))
return return
@@ -118,10 +115,7 @@
choosable_races += S.id choosable_races += S.id
..() ..()
/obj/structure/mirror/magic/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/mirror/magic/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(!ishuman(user)) if(!ishuman(user))
return return

View File

@@ -58,10 +58,7 @@ GLOBAL_LIST_EMPTY(bodycontainers) //Let them act as spawnpoints for revenants an
/obj/structure/bodycontainer/attack_paw(mob/user) /obj/structure/bodycontainer/attack_paw(mob/user)
return attack_hand(user) return attack_hand(user)
/obj/structure/bodycontainer/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/bodycontainer/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(locked) if(locked)
to_chat(user, "<span class='danger'>It's locked.</span>") to_chat(user, "<span class='danger'>It's locked.</span>")
return return
@@ -328,10 +325,7 @@ GLOBAL_LIST_EMPTY(crematoriums)
/obj/structure/tray/attack_paw(mob/user) /obj/structure/tray/attack_paw(mob/user)
return attack_hand(user) return attack_hand(user)
/obj/structure/tray/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/tray/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if (src.connected) if (src.connected)
connected.close() connected.close()
add_fingerprint(user) add_fingerprint(user)

View File

@@ -14,10 +14,7 @@
desc = "[initial(desc)] The planchette is sitting at \"[planchette]\"." desc = "[initial(desc)] The planchette is sitting at \"[planchette]\"."
return ..() return ..()
/obj/structure/spirit_board/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/spirit_board/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
spirit_board_pick_letter(user) spirit_board_pick_letter(user)

View File

@@ -74,7 +74,7 @@
radiate() radiate()
..() ..()
/obj/structure/statue/uranium/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/statue/uranium/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
radiate() radiate()
. = ..() . = ..()
@@ -240,7 +240,7 @@
honk() honk()
return ..() return ..()
/obj/structure/statue/bananium/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/statue/bananium/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
honk() honk()
. = ..() . = ..()

View File

@@ -60,7 +60,7 @@
/obj/structure/table/attack_paw(mob/user) /obj/structure/table/attack_paw(mob/user)
return attack_hand(user) return attack_hand(user)
/obj/structure/table/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/table/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
if(Adjacent(user) && user.pulling) if(Adjacent(user) && user.pulling)
if(isliving(user.pulling)) if(isliving(user.pulling))
var/mob/living/pushed_mob = user.pulling var/mob/living/pushed_mob = user.pulling
@@ -678,7 +678,7 @@
/obj/structure/rack/attack_paw(mob/living/user) /obj/structure/rack/attack_paw(mob/living/user)
attack_hand(user) attack_hand(user)
/obj/structure/rack/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/rack/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..() . = ..()
if(.) if(.)
return return

View File

@@ -48,10 +48,7 @@
handle_density() handle_density()
to_chat(user, "<span class='notice'>You slide the target into the stake.</span>") to_chat(user, "<span class='notice'>You slide the target into the stake.</span>")
/obj/structure/target_stake/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/target_stake/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(pinned_target) if(pinned_target)
removeTarget(user) removeTarget(user)

View File

@@ -58,10 +58,7 @@
qdel(R) qdel(R)
/obj/structure/transit_tube/station/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/transit_tube/station/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(!pod_moving) if(!pod_moving)
if(user.pulling && user.a_intent == INTENT_GRAB && isliving(user.pulling)) if(user.pulling && user.a_intent == INTENT_GRAB && isliving(user.pulling))
if(open_status == STATION_TUBE_OPEN) if(open_status == STATION_TUBE_OPEN)

View File

@@ -28,7 +28,7 @@
AM.forceMove(loc) AM.forceMove(loc)
return ..() return ..()
/obj/structure/toilet/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/toilet/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..() . = ..()
if(.) if(.)
return return
@@ -174,10 +174,7 @@
..() ..()
hiddenitem = new /obj/item/reagent_containers/food/urinalcake hiddenitem = new /obj/item/reagent_containers/food/urinalcake
/obj/structure/urinal/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/urinal/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(user.pulling && user.a_intent == INTENT_GRAB && isliving(user.pulling)) if(user.pulling && user.a_intent == INTENT_GRAB && isliving(user.pulling))
var/mob/living/GM = user.pulling var/mob/living/GM = user.pulling
if(user.grab_state >= GRAB_AGGRESSIVE) if(user.grab_state >= GRAB_AGGRESSIVE)
@@ -492,7 +489,7 @@
var/buildstacktype = /obj/item/stack/sheet/metal var/buildstacktype = /obj/item/stack/sheet/metal
var/buildstackamount = 1 var/buildstackamount = 1
/obj/structure/sink/attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/sink/on_attack_hand(mob/living/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..() . = ..()
if(.) if(.)
return return
@@ -707,8 +704,7 @@
icon_state = "puddle" icon_state = "puddle"
resistance_flags = UNACIDABLE resistance_flags = UNACIDABLE
//ATTACK HAND IGNORING PARENT RETURN VALUE /obj/structure/sink/puddle/on_attack_hand(mob/M)
/obj/structure/sink/puddle/attack_hand(mob/M)
icon_state = "puddle-splash" icon_state = "puddle-splash"
. = ..() . = ..()
icon_state = "puddle" icon_state = "puddle"
@@ -784,10 +780,7 @@
return TRUE return TRUE
/obj/structure/curtain/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/curtain/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
playsound(loc, 'sound/effects/curtain.ogg', 50, 1) playsound(loc, 'sound/effects/curtain.ogg', 50, 1)
toggle() toggle()

View File

@@ -169,10 +169,7 @@ GLOBAL_LIST_EMPTY(electrochromatic_window_lookup)
return 1 return 1
. = ..() . = ..()
/obj/structure/window/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/window/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(!can_be_reached(user)) if(!can_be_reached(user))
return return
user.visible_message("[user] knocks on [src].") user.visible_message("[user] knocks on [src].")
@@ -837,10 +834,7 @@ GLOBAL_LIST_EMPTY(electrochromatic_window_lookup)
for (var/i in 1 to rand(1,4)) for (var/i in 1 to rand(1,4))
. += new /obj/item/paper/natural(location) . += new /obj/item/paper/natural(location)
/obj/structure/window/paperframe/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/structure/window/paperframe/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
add_fingerprint(user) add_fingerprint(user)
if(user.a_intent != INTENT_HARM) if(user.a_intent != INTENT_HARM)
user.visible_message("[user] knocks on [src].") user.visible_message("[user] knocks on [src].")

View File

@@ -52,10 +52,7 @@
set_light(0) set_light(0)
return ..() return ..()
/turf/open/floor/light/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /turf/open/floor/light/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(!can_modify_colour) if(!can_modify_colour)
return return
if(!on) if(!on)

View File

@@ -149,7 +149,7 @@
if(!.) if(!.)
honk() honk()
/turf/open/floor/mineral/bananium/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /turf/open/floor/mineral/bananium/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
.=..() .=..()
if(!.) if(!.)
honk() honk()
@@ -202,7 +202,7 @@
if(!.) if(!.)
radiate() radiate()
/turf/open/floor/mineral/uranium/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /turf/open/floor/mineral/uranium/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
.=..() .=..()
if(!.) if(!.)
radiate() radiate()

View File

@@ -89,10 +89,7 @@
/turf/open/floor/engine/attack_paw(mob/user) /turf/open/floor/engine/attack_paw(mob/user)
return attack_hand(user) return attack_hand(user)
/turf/open/floor/engine/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /turf/open/floor/engine/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
user.Move_Pulled(src) user.Move_Pulled(src)
//air filled floors; used in atmos pressure chambers //air filled floors; used in atmos pressure chambers

View File

@@ -72,7 +72,7 @@
return return
return return
/turf/closed/wall/mineral/uranium/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /turf/closed/wall/mineral/uranium/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
radiate() radiate()
. = ..() . = ..()

View File

@@ -136,10 +136,7 @@
to_chat(user, text("<span class='notice'>You punch the wall.</span>")) to_chat(user, text("<span class='notice'>You punch the wall.</span>"))
return TRUE return TRUE
/turf/closed/wall/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /turf/closed/wall/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(!M.CheckActionCooldown(CLICK_CD_MELEE)) if(!M.CheckActionCooldown(CLICK_CD_MELEE))
return return
to_chat(user, "<span class='notice'>You push the wall but nothing happens!</span>") to_chat(user, "<span class='notice'>You push the wall but nothing happens!</span>")

View File

@@ -122,10 +122,7 @@
requires_activation = FALSE requires_activation = FALSE
..() ..()
/turf/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /turf/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
user.Move_Pulled(src) user.Move_Pulled(src)
/turf/proc/multiz_turf_del(turf/T, dir) /turf/proc/multiz_turf_del(turf/T, dir)

View File

@@ -24,10 +24,7 @@
var/obj/machinery/computer/camera_advanced/abductor/camera var/obj/machinery/computer/camera_advanced/abductor/camera
var/list/datum/icon_snapshot/disguises = list() var/list/datum/icon_snapshot/disguises = list()
/obj/machinery/abductor/console/attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags) /obj/machinery/abductor/console/on_attack_hand(mob/user, act_intent = user.a_intent, unarmed_attack_flags)
. = ..()
if(.)
return
if(!HAS_TRAIT(user, TRAIT_ABDUCTOR_TRAINING) && !HAS_TRAIT(user.mind, TRAIT_ABDUCTOR_TRAINING)) if(!HAS_TRAIT(user, TRAIT_ABDUCTOR_TRAINING) && !HAS_TRAIT(user.mind, TRAIT_ABDUCTOR_TRAINING))
to_chat(user, "<span class='warning'>You start mashing alien buttons at random!</span>") to_chat(user, "<span class='warning'>You start mashing alien buttons at random!</span>")
if(do_after(user,100, target = src)) if(do_after(user,100, target = src))

Some files were not shown because too many files have changed in this diff Show More