smooth movement twaeks

This commit is contained in:
silicons
2021-01-09 15:30:56 -08:00
parent 9733305997
commit 2525334bb0
7 changed files with 27 additions and 10 deletions
@@ -3,7 +3,7 @@
real_name = "Unknown"
icon = 'icons/mob/human.dmi'
icon_state = "caucasian_m"
appearance_flags = KEEP_TOGETHER|TILE_BOUND|PIXEL_SCALE
SET_APPEARANCE_FLAGS(KEEP_TOGETHER|TILE_BOUND|PIXEL_SCALE)
/mob/living/carbon/human/Initialize()
add_verb(src, /mob/living/proc/mob_sleep)
-3
View File
@@ -16,9 +16,6 @@
attack_hand_unwieldlyness = CLICK_CD_MELEE
attack_hand_speed = 0
/// Was our last move diagonal
var/last_move_diagonal = FALSE
/// What receives our keyboard input. src by default.
var/datum/focus
+2 -3
View File
@@ -96,9 +96,6 @@
if((direction & (direction - 1)) && mob.loc == n) //moved diagonally successfully
add_delay *= 2
mob.last_move_diagonal = TRUE
else
mob.last_move_diagonal = FALSE
mob.set_glide_size(DELAY_TO_GLIDE_SIZE(add_delay), FALSE)
move_delay += add_delay
if(.) // If mob is null here, we deserve the runtime
@@ -109,6 +106,8 @@
if(AM && AM.density && !SEND_SIGNAL(L, COMSIG_COMBAT_MODE_CHECK, COMBAT_MODE_ACTIVE) && !ismob(AM))
L.setDir(turn(L.dir, 180))
last_move = world.time
SEND_SIGNAL(mob, COMSIG_MOB_CLIENT_MOVE, src, direction, n, oldloc, add_delay)
/// Process_Grab(): checks for grab, attempts to break if so. Return TRUE to prevent movement.