Merge pull request #7534 from VOREStation/aro-moverework

Rewrite client/Move() for smoother movement ingame
This commit is contained in:
Aronai Sieyes
2020-04-30 18:03:52 -04:00
committed by GitHub
31 changed files with 270 additions and 309 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
/atom/movable
layer = OBJ_LAYER
appearance_flags = TILE_BOUND|PIXEL_SCALE
var/last_move = null
glide_size = 8
var/last_move = null //The direction the atom last moved
var/anchored = 0
// var/elevation = 2 - not used anywhere
var/moving_diagonally
@@ -70,7 +70,7 @@
do_reagent_implant(usr)
/mob/living/carbon/human/proc/do_reagent_implant(var/mob/living/carbon/human/user = usr)
if(!isliving(user) || !user.canClick())
if(!isliving(user) || !user.checkClickCooldown())
return
if(user.incapacitated() || user.stat > CONSCIOUS)
+1 -3
View File
@@ -157,9 +157,7 @@ var/const/enterloopsanity = 100
if(ismob(A))
var/mob/M = A
if(!M.lastarea)
M.lastarea = get_area(M.loc)
if(M.lastarea.has_gravity == 0)
if(M.lastarea?.has_gravity == 0)
inertial_drift(M)
if(M.flying) //VORESTATION Edit Start. This overwrites the above is_space without touching it all that much.
inertial_drift(M)