mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-18 11:44:05 +01:00
[MIRROR] Logs buildmode (#12703)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
0c9546606f
commit
5b9f62e5b9
@@ -7,13 +7,16 @@
|
||||
unacidable = TRUE
|
||||
var/falling_type = /obj/item/reagent_containers/food/snacks/sliceable/pizza/margherita
|
||||
var/crushing = TRUE
|
||||
var/admin_spawned = FALSE
|
||||
|
||||
/obj/effect/falling_effect/Initialize(mapload, type, var/crushing_type)
|
||||
/obj/effect/falling_effect/Initialize(mapload, type, crushing_type, admin_spawned = FALSE)
|
||||
..()
|
||||
if(!isnull(crushing_type))
|
||||
crushing = crushing_type
|
||||
if(type)
|
||||
falling_type = type
|
||||
if(admin_spawned)
|
||||
src.admin_spawned = admin_spawned
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
|
||||
/obj/effect/falling_effect/LateInitialize()
|
||||
@@ -27,6 +30,8 @@
|
||||
dropped.pixel_y = 500 // When you think that pixel_z is height but you are wrong
|
||||
dropped.density = FALSE
|
||||
dropped.opacity = FALSE
|
||||
if(admin_spawned)
|
||||
dropped.flags |= ADMIN_SPAWNED
|
||||
animate(dropped, pixel_y = initial_y, pixel_x = initial_x , time = 7)
|
||||
addtimer(CALLBACK(dropped, TYPE_PROC_REF(/atom/movable,end_fall), crushing), 0.7 SECONDS)
|
||||
qdel(src)
|
||||
|
||||
Reference in New Issue
Block a user