mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 01:53:35 +01:00
You Spin Me Right Round
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user