pixelshift + layering

This commit is contained in:
SandPoot
2023-02-21 14:27:10 -03:00
parent 992d25ea08
commit 11a06b1686
9 changed files with 125 additions and 4 deletions
+2 -2
View File
@@ -669,7 +669,7 @@ GLOBAL_VAR_INIT(exploit_warn_spam_prevention, 0)
setDir(SOUTH)
client.last_turn = world.time + MOB_FACE_DIRECTION_DELAY
return TRUE
/*
/mob/verb/eastshift()
set hidden = TRUE
if(!canface())
@@ -701,7 +701,7 @@ GLOBAL_VAR_INIT(exploit_warn_spam_prevention, 0)
if(pixel_y >= -32)
pixel_y--
is_shifted = TRUE
*/
/mob/proc/IsAdvancedToolUser()//This might need a rename but it should replace the can this mob use things check
return FALSE
+2
View File
@@ -54,6 +54,8 @@
var/resting = 0 //Carbon
var/lying = 0
var/lying_prev = 0
/// Whether the mob is pixel shifted or not
var/is_shifted = FALSE
/// List of movement speed modifiers applying to this mob
+8
View File
@@ -45,6 +45,14 @@
if(mob.force_moving)
return FALSE
// Sandstorm Edit
if(mob.shifting)
mob.pixel_shift(direction)
return FALSE
else if(mob.is_shifted)
mob.unpixel_shift()
//
var/mob/living/L = mob //Already checked for isliving earlier
if(L.incorporeal_move) //Move though walls
Process_Incorpmove(direction)