Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

UM-032 - Forklift Adjustments #178

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion code/obj/vehicle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1951,7 +1951,7 @@ obj/vehicle/clowncar/proc/log_me(var/mob/rider, var/mob/pax, var/action = "", va
return
switch(M.a_intent)
if("harm", "disarm")
if(prob(40))
if(prob(40) || rider.stat)
playsound(src.loc, "sound/weapons/thudswoosh.ogg", 50, 1, -1)
src.visible_message("<span style=\"color:red\"><B>[M] has shoved [rider] off of [src]!</B></span>")
rider.weakened = 2
Expand Down Expand Up @@ -2024,6 +2024,10 @@ obj/vehicle/forklift/attackby(var/obj/item/I, var/mob/user)
broken = 0
if (helditems_maximum < 4)
helditems_maximum = 4

if(rider && rider_visible && I.force)
I.attack(rider, user)
I.visible_message("[user] swings at [rider] with [I]!</B></span>")
return

/obj/vehicle/forklift/proc/break_forklift()
Expand Down Expand Up @@ -2073,3 +2077,10 @@ obj/vehicle/forklift/attackby(var/obj/item/I, var/mob/user)
else
src.icon_state = "forklift"
src.underlays = null

/obj/vehicle/forklift/bullet_act(flag, A as obj)
if(rider && rider_visible)
rider.bullet_act(flag, A)
else
..()
return