Class MovespeedModifier
Default metabolism for stimulants and tranqs. Attempts to find a MovementSpeedModifier on the target,
adding one if not there and to change the movespeed
Inheritance
System.Object
MovespeedModifier
Assembly: Content.Server.dll
Syntax
public sealed class MovespeedModifier : ReagentEffect
Fields
|
Improve this Doc
View Source
StatusLifetime
How long the modifier applies (in seconds) when metabolized.
Declaration
public float StatusLifetime
Field Value
Type |
Description |
System.Single |
|
Properties
|
Improve this Doc
View Source
SprintSpeedModifier
How much the entities' run speed is multiplied by.
Declaration
public float SprintSpeedModifier { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
WalkSpeedModifier
How much the entities' walk speed is multiplied by.
Declaration
public float WalkSpeedModifier { get; set; }
Property Value
Type |
Description |
System.Single |
|
Methods
|
Improve this Doc
View Source
Effect(ReagentEffectArgs)
Remove reagent at set rate, changes the movespeed modifiers and adds a MovespeedModifierMetabolismComponent if not already there.
Declaration
public override void Effect(ReagentEffectArgs args)
Parameters
Type |
Name |
Description |
Content.Shared.Chemistry.Reagent.ReagentEffectArgs |
args |
|
|
Improve this Doc
View Source
IncreaseTimer(MovespeedModifierMetabolismComponent, Single)
Declaration
public void IncreaseTimer(MovespeedModifierMetabolismComponent status, float time)
Parameters
|
Improve this Doc
View Source
ReagentEffectGuidebookText(IPrototypeManager, IEntitySystemManager)
Declaration
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
Parameters
Type |
Name |
Description |
Robust.Shared.Prototypes.IPrototypeManager |
prototype |
|
IEntitySystemManager |
entSys |
|
Returns
Type |
Description |
System.Nullable<System.String> |
|