Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions code/modules/mob/mob_movement.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@
* Move a client in a direction
*
* Huge proc, has a lot of functionality
*
*
* Mostly it will despatch to the mob that you are the owner of to actually move
* in the physical realm
*
*
* Things that stop you moving as a mob:
* * world time being less than your next move_delay
* * not being in a mob, or that mob not having a loc
* * missing the n and direction parameters
* * being in remote control of an object (calls Moveobject instead)
* * being dead (it ghosts you instead)
*
*
* Things that stop you moving as a mob living (why even have OO if you're just shoving it all
* in the parent proc with istype checks right?):
* * having incorporeal_move set (calls Process_Incorpmove() instead)
Expand All @@ -75,7 +75,7 @@
*
* Finally if you're pulling an object and it's dense, you are turned 180 after the move
* (if you ask me, this should be at the top of the move so you don't dance around)
*
*
*/
/client/Move(n, direct)
if(world.time < move_delay) //do not move anything ahead of this check please
Expand Down Expand Up @@ -155,7 +155,7 @@
. = ..()

if((direct & (direct - 1)) && mob.loc == n) //moved diagonally successfully
add_delay *= 2
add_delay *= 1.414214 // sqrt(2)
mob.set_glide_size(DELAY_TO_GLIDE_SIZE(add_delay))
move_delay += add_delay
if(.) // If mob is null here, we deserve the runtime
Expand Down Expand Up @@ -189,7 +189,7 @@
* Allows mobs to ignore density and phase through objects
*
* Called by client/Move()
*
*
* The behaviour depends on the incorporeal_move value of the mob
*
* * INCORPOREAL_MOVE_BASIC - forceMoved to the next tile with no stop
Expand Down Expand Up @@ -277,9 +277,9 @@
* Handles mob/living movement in space (or no gravity)
*
* Called by /client/Move()
*
*
* return TRUE for movement or FALSE for none
*
*
* You can move in space if you have a spacewalk ability
*/
/mob/Process_Spacemove(movement_dir = 0)
Expand Down Expand Up @@ -453,7 +453,7 @@

/**
* Toggle the move intent of the mob
*
*
* triggers an update the move intent hud as well
*/
/mob/proc/toggle_move_intent(mob/user)
Expand Down