mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 22:28:44 +01:00
[MIRROR] Borg clientside door electrification indicator (#12636)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Will
Cameron Lennox
parent
cd1809249d
commit
0a7b224d2f
@@ -18,6 +18,5 @@
|
||||
|
||||
// Mostly for motion echos, but someone will probably find another use for it... So parent type gets it instead!
|
||||
/image/client_only/proc/place_from_root(var/turf/At)
|
||||
var/rand_limit = 12
|
||||
pixel_x += ((At.x - loc.x) * 32) + rand(-rand_limit,rand_limit)
|
||||
pixel_y += ((At.y - loc.y) * 32) + rand(-rand_limit,rand_limit)
|
||||
pixel_x = ((At.x - loc.x) * 32)
|
||||
pixel_y = ((At.y - loc.y) * 32)
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/image/client_only/electrify_notice
|
||||
plane = PLANE_FULLSCREEN
|
||||
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
|
||||
appearance_flags = (RESET_COLOR|PIXEL_SCALE|KEEP_APART)
|
||||
|
||||
/image/client_only/electrify_notice/New(icon, loc, icon_state, layer, dir)
|
||||
. = ..()
|
||||
QDEL_IN(src, 1 SECOND)
|
||||
|
||||
/image/client_only/electrify_notice/place_from_root(var/turf/At)
|
||||
. = ..()
|
||||
pixel_y += 8
|
||||
animate(src, pixel_y = 32, alpha = 0, time = 1 SECOND)
|
||||
@@ -6,3 +6,9 @@
|
||||
/image/client_only/motion_echo/New(icon, loc, icon_state, layer, dir)
|
||||
. = ..()
|
||||
QDEL_IN(src, 2 SECONDS)
|
||||
|
||||
/image/client_only/motion_echo/place_from_root(var/turf/At)
|
||||
. = ..()
|
||||
var/rand_limit = 12
|
||||
pixel_x += rand(-rand_limit,rand_limit)
|
||||
pixel_y += rand(-rand_limit,rand_limit)
|
||||
|
||||
Reference in New Issue
Block a user