mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Fixes some layering issues on taur/borg riding.
-Proper layering is no longer ignored for every non-north direction. -Also bumped borg riding offset upwards by couple pixels to better match the back height.
This commit is contained in:
@@ -133,12 +133,6 @@
|
||||
only_one_driver = TRUE // If true, only the person in 'front' (first on list of riding mobs) can drive.
|
||||
|
||||
/datum/riding/dogborg/handle_vehicle_layer()
|
||||
if(ridden.has_buckled_mobs())
|
||||
if(ridden.dir != NORTH)
|
||||
ridden.layer = ABOVE_MOB_LAYER
|
||||
else
|
||||
ridden.layer = initial(ridden.layer)
|
||||
else
|
||||
ridden.layer = initial(ridden.layer)
|
||||
|
||||
/datum/riding/dogborg/ride_check(mob/living/M)
|
||||
@@ -158,10 +152,10 @@
|
||||
var/scale = L.size_multiplier
|
||||
|
||||
var/list/values = list(
|
||||
"[NORTH]" = list(0, 8*scale, ABOVE_MOB_LAYER),
|
||||
"[SOUTH]" = list(0, 8*scale, BELOW_MOB_LAYER),
|
||||
"[EAST]" = list(-5*scale, 8*scale, ABOVE_MOB_LAYER),
|
||||
"[WEST]" = list(5*scale, 8*scale, ABOVE_MOB_LAYER))
|
||||
"[NORTH]" = list(0, 10*scale, ABOVE_MOB_LAYER),
|
||||
"[SOUTH]" = list(0, 10*scale, BELOW_MOB_LAYER),
|
||||
"[EAST]" = list(-5*scale, 10*scale, ABOVE_MOB_LAYER),
|
||||
"[WEST]" = list(5*scale, 10*scale, ABOVE_MOB_LAYER))
|
||||
|
||||
return values
|
||||
|
||||
|
||||
@@ -6,9 +6,6 @@
|
||||
|
||||
/datum/riding/taur/handle_vehicle_layer()
|
||||
if(ridden.has_buckled_mobs())
|
||||
if(ridden.dir != NORTH)
|
||||
ridden.layer = ABOVE_MOB_LAYER
|
||||
else
|
||||
ridden.layer = initial(ridden.layer)
|
||||
else
|
||||
var/mob/living/L = ridden
|
||||
|
||||
Reference in New Issue
Block a user