Files
Aurora.3/code/game/objects/structures/hivebot_head.dm
Fluffy a3a4d46fa7 Hitby refactor (#19624)
Refactored hitby to be in line with TG's version.
Refactored item weight defines to a more clear naming scheme, also in
line with TG's version.
Refactored how the movement bumps are handled, ported signals to handle
them, in preparation for the movement update.
Fixed disposal hit bouncing the hitting atom on the wall.
Items do not push other items anymore if they are tiny.
2024-07-28 20:52:08 +00:00

28 lines
1.2 KiB
Plaintext

/obj/structure/hivebot_head
name = "\improper Secondary Transmitter Drone core"
desc = "The central core of the Hivebot Secondary Transmitter Drone - all that remains after the machine's destruction. Perhaps some data as to the threat can be gleaned from this?"
icon = 'icons/obj/structure/hivebot_head.dmi'
icon_state = "hivebot_head"
w_class = WEIGHT_CLASS_BULKY
breakable = FALSE
climbable = FALSE
density = FALSE
/obj/structure/hivebot_head/ex_act(severity) //dont want it getting blown up
return
/obj/structure/hivebot_head/attack_hand(mob/user)
. = ..()
user.visible_message(SPAN_NOTICE("\The [user] touches \the [src]."), SPAN_NOTICE("You touch \the [src]."))
if(prob(10))
var/T = get_turf(src)
icon_state = "hivebot_head_active"
playsound(src.loc, 'sound/effects/creatures/hivebot/hivebot-bark-005.ogg', 60)
to_chat(user, SPAN_WARNING("\The [src] suddenly sparks and lights up, emitting some unintelligible noise!"))
spark(T, 3, GLOB.alldirs)
addtimer(CALLBACK(src, PROC_REF(deactivate)), 3 SECONDS)
/obj/structure/hivebot_head/proc/deactivate()
icon_state = "hivebot_head"
visible_message(SPAN_WARNING("\The [src] shudders and goes silent..."))