Client LuaCsForBarotrauma
AbilityConditionHasVelocity.cs
1 namespace Barotrauma.Abilities
2 {
4  {
5  private readonly float velocity;
6 
8  {
9  velocity = conditionElement.GetAttributeFloat("velocity", 0f);
10  }
11 
12  protected override bool MatchesConditionSpecific()
13  {
14  return character.AnimController.Collider.LinearVelocity.LengthSquared() > velocity * velocity;
15  }
16  }
17 }
AbilityConditionHasVelocity(CharacterTalent characterTalent, ContentXElement conditionElement)
float GetAttributeFloat(string key, float def)