mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 15:39:57 +01:00
Simple animal animations (#9393)
This commit is contained in:
@@ -86,20 +86,6 @@
|
||||
|
||||
return ..()
|
||||
|
||||
//Pixel offsetting as they scamper around
|
||||
/mob/living/simple_animal/rat/Move()
|
||||
if(..())
|
||||
if (prob(50))
|
||||
var/new_pixelx = pixel_x
|
||||
new_pixelx += rand(-2,2)
|
||||
new_pixelx = Clamp(new_pixelx, -10, 10)
|
||||
animate(src, pixel_x = new_pixelx, time = 0.5)
|
||||
else
|
||||
var/new_pixely = pixel_y
|
||||
new_pixely += rand(-2,2)
|
||||
new_pixely = Clamp(new_pixely, -4, 14)
|
||||
animate(src, pixel_y = new_pixely, time = 0.5)
|
||||
|
||||
/mob/living/simple_animal/rat/Initialize()
|
||||
. = ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user