Crawling Fixes 1: Dragons and Borgs can't do the worm. (#39084)
* Init Commit * Remove unused code, fix stun visuals bug * Update Content.Shared/Stunnable/SharedStunSystem.cs * Some initial changes * first batch of changes * Commit * One line cleanup * KnockdownStatusEffect ain't worth it. * Fix 2 bugs * Fixes * Remove that actually, * Commit * Better solution * Alright final commit I think * Add better remarks * How the fuck did this not get pushed??? * Wait no why was my ryder trying to push that??? I didn't make that change! DON'T DO THAT!!! * Review * Don't log that --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4e29107c89
commit
55335cce0f
40
Content.Shared/Stunnable/CrawlerComponent.cs
Normal file
40
Content.Shared/Stunnable/CrawlerComponent.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Stunnable;
|
||||
|
||||
/// <summary>
|
||||
/// This is used to denote that an entity can crawl.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(SharedStunSystem))]
|
||||
public sealed partial class CrawlerComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Default time we will be knocked down for.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public TimeSpan DefaultKnockedDuration { get; set; } = TimeSpan.FromSeconds(0.5);
|
||||
|
||||
/// <summary>
|
||||
/// Minimum damage taken to extend our knockdown timer by the default time.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public float KnockdownDamageThreshold = 5f;
|
||||
|
||||
/// <summary>
|
||||
/// Time it takes us to stand up
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public TimeSpan StandTime = TimeSpan.FromSeconds(2);
|
||||
|
||||
/// <summary>
|
||||
/// Base modifier to the maximum movement speed of a knocked down mover.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public float SpeedModifier = 0.4f;
|
||||
|
||||
/// <summary>
|
||||
/// Friction modifier applied to an entity in the downed state.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public float FrictionModifier = 1f;
|
||||
}
|
||||
Reference in New Issue
Block a user