You Spin Me Right Round

This commit is contained in:
Fox-McCloud
2015-03-28 23:17:00 -04:00
parent e2a4ccc8a6
commit d4de91ce15
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -141,6 +141,7 @@
var/mob/living/M = src
M.turf_collision(T, speed)
SpinAnimation(0, 0)
//decided whether a movable atom being thrown can pass through the turf it is in.
/atom/movable/proc/hit_check(var/speed)
if(src.throwing)
@@ -163,7 +164,7 @@
src.throw_source = get_turf(src) //store the origin turf
if(!no_spin)
SpinAnimation(5, 1)
SpinAnimation(5, -1)
var/dist_x = abs(target.x - src.x)
var/dist_y = abs(target.y - src.y)
+2
View File
@@ -764,6 +764,8 @@
float(!has_gravity)
/mob/living/proc/float(on)
if(throwing)
return
if(on && !floating)
animate(src, pixel_y = 2, time = 10, loop = -1)
floating = 1