* Predict some power PowerReceiver stuff
Need it for some atmos device prediction.
* Also this
(cherry picked from commit 75a7407e33f328c230ad7309b0d1571a4f7f8256)
The TEG used to limit hot-cold energy transfer based on actual power drawn, and had maximum efficiency at whatever temperature difference. This PR adjusts the hot-cold energy transfer to be uncapped, "venting" the excess heat that is not used to generate power, and adds an efficiency curve that limits efficiency at low thermal temperatures.
People have been cheesing the TEG by hooking up the hot end to the CO2 miner (which produces infinite, room-temperature gas) and the cold end to a space radiator.
With this change, you will actually need to set up a burn chamber in order to get appreciable power out of the TEG (see below).
If you build a gas holding chamber, you will have to throttle the gas flowing into the TEG instead of constantly cycling the gas through over and over again.
(cherry picked from commit 6835e6b4aa40967ca7263a2ae8391a33ab2d0b2d)
A lot of BUIs aren't going to handle the state coming in cleanly but we can fix em as we find em.
(cherry picked from commit e4a5f2a1450d226bf281e46f1323f41213707bb6)
* Initial commit
* Clean-up
* Fix ftl, new damage
* ftl fix for real
* Updates based on feedback
* Child implant fix
* Make the UI only open when implanter is in draw mode
* Review fixes
* shunting
(cherry picked from commit 41c51e29052c16f092e6941f7e9ccfd14dfb3dae)
* Implements a Dynamic Lighting System on maps.
* Edit: the night should be a little bit brighter and blue now.
* Major edit: everything must be done on the client side now, with certain datafield replicated.
Changes were outlined in the salvage to accommodate the new lighting system.
* Edit: The offset is now serverside, this makes the time accurate in all situations.
* Removing ununsed import
* Minor tweaks
* Tweak in time precision
* Minor tweak + Unused import removed
* Edit: apparently RealTime is better for what I'm looking for
* Fix: Now the time is calculated correctly.
* Minor tweaks
* Adds condition for when the light should be updated
* Add planet lighting
* she
* close-ish
* c
* bittersweat
* Fixes
* Revert "Merge branch '22719' into 2024-09-29-planet-lighting"
This reverts commit 9f2785bb16aee47d794aa3eed8ae15004f97fc35, reversing
changes made to 19649c07a5fb625423e08fc18d91c9cb101daa86.
* Europa and day-night
* weh
* rooves working
* Clean
* Remove Europa
* Fixes
* fix
* Update
* Fix caves
* Update for engine
* Add sun shadows (planet lighting v2)
For now mostly targeting walls and having the shadows change over time. Got the basic proof-of-concept working just needs a hell of a lot of polish.
* Documentation
* a
* Fixes
* Move blur to an overlay
* Slughands
* Fixes
* Apply RoofOverlay per-grid not per-map
* Fix light render scales
* sangas
* Juice it a bit
* Better angle
* Fixes
* Add color support
* Rounding bandaid
* Wehs
* Better
* Remember I forgot to do this when writing docs
---------
Co-authored-by: DoutorWhite <thedoctorwhite@gmail.com>
(cherry picked from commit f51b9bc86e3762476a450c24ff4d632118ea9c2d)
* Make minibomb explosion resistant and trigger timer on damage
* Tune damage behaviour and threshold for minibomb
(cherry picked from commit f22f9e39c5e9af1a8f622e12eb2f916b69c6be22)
* Fix the ability to shoot out of crates
* Makes it check what inventory the player is in
* use IsEntityOrParentInContainer
* Fix Issues Github had
* gaahhh... Prevents lasers from being shot out of crates
* gaahhh... Prevents lasers from being shot out of crates
* Fix laser?
* hmmm... this is better looking I think?
* Uncook indentation
* Rerun tests?
(cherry picked from commit 19a06b6cc0498fa59ffe7328df0f524f753968f4)
* cant disguise to thing in a container
* copy cigarette visualiser
* prevent aghost throwing an error
* make disguises die in space
* fuck it rewrite it to not use polymorph
* fix action troll
* oop
* add vebr
* add access to the components
* 2/3
* fix
* relay damage from disguise to user
* fix integrity
* :trollface:
* :trollface:
* m
* kill integrity
* fix a bug
* review
* remove them from component
* relay flash effect to the disguise
* fix icon being weird
* change method since multiple systems cant handle same network event
* :trollface:
* actually network Disguise real
---------
Co-authored-by: deltanedas <@deltanedas:kde.org>
(cherry picked from commit 80e148c265dc8602f50e3941dbd94bb396a1f5b5)
* Code cleanup for radio jammer
* More Entity<T> for the people, and fix an accidental variable reuse
(cherry picked from commit e33f0341ada2d8bd6ed4195ac3f0578b23e4ba8c)
* 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>