From 830ae2b1c30d93e70562227553a3e3b64a668c39 Mon Sep 17 00:00:00 2001 From: keronshb Date: Tue, 15 Dec 2020 12:14:49 -0500 Subject: [PATCH] Code for preventing it on moving onto a space tile For some reason this doesn't work so I've commented it out until I can figure out how to get it to work. --- code/modules/vehicles/cars/clowncar.dm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/modules/vehicles/cars/clowncar.dm b/code/modules/vehicles/cars/clowncar.dm index c78e59bcb6..27951da6da 100644 --- a/code/modules/vehicles/cars/clowncar.dm +++ b/code/modules/vehicles/cars/clowncar.dm @@ -18,6 +18,14 @@ . = ..() initialize_controller_action_type(/datum/action/vehicle/sealed/horn/clowncar, VEHICLE_CONTROL_DRIVE) +/* +/obj/vehicle/clowncar/vehicle_move(direction) //Prevent it from moving onto space + if(isspaceturf(get_step(src, direction))) + return FALSE + else + return ..() +*/ + /obj/vehicle/sealed/car/clowncar/auto_assign_occupant_flags(mob/M) if(ishuman(M)) var/mob/living/carbon/human/H = M