mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Foggy Breath Effects (#18241)
* chilly
* frosty
* Now with crawling and buckling!
had to do some jank because meat spikes dont change a perfectly good variable that other angle changing code uses, so insert snowflake code for the meat spike. :C
* Fixes warning
what the hell is a protected variable anyways
* amogus
* Revert "amogus"
This reverts commit ebaa99c77b.
* megafauna PR deconflict
* removes jank
* needless variable def
This commit is contained in:
@@ -137,3 +137,19 @@
|
||||
. = ..()
|
||||
icon_state = "snap3"
|
||||
render_target = "*snap[id]"
|
||||
|
||||
/obj/effect/frosty_breath
|
||||
icon = 'icons/effects/effects.dmi'
|
||||
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
|
||||
layer = ABOVE_MOB_LAYER
|
||||
anchored = TRUE
|
||||
|
||||
/obj/effect/frosty_breath/Initialize(mapload, mob/living/carbon/C)
|
||||
. = ..()
|
||||
dir = C.dir
|
||||
if(C.buckled)
|
||||
pixel_y = (C.buckled.buckle_offset + 10)
|
||||
if(dir == NORTH)
|
||||
layer = BELOW_MOB_LAYER
|
||||
flick("breath_[C.lying_prev]", src)
|
||||
QDEL_IN(src, 2 SECONDS)
|
||||
|
||||
@@ -93,9 +93,8 @@
|
||||
victim.adjustBruteLoss(30)
|
||||
victim.setDir(2)
|
||||
buckle_mob(victim, force = TRUE)
|
||||
var/matrix/m180 = matrix(victim.transform)
|
||||
m180.Turn(180)
|
||||
animate(victim, transform = m180, time = 3)
|
||||
victim.set_lying_angle(180)
|
||||
victim.update_transform()
|
||||
victim.pixel_y = victim.get_standard_pixel_y_offset(180)
|
||||
return TRUE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user