Hazardous Area Component | Free Golem Soft-Restriction (#65720)

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
Zephyr
2022-03-28 17:49:50 -04:00
committed by GitHub
parent 7b5619f29f
commit a00df2ed76
10 changed files with 159 additions and 0 deletions
+5
View File
@@ -58,6 +58,11 @@
/obj/vehicle/ridden/buckle_mob(mob/living/M, force = FALSE, check_loc = TRUE)
if(!force && occupant_amount() >= max_occupants)
return FALSE
var/response = SEND_SIGNAL(M, COMSIG_VEHICLE_RIDDEN, src)
if(response & EJECT_FROM_VEHICLE)
return FALSE
return ..()
/obj/vehicle/ridden/zap_act(power, zap_flags)