Update car.dm
This commit is contained in:
@@ -76,11 +76,15 @@
|
|||||||
return FALSE
|
return FALSE
|
||||||
if(occupant_amount() >= max_occupants)
|
if(occupant_amount() >= max_occupants)
|
||||||
return FALSE
|
return FALSE
|
||||||
if(do_mob(forcer, get_enter_delay(M), target = src))
|
var/atom/old_loc = loc
|
||||||
|
if(do_mob(forcer, M, get_enter_delay(M), extra_checks=CALLBACK(src, /obj/vehicle/sealed/car/proc/is_car_stationary, old_loc)))
|
||||||
mob_forced_enter(M, silent)
|
mob_forced_enter(M, silent)
|
||||||
return TRUE
|
return TRUE
|
||||||
return FALSE
|
return FALSE
|
||||||
|
|
||||||
|
/obj/vehicle/sealed/car/proc/is_car_stationary(atom/old_loc)
|
||||||
|
return (old_loc == loc)
|
||||||
|
|
||||||
/obj/vehicle/sealed/car/proc/mob_forced_enter(mob/M, silent = FALSE)
|
/obj/vehicle/sealed/car/proc/mob_forced_enter(mob/M, silent = FALSE)
|
||||||
if(!silent)
|
if(!silent)
|
||||||
M.visible_message("<span class='warning'>[M] is forced into \the [src]!</span>")
|
M.visible_message("<span class='warning'>[M] is forced into \the [src]!</span>")
|
||||||
|
|||||||
Reference in New Issue
Block a user