From d81ef4575c838ad2bc7fd87c59031e1ffbb2f773 Mon Sep 17 00:00:00 2001 From: Heroman Date: Sun, 11 Dec 2022 08:41:24 +1000 Subject: [PATCH] re-enables old rover --- code/modules/vehicles/rover_vr.dm | 7 ++++--- vorestation.dme | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/vehicles/rover_vr.dm b/code/modules/vehicles/rover_vr.dm index fd831014e7..1662382008 100644 --- a/code/modules/vehicles/rover_vr.dm +++ b/code/modules/vehicles/rover_vr.dm @@ -100,8 +100,9 @@ //cargo trains are open topped, so there is a chance the projectile will hit the mob ridding the train instead /obj/vehicle/train/rover/bullet_act(var/obj/item/projectile/Proj) - if(buckled_mob && prob(70)) - buckled_mob.bullet_act(Proj) + if(has_buckled_mobs() && prob(70)) + var/mob/living/L = pick(buckled_mobs) + L.bullet_act(Proj) return ..() @@ -299,7 +300,7 @@ return ..() /obj/vehicle/train/rover/engine/unload(var/mob/user, var/direction) - var/mob/living/carbon/human/C = load + var/mob/living/carbon/human/C = load if(ismob(load)) diff --git a/vorestation.dme b/vorestation.dme index d2e071e791..22930562c9 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -3983,6 +3983,7 @@ #include "code\modules\vehicles\cargo_train.dm" #include "code\modules\vehicles\construction.dm" #include "code\modules\vehicles\quad.dm" +#include "code\modules\vehicles\rover_vr.dm" #include "code\modules\vehicles\snowmobile.dm" #include "code\modules\vehicles\train.dm" #include "code\modules\vehicles\vehicle.dm"