Client LuaCsForBarotrauma
AbilityConditionRunning.cs
1 
2 using System.Xml.Linq;
3 
4 namespace Barotrauma.Abilities
5 {
7  {
8  public AbilityConditionRunning(CharacterTalent characterTalent, ContentXElement conditionElement) : base(characterTalent, conditionElement) { }
9 
10  protected override bool MatchesConditionSpecific()
11  {
12  return character.AnimController is HumanoidAnimController animController && animController.IsMovingFast;
13  }
14  }
15 }
AbilityConditionRunning(CharacterTalent characterTalent, ContentXElement conditionElement)
bool IsMovingFast
Note: Presupposes that the slow speed is lower than the high speed. Otherwise will give invalid resul...