Update _vehicle.dm

This commit is contained in:
silicons
2020-08-16 18:49:49 -07:00
committed by GitHub
parent 89b71ddfc5
commit b8686ab0f9

View File

@@ -169,7 +169,7 @@
step(trailer, dir_to_move)
/obj/vehicle/bullet_act(obj/item/projectile/Proj) //wrapper
if (!enclosed && occupants && !Proj.force_hit && (Proj.def_zone == BODY_ZONE_HEAD || Proj.def_zone == BODY_ZONE_CHEST)) //allows bullets to hit drivers
if (!enclosed && length(occupants) && !Proj.force_hit && (Proj.def_zone == BODY_ZONE_HEAD || Proj.def_zone == BODY_ZONE_CHEST)) //allows bullets to hit drivers
occupants[1].bullet_act(Proj) // driver dinkage
return BULLET_ACT_HIT
. = ..()