seperate Stealth and StealthOnMove (#12035)
This commit is contained in:
22
Content.Shared/Stealth/Components/StealthOnMoveComponent.cs
Normal file
22
Content.Shared/Stealth/Components/StealthOnMoveComponent.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace Content.Shared.Stealth.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// When added to an entity with stealth component, this component will change the visibility
|
||||
/// based on the entity's (lack of) movement.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class StealthOnMoveComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Rate that effects how fast an entity's visibility passively changes.
|
||||
/// </summary>
|
||||
[DataField("passiveVisibilityRate")]
|
||||
public readonly float PassiveVisibilityRate = -0.15f;
|
||||
|
||||
/// <summary>
|
||||
/// Rate for movement induced visibility changes. Scales with distance moved.
|
||||
/// </summary>
|
||||
[DataField("movementVisibilityRate")]
|
||||
public readonly float MovementVisibilityRate = 0.2f;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user