Predict Flashes #37640

DamagedByFlashingComponent, FlashImmunityComponent were moved to Content.Shared.Flash.Components.
FlashComponent now uses TimeSpans for the durations and some datafields were changed.
The cooldown for FlashComponent is no longer hardcoded to 4 seconds, but uses a use delay. Make sure to add a UseDelayComponent to prevent spamming it.
Flash and FlashArea had their duration parameters changed to use TimeSpans.
AfterFlashedEvent is now always raised on the user, the target and the flash, not only when used in a melee attack. A Melee bool was added to account for that.
FlashVisuals was split up into FlashVisuals and FlashVisualLayers.

1 Like