More cargo train fixes

- Fixes #5906
- Fixes #5939
- Fixes #6282
- Fixes #6634 (properly this time)
- Fixed a bug with updating train stats (causing trains to be super slow if hitched while running)
- Updated train verbs (start/stop/remove key) to only show up if you are in the same turf
- Moved all train specific verbs to their own verb category: "Vehicle"
This commit is contained in:
Loganbacca
2015-01-03 01:27:10 +13:00
parent dbeec8915e
commit f3b893942f
4 changed files with 79 additions and 16 deletions
+9 -2
View File
@@ -269,8 +269,12 @@
move_delay = move_delay + tickcomp
if(istype(mob.buckled, /obj/vehicle))
//manually set move_delay for vehicles so we dont inherit any mob movement penalties
move_delay = world.time + mob.movement_delay() + 1 + config.run_speed + tickcomp
//manually set move_delay for vehicles so we don't inherit any mob movement penalties
//specific vehicle move delays are set in code\modules\vehicles\vehicle.dm
move_delay = world.time + tickcomp
//drunk driving
if(mob.confused)
direct = pick(cardinal)
return mob.buckled.relaymove(mob,direct)
if(istype(mob.machine, /obj/machinery))
@@ -289,6 +293,9 @@
var/datum/organ/external/r_hand = driver.get_organ("r_hand")
if((!l_hand || (l_hand.status & ORGAN_DESTROYED)) && (!r_hand || (r_hand.status & ORGAN_DESTROYED)))
return // No hands to drive your chair? Tough luck!
//drunk wheelchair driving
if(mob.confused)
direct = pick(cardinal)
move_delay += 2
return mob.buckled.relaymove(mob,direct)