mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 02:24:11 +01:00
Update mob glide_size prior to movement
This commit is contained in:
@@ -187,18 +187,24 @@
|
||||
direct = newdir
|
||||
n = get_step(mob, direct)
|
||||
|
||||
delay = TICKS2DS(-round(-(DS2TICKS(delay)))) //Rounded to the next tick in equivalent ds
|
||||
mob.glide_size = world.icon_size/max(DS2TICKS(delay),1) //Down to whatever decimal
|
||||
|
||||
. = ..()
|
||||
mob.setDir(direct)
|
||||
|
||||
if((direct & (direct - 1)) && mob.loc == n) //moved diagonally successfully
|
||||
delay = mob.movement_delay() * 2 //Will prevent mob diagonal moves from smoothing accurately, sadly
|
||||
|
||||
move_delay += delay
|
||||
|
||||
for(var/obj/item/grab/G in mob)
|
||||
if(G.state == GRAB_NECK)
|
||||
mob.setDir(angle2dir((dir2angle(direct) + 202.5) % 365))
|
||||
G.adjust_position()
|
||||
for(var/obj/item/grab/G in mob.grabbed_by)
|
||||
G.adjust_position()
|
||||
if((direct & (direct - 1)) && mob.loc == n) //moved diagonally successfully
|
||||
delay = mob.movement_delay() * 2
|
||||
move_delay += delay
|
||||
|
||||
moving = 0
|
||||
if(mob && .)
|
||||
if(mob.throwing)
|
||||
|
||||
Reference in New Issue
Block a user