Predict Flashes (#37640)

Co-authored-by: ScarKy0 <scarky0@onet.eu>
This commit is contained in:
slarticodefast
2025-06-23 13:32:56 +02:00
committed by GitHub
parent 7e77ee0cd2
commit b83d00b792
23 changed files with 501 additions and 386 deletions

View File

@@ -0,0 +1,18 @@
using Content.Shared.Damage;
using Robust.Shared.GameStates;
namespace Content.Shared.Flash.Components;
/// <summary>
/// This entity will take damage from flashes.
/// </summary>
[RegisterComponent, NetworkedComponent]
[Access(typeof(DamagedByFlashingSystem))]
public sealed partial class DamagedByFlashingComponent : Component
{
/// <summary>
/// How much damage it will take.
/// </summary>
[DataField(required: true)]
public DamageSpecifier FlashDamage = new();
}