From b3672bc3eb5c7a9fa2966509fd27712d9f7ca2e7 Mon Sep 17 00:00:00 2001 From: kevinz000 <2003111+kevinz000@users.noreply.github.com> Date: Tue, 12 Jun 2018 14:20:48 -0700 Subject: [PATCH] Delete riding.dm --- modular_citadel/datums/components/riding.dm | 29 --------------------- 1 file changed, 29 deletions(-) delete mode 100644 modular_citadel/datums/components/riding.dm diff --git a/modular_citadel/datums/components/riding.dm b/modular_citadel/datums/components/riding.dm deleted file mode 100644 index f59ad5a3d3..0000000000 --- a/modular_citadel/datums/components/riding.dm +++ /dev/null @@ -1,29 +0,0 @@ -/datum/component/riding - var/last_vehicle_move = 0 - -/datum/component/riding/handle_ride(mob/user, direction) - var/atom/movable/AM = parent - if(user.incapacitated()) - Unbuckle(user) - return - - if(world.time < last_vehicle_move + vehicle_move_delay) - return - last_vehicle_move = world.time - - if(keycheck(user)) - var/turf/next = get_step(AM, direction) - var/turf/current = get_turf(AM) - if(!istype(next) || !istype(current)) - return //not happening. - if(!turf_check(next, current)) - to_chat(user, "Your \the [AM] can not go onto [next]!") - return - if(!Process_Spacemove(direction) || !isturf(AM.loc)) - return - step(AM, direction) - - handle_vehicle_layer() - handle_vehicle_offsets() - else - to_chat(user, "You'll need the keys in one of your hands to [drive_verb] [AM].")