Skip to content

Commit

Permalink
Fixes goonstation#1061 - the eye-spider's mark ability (goonstation#9976
Browse files Browse the repository at this point in the history
)
  • Loading branch information
amylizzle authored and BatElite committed Aug 6, 2022
1 parent 0f4af2f commit 62a2e23
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions code/mob/living/critter/changeling_critters.dm
Expand Up @@ -387,6 +387,21 @@
hivemind_owner.insert_into_hivemind(src)
qdel(src)

Life(datum/controller/process/mobs/parent)
. = ..()
if(src.marked_target && src.client)
var/image/arrow = image(icon = 'icons/mob/screen1.dmi', icon_state = "arrow", loc = src, layer = HUD_LAYER)
arrow.color = "#ff0000ff"
arrow.transform = matrix(arrow.transform, -2, -2, MATRIX_SCALE)
var/angle = get_angle(src, src.marked_target)
arrow.transform = matrix(arrow.transform, angle, MATRIX_ROTATE)
arrow.transform = matrix(arrow.transform, sin(angle)*40, cos(angle)*40, MATRIX_TRANSLATE)
src.client.images += arrow
animate(arrow, time = 3 SECONDS, alpha = 0)
SPAWN(3 SECONDS)
src.client?.images -= arrow
qdel(arrow)

///////////////////////////
// LEGWORM
///////////////////////////
Expand Down

0 comments on commit 62a2e23

Please sign in to comment.