Client LuaCsForBarotrauma
AbilityConditionRagdolled.cs
1
using
System.Linq;
2
using
System.Xml.Linq;
3
4
namespace
Barotrauma.Abilities
5
{
6
class
AbilityConditionRagdolled
:
AbilityConditionDataless
7
{
8
9
public
AbilityConditionRagdolled
(
CharacterTalent
characterTalent
,
ContentXElement
conditionElement) : base(
characterTalent
, conditionElement)
10
{
11
}
12
13
protected
override
bool
MatchesConditionSpecific
()
14
{
15
// TODO: Should we only check whether the target is ragdolling here?
16
// Or should we use character.IsKnockedDown instead?
17
return
(
character
.
IsRagdolled
&& !
character
.
AnimController
.
IsHangingWithRope
) ||
character
.
Stun
> 0f ||
character
.
IsIncapacitated
;
18
}
19
}
20
}
Barotrauma.Abilities.AbilityConditionDataless
Definition:
AbilityConditionDataless.cs:4
Barotrauma.Abilities.AbilityCondition.character
Character character
Definition:
AbilityCondition.cs:9
Barotrauma.Abilities.AbilityCondition.characterTalent
CharacterTalent characterTalent
Definition:
AbilityCondition.cs:8
Barotrauma.Abilities.AbilityConditionRagdolled
Definition:
AbilityConditionRagdolled.cs:7
Barotrauma.Abilities.AbilityConditionRagdolled.AbilityConditionRagdolled
AbilityConditionRagdolled(CharacterTalent characterTalent, ContentXElement conditionElement)
Definition:
AbilityConditionRagdolled.cs:9
Barotrauma.Abilities.AbilityConditionRagdolled.MatchesConditionSpecific
override bool MatchesConditionSpecific()
Definition:
AbilityConditionRagdolled.cs:13
Barotrauma.Character.IsIncapacitated
bool IsIncapacitated
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:906
Barotrauma.Character.IsRagdolled
bool IsRagdolled
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:901
Barotrauma.Character.Stun
float? Stun
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:953
Barotrauma.Character.AnimController
readonly AnimController AnimController
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:406
Barotrauma.CharacterTalent
Definition:
CharacterTalent.cs:8
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.Ragdoll.IsHangingWithRope
bool IsHangingWithRope
Is hanging to something with a rope, so that can reel towards it. Currently only possible in water.
Definition:
BarotraumaShared/SharedSource/Characters/Animation/Ragdoll.cs:1946
Barotrauma.Abilities
Definition:
AbilityCondition.cs:5
Barotrauma
BarotraumaShared
SharedSource
Characters
Talents
Abilities
AbilityConditionals
AbilityConditionDataless
AbilityConditionRagdolled.cs
Generated by
1.9.1