From 4cc2bd4e3d74cfe3f4ca46cc0acce73fb44a8e0f Mon Sep 17 00:00:00 2001 From: Chinsky Date: Thu, 28 Aug 2014 13:55:21 +0400 Subject: [PATCH] Sending PDA messages and talking in radio things now triggers autoaim. With PDA messages it also gives visible message, for baddies without autoaim-capable guns to consider. --- code/game/objects/items/devices/PDA/PDA.dm | 2 ++ code/game/objects/items/devices/radio/radio.dm | 1 + 2 files changed, 3 insertions(+) diff --git a/code/game/objects/items/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm index 3b71ff321f..42b7d1ff11 100755 --- a/code/game/objects/items/devices/PDA/PDA.dm +++ b/code/game/objects/items/devices/PDA/PDA.dm @@ -877,6 +877,8 @@ var/global/list/obj/item/device/pda/PDAs = list() /obj/item/device/pda/proc/create_message(var/mob/living/U = usr, var/obj/item/device/pda/P) + U.visible_message("[U] taps on \his PDA's screen.") + U.last_target_click = world.time var/t = input(U, "Please enter message", name, null) as text t = copytext(sanitize(t), 1, MAX_MESSAGE_LEN) if (!t || !istype(P)) diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm index 3a064ee552..f5da28d0bf 100644 --- a/code/game/objects/items/devices/radio/radio.dm +++ b/code/game/objects/items/devices/radio/radio.dm @@ -229,6 +229,7 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use if(!(src.wires & WIRE_TRANSMIT)) // The device has to have all its wires and shit intact return + M.last_target_click = world.time if(GLOBAL_RADIO_TYPE == 1) // NEW RADIO SYSTEMS: By Doohl