Commit Graph

7 Commits

Author SHA1 Message Date
RedFoxIV
17ea2b7853 EE - Power Supply and Load Stuff (#1033)
* Power Supply and Load Stuff (#2505)

# Description

Changes how `ApcPowerReceiverComponent` works a bit.
Separated the `Load` variable into main and side power loads.
If main power demand is not met, the machine is considered unpowered.
Side power demand is "optional", as can be met only partially (or not at
all) and the device will continue to operate.
Depending on the device, this may have different negative effects on its
operaton. such as lights dimming and weapon rechargers not charging at
full speed.

This was first intended to fix an annoying bug with `ChargerComponent`
and `ApcPowerReceiverBatteryComponent`, that made the powernet spaz out
for a while if their power demand was too high.
This is now fixed.

---

<details><summary><h1>Media</h1></summary>
<p>

<details><summary>Before (heavy flashing lights)</summary>
<p>


https://github.com/user-attachments/assets/de7fb84f-54d0-4c8a-ba9e-7a97e8489980

</p>
</details>

<details><summary>After</summary>
<p>


https://github.com/user-attachments/assets/9cece608-24f7-4ec9-95cd-0c719c7beddb

</p>
</details>

</p>
</details>

---

# Changelog

🆑
- fix: Chargers and energy turrets no longer make the lights flash
rapidly if their power draw is too high
- add: Lights dim if the powernet they're connected to is overloaded

* больно много жрёт

---------

Co-authored-by: VMSolidus <evilexecutive@gmail.com>
2026-01-18 00:39:43 +03:00
pathetic meowmeow
6589eee86c Refactor audio system to send collection IDs over the network (#33610)
(cherry picked from commit fabfdd06736ad54093c60d3114b083ebc7ae49fd)
2025-09-27 12:25:30 +03:00
Kara
169a7cae2b Powered light sprite glows with color of their pointlight (#24612)
(cherry picked from commit 4ab69709fe38c93ea4617a21ca93c21a756b48d6)
2024-01-28 00:33:54 +01:00
deathride58
f100a9d414 Glowy lights - light fixtures now actually glow (#23428)
* glowy lights - makes light fixtures actually physically glow when active

* serviced the lights

* ya sure

(cherry picked from commit 1a531342c5c8b2860054f79479b02c8083f3b5d0)
2024-01-26 21:27:53 +01:00
metalgearsloth
b1ee2d48ff Unrevert audio (#21330)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
2023-12-02 20:16:36 +01:00
Leon Friedrich
af90f6648e Fix light animations (#20263) 2023-09-27 21:59:12 +02:00
TemporalOroboros
6b381f7304 Resolve PoweredLightVisualizer is Obsolete (#13891) 2023-02-16 00:10:41 -04:00