mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Slowdown on pulling (#21056)
* slowdown on pulling * slowdown only when pulling structure or machinery * moving speed modifier to /mob/living/carbon instead of all atoms * added pull_speed to /atom/movable, moved movement_delay proc to carbon/human * no-slowdown-trash-bin * Update code/game/atoms_movable.dm Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> * removed pull_speed on /obj/item/storage/bag/trash, no need to set this * more 0 pull_speed objects * added gravity check, moved pull_speed to /obj --------- Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
. += ..()
|
||||
. += GLOB.configuration.movement.human_delay
|
||||
. += dna.species.movement_delay(src)
|
||||
if(mob_has_gravity() && isobj(pulling))
|
||||
var/obj/pulled = pulling
|
||||
. += pulled.pull_speed
|
||||
|
||||
/mob/living/carbon/human/Process_Spacemove(movement_dir = 0)
|
||||
|
||||
|
||||
@@ -79,6 +79,7 @@
|
||||
name = "water tank"
|
||||
desc = "A water tank."
|
||||
icon_state = "water"
|
||||
pull_speed = 0
|
||||
|
||||
/obj/structure/reagent_dispensers/watertank/high
|
||||
name = "high-capacity water tank"
|
||||
@@ -93,6 +94,7 @@
|
||||
icon_state = "oil"
|
||||
reagent_id = "oil"
|
||||
tank_volume = 3000
|
||||
pull_speed = 0
|
||||
|
||||
/obj/structure/reagent_dispensers/fueltank
|
||||
name = "fuel tank"
|
||||
@@ -101,6 +103,7 @@
|
||||
reagent_id = "fuel"
|
||||
tank_volume = 4000
|
||||
anchored = TRUE
|
||||
pull_speed = 0
|
||||
var/obj/item/assembly_holder/rig = null
|
||||
var/accepts_rig = 1
|
||||
|
||||
@@ -279,6 +282,7 @@
|
||||
icon = 'icons/obj/nuclearbomb.dmi'
|
||||
icon_state = "nuclearbomb0"
|
||||
anchored = TRUE
|
||||
pull_speed = 0
|
||||
|
||||
/obj/structure/reagent_dispensers/beerkeg/nuke/update_overlays()
|
||||
. = ..()
|
||||
|
||||
@@ -109,6 +109,7 @@
|
||||
icon = 'icons/vehicles/CargoTrain.dmi'
|
||||
icon_state = "ambulance"
|
||||
anchored = FALSE
|
||||
pull_speed = 0
|
||||
|
||||
/obj/structure/bed/amb_trolley/examine(mob/user)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user