mirror of
https://github.com/Skyrat-SS13/Skyrat-tg.git
synced 2026-08-24 13:27:32 +01:00
* FOV is Dead (Long Live FOV) * Update _megafauna.dm * Update _vehicle.dm * FOV Hotfix: Actually offsets gameplane render relays * removes redundant visual_shadow * removes GAME_PLANE_UPPER references * Update mob_movement.dm --------- Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
99 lines
2.7 KiB
Plaintext
99 lines
2.7 KiB
Plaintext
/obj/structure/chair/pew
|
|
name = "wooden pew"
|
|
desc = "Kneel here and pray."
|
|
icon = 'icons/obj/chairs_wide.dmi'
|
|
icon_state = "pewmiddle"
|
|
resistance_flags = FLAMMABLE
|
|
max_integrity = 70
|
|
buildstacktype = /obj/item/stack/sheet/mineral/wood
|
|
buildstackamount = 3
|
|
item_chair = null
|
|
|
|
///This proc adds the rotate component, overwrite this if you for some reason want to change some specific args.
|
|
/obj/structure/chair/pew/MakeRotate()
|
|
AddComponent(/datum/component/simple_rotation, ROTATION_REQUIRE_WRENCH|ROTATION_IGNORE_ANCHORED)
|
|
|
|
/obj/structure/chair/pew/left
|
|
name = "left wooden pew end"
|
|
icon_state = "pewend_left"
|
|
var/mutable_appearance/leftpewarmrest
|
|
|
|
/obj/structure/chair/pew/left/Initialize(mapload)
|
|
gen_armrest()
|
|
return ..()
|
|
|
|
/obj/structure/chair/pew/left/on_changed_z_level(turf/old_turf, turf/new_turf, same_z_layer, notify_contents)
|
|
if(same_z_layer)
|
|
return ..()
|
|
cut_overlay(leftpewarmrest)
|
|
QDEL_NULL(leftpewarmrest)
|
|
gen_armrest()
|
|
return ..()
|
|
|
|
/obj/structure/chair/pew/left/proc/gen_armrest()
|
|
leftpewarmrest = GetLeftPewArmrest()
|
|
leftpewarmrest.layer = ABOVE_MOB_LAYER
|
|
update_leftpewarmrest()
|
|
|
|
/obj/structure/chair/pew/left/proc/GetLeftPewArmrest()
|
|
return mutable_appearance('icons/obj/chairs_wide.dmi', "pewend_left_armrest")
|
|
|
|
/obj/structure/chair/pew/left/Destroy()
|
|
QDEL_NULL(leftpewarmrest)
|
|
return ..()
|
|
|
|
/obj/structure/chair/pew/left/post_buckle_mob(mob/living/M)
|
|
. = ..()
|
|
update_leftpewarmrest()
|
|
|
|
/obj/structure/chair/pew/left/proc/update_leftpewarmrest()
|
|
if(has_buckled_mobs())
|
|
add_overlay(leftpewarmrest)
|
|
else
|
|
cut_overlay(leftpewarmrest)
|
|
|
|
/obj/structure/chair/pew/left/post_unbuckle_mob()
|
|
. = ..()
|
|
update_leftpewarmrest()
|
|
|
|
/obj/structure/chair/pew/right
|
|
name = "right wooden pew end"
|
|
icon_state = "pewend_right"
|
|
var/mutable_appearance/rightpewarmrest
|
|
|
|
/obj/structure/chair/pew/right/Initialize(mapload)
|
|
gen_armrest()
|
|
return ..()
|
|
|
|
/obj/structure/chair/pew/right/on_changed_z_level(turf/old_turf, turf/new_turf, same_z_layer, notify_contents)
|
|
cut_overlay(rightpewarmrest)
|
|
QDEL_NULL(rightpewarmrest)
|
|
gen_armrest()
|
|
return ..()
|
|
|
|
/obj/structure/chair/pew/right/proc/gen_armrest()
|
|
rightpewarmrest = GetRightPewArmrest()
|
|
rightpewarmrest.layer = ABOVE_MOB_LAYER
|
|
update_rightpewarmrest()
|
|
|
|
/obj/structure/chair/pew/right/proc/GetRightPewArmrest()
|
|
return mutable_appearance('icons/obj/chairs_wide.dmi', "pewend_right_armrest")
|
|
|
|
/obj/structure/chair/pew/right/Destroy()
|
|
QDEL_NULL(rightpewarmrest)
|
|
return ..()
|
|
|
|
/obj/structure/chair/pew/right/post_buckle_mob(mob/living/M)
|
|
. = ..()
|
|
update_rightpewarmrest()
|
|
|
|
/obj/structure/chair/pew/right/proc/update_rightpewarmrest()
|
|
if(has_buckled_mobs())
|
|
add_overlay(rightpewarmrest)
|
|
else
|
|
cut_overlay(rightpewarmrest)
|
|
|
|
/obj/structure/chair/pew/right/post_unbuckle_mob()
|
|
. = ..()
|
|
update_rightpewarmrest()
|