Files
Matt Atlas 94d92803b4 Replaces our lighting system with CM's. (#21465)
Depends on #21458.

Ports https://github.com/cmss13-devs/cmss13/pull/4229, with the original
authors as:

- https://github.com/tgstation/TerraGov-Marine-Corps/pull/1964 for the
lighting controller (A-lexa)
- https://github.com/tgstation/TerraGov-Marine-Corps/pull/4747 and
https://github.com/tgstation/TerraGov-Marine-Corps/pull/7263 for the
lighting (TiviPlus)
- https://github.com/tgstation/tgstation/pull/54520 for the dir lighting
component
- https://github.com/tgstation/tgstation/pull/75018 for the out of
bounds fix in lighting
- https://github.com/tgstation/TerraGov-Marine-Corps/pull/6678 for the
emissives (TiviPlus)

The main driving reason behind this is that current lighting consumes
way too much processing power, especially for things like odysseys/away
sites where a billion light sources are processing/moving at once and
the game slows down to a crawl. Hopefully this improves the situation by
a good margin, but we will need some testmerging to confirm that.
<img width="1349" height="1349" alt="image"
src="https://github.com/user-attachments/assets/1059ba2b-c0c5-495a-9c76-2d75d0c42bf2"
/>
<img width="1349" height="1349" alt="image"
src="https://github.com/user-attachments/assets/9704b0f6-4cf6-4dfd-a6cb-5702ad07d677"
/>


- [x] Resolve todos
- [x] Look into open space fuckery (border objects)

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
Co-authored-by: JohnWildkins <john.wildkins@gmail.com>
2025-11-04 21:27:42 +00:00

114 lines
4.4 KiB
Plaintext

/mob/living/heavy_vehicle/premade/combat
name = "combat exosuit"
desc = "A sleek, modern combat exosuit."
icon_state = "durand"
e_head = /obj/item/mech_component/sensors/combat
e_body = /obj/item/mech_component/chassis/combat/cell
e_arms = /obj/item/mech_component/manipulators/combat
e_legs = /obj/item/mech_component/propulsion/combat
e_color = COLOR_DARK_GUNMETAL
h_r_shoulder = /obj/item/mecha_equipment/mounted_system/combat/smg
h_l_shoulder = /obj/item/mecha_equipment/mounted_system/combat/smg
/obj/item/mech_component/manipulators/combat
name = "combat arms"
exosuit_desc_string = "flexible, advanced manipulators"
desc = "Extremely fast and responsive weapon mounts for combat mechas. These seem sturdy, but their short nature only permits access to shoulder-mounted weapons."
icon_state = "combat_arms"
melee_damage = 30
action_delay = 5
max_damage = 130
power_use = 2500
has_hardpoints = list(HARDPOINT_LEFT_SHOULDER, HARDPOINT_RIGHT_SHOULDER)
/obj/item/mech_component/propulsion/combat
name = "combat legs"
exosuit_desc_string = "sleek hydraulic legs"
desc = "Complex armor provides excellent protective coverage over the internals of these combat-oriented legs."
icon_state = "combat_legs"
move_delay = 3
turn_delay = 3
max_damage = 100
power_use = 2500
trample_damage = 35
/obj/item/mech_component/sensors/combat
name = "combat sensors"
gender = PLURAL
exosuit_desc_string = "high-resolution sensors"
desc = "A highly advanced cockpit with high-resolution thermal optics installed on its faces. Poorly armored with excellent situational awareness."
icon_state = "combat_head"
max_damage = 50
power_use = 50000
vision_flags = SEE_MOBS
lighting_alpha = LIGHTING_PLANE_ALPHA_SOMEWHAT_INVISIBLE
/obj/item/mech_component/sensors/combat/prebuild()
..()
software = new(src)
software.installed_software = list(MECH_SOFTWARE_WEAPONS, MECH_SOFTWARE_UTILITY)
/obj/item/mech_component/chassis/combat
name = "sealed exosuit chassis"
hatch_descriptor = "canopy"
pilot_coverage = 100
exosuit_desc_string = "an armored chassis"
desc = "A lightweight composite frame keeps the armor of this chassis respectable, but the interior spacious."
icon_state = "combat_body"
max_damage = 200
power_use = 250
transparent_cabin = TRUE
/obj/item/mech_component/chassis/combat/prebuild()
. = ..()
mech_armor = new /obj/item/robot_parts/robot_component/armor/mech/combat(src)
/obj/item/mech_component/chassis/combat/Initialize()
pilot_positions = list(
list(
"[NORTH]" = list("x" = 8, "y" = 8),
"[SOUTH]" = list("x" = 8, "y" = 8),
"[EAST]" = list("x" = 4, "y" = 8),
"[WEST]" = list("x" = 12, "y" = 8)
)
)
. = ..()
/obj/item/mech_component/chassis/combat/cell
cell_type = /obj/item/cell/mecha
/obj/item/mech_component/chassis/combat/nuclear
cell_type = /obj/item/cell/mecha/nuclear
/mob/living/heavy_vehicle/premade/combat/tcaf
name = "\improper Vigilance combat exosuit"
desc = "A heavy-duty combat exosuit manufactured by Zavodskoi Interstellar, and issued to the Tau Ceti Armed Forces."
e_head = /obj/item/mech_component/sensors/combat
e_body = /obj/item/mech_component/chassis/combat/nuclear
e_arms = /obj/item/mech_component/manipulators/heavy
e_legs = /obj/item/mech_component/propulsion/combat
e_color = COLOR_TCFL
h_l_shoulder = /obj/item/mecha_equipment/mounted_system/combat/grenadesmoke
h_r_shoulder = /obj/item/mecha_equipment/mounted_system/flarelauncher
h_l_hand = /obj/item/mecha_equipment/mounted_system/combat/blaster
h_r_hand = /obj/item/mecha_equipment/mounted_system/combat/gauss
h_head = /obj/item/mecha_equipment/light
/mob/living/heavy_vehicle/premade/combat/coalition
name = "\improper Vigilance-C combat exosuit"
desc = "A heavy combat exosuit manufactured by Zavodskoi Interstellar, licensed to and slightly modified by the All-Xanu Armed Forces. Used by proponents of the combined Coalition of Colonies military."
e_head = /obj/item/mech_component/sensors/combat
e_body = /obj/item/mech_component/chassis/combat/nuclear
e_arms = /obj/item/mech_component/manipulators/heavy
e_legs = /obj/item/mech_component/propulsion/combat
e_color = COLOR_COALITION
h_l_shoulder = /obj/item/mecha_equipment/mounted_system/combat/grenadestinger
h_r_shoulder = /obj/item/mecha_equipment/mounted_system/flarelauncher
h_l_hand = /obj/item/mecha_equipment/mounted_system/combat/blaster
h_r_hand = /obj/item/mecha_equipment/mounted_system/combat/gauss
h_back = /obj/item/mecha_equipment/quick_enter
h_head = /obj/item/mecha_equipment/light