Corrupt borg speech if they are damaged or low power (#35318)

* - Corrupt borg speech the more damaged they are
- Corrupt long borg messages if battery is low or empty

* twiddle values

* Remove RNG based loop, hardcode repeating values for p=0.25 up to 10 repeats.

* Make sure that DamagedSiliconAccentSystem is AFTER ReplacementAccentSystem

* add missing base initializer call

* use Entity<T> pattern for event listener and clarify default values

* Move corruption parameters to datafields

* Add datafields to enable and disable the two types of corruption, and add datafields to override damage values and charge levels to support entities that don't have damageable components or power cells.

* Use nullables for override values

* Move DamagedSiliconAccentComponent to Shared and make it networked

* Add DamagedSiliconAccent to cloning whitelist
This commit is contained in:
Quantum-cross
2025-03-14 11:31:09 -04:00
committed by GitHub
parent 50525a11be
commit fd59427cb5
4 changed files with 256 additions and 0 deletions

View File

@@ -156,6 +156,7 @@
sounds:
Unsexed: UnisexSilicon
screamAction: null
- type: DamagedSiliconAccent
- type: UnblockableSpeech
- type: FootstepModifier
footstepSoundCollection:

View File

@@ -32,6 +32,7 @@
- BackwardsAccent
- BarkAccent
- BleatingAccent
- DamagedSiliconAccent
- FrenchAccent
- GermanAccent
- LizardAccent