mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 03:26:31 +01:00
Fixes BCI messaging and circuit laser pointers (#86978)
## About The Pull Request Closes #86968 Closes #86969 ## Changelog 🆑 fix: Fixed BCIs sending messages twice and circuit laser pointers sometimes failing to work /🆑
This commit is contained in:
@@ -59,10 +59,9 @@
|
||||
silicon.flash_act(affect_silicon = TRUE) /// no stunning, just a blind
|
||||
to_chat(silicon, span_danger("Your sensors were overloaded by a weakened laser shone by [shell]!"))
|
||||
|
||||
var/image/laser_location = image('icons/obj/weapons/guns/projectiles.dmi',target_location,"[pointer_icon_state]_laser",10)
|
||||
var/mutable_appearance/laser_location = mutable_appearance('icons/obj/weapons/guns/projectiles.dmi', "[pointer_icon_state]_laser")
|
||||
|
||||
laser_location.pixel_x = clamp(target.pixel_x + image_pixel_x.value,-15,15)
|
||||
laser_location.pixel_y = clamp(target.pixel_y + image_pixel_y.value,-15,15)
|
||||
|
||||
target_location.add_overlay(laser_location)
|
||||
addtimer(CALLBACK(target_location, TYPE_PROC_REF(/atom, cut_overlay), laser_location), 1 SECONDS)
|
||||
target_location.flick_overlay_view(laser_location, 1 SECONDS)
|
||||
|
||||
Reference in New Issue
Block a user