Limb

Barotrauma.Limb

Functions

AddDamage(simPosition, damage, bleedingDamage, burnDamage, playSound)

AddDamage

Parameters

  • simPosition Microsoft.Xna.Framework.Vector2

  • damage number

  • bleedingDamage number

  • burnDamage number

  • playSound bool

Returns

  • AttackResult

AddDamage(simPosition, afflictions, playSound, damageMultiplier, penetration, attacker)

AddDamage

Parameters

  • simPosition Microsoft.Xna.Framework.Vector2

  • afflictions IEnumerable

  • playSound bool

  • damageMultiplier number

  • penetration number

  • attacker Character

Returns

  • AttackResult

ApplyStatusEffects(actionType, deltaTime)

ApplyStatusEffects

Parameters

  • actionType ActionType

  • deltaTime number

Draw(spriteBatch, cam, overrideColor, disableDeformations)

Draw

Parameters

  • spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

  • cam Camera

  • overrideColor optional Microsoft.Xna.Framework.Color

  • disableDeformations bool

DrawDamageModifiers(spriteBatch, cam, startPos, isScreenSpace)

DrawDamageModifiers

Parameters

  • spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

  • cam Camera

  • startPos Microsoft.Xna.Framework.Vector2

  • isScreenSpace bool

Equals(obj)

Equals

Parameters

  • obj Object

Returns

  • bool

ExecuteAttack(damageTarget, targetLimb, attackResult)

ExecuteAttack

Parameters

  • damageTarget IDamageable

  • attackResult AttackResult&

GetActiveSprite(excludeConditionalSprites)

GetActiveSprite

Parameters

  • excludeConditionalSprites bool

Returns

GetConnectedJoints()

GetConnectedJoints

Returns

  • IEnumerable

GetConnectedLimbs()

GetConnectedLimbs

Returns

  • IEnumerable

GetHashCode()

GetHashCode

Returns

  • number

GetType()

GetType

Returns

  • Type

HideAndDisable(duration, ignoreCollisions)

HideAndDisable

Parameters

  • duration number

  • ignoreCollisions bool

Limb(ragdoll, character, limbParams)

Limb

Parameters

  • ragdoll Ragdoll

  • character Character

  • limbParams LimbParams

Limb.GetSpritePath(texturePath, characterInfo)

GetSpritePath

Parameters

  • texturePath ContentPath

  • characterInfo CharacterInfo

Returns

LoadHerpesSprite()

LoadHerpesSprite

LoadHuskSprite()

LoadHuskSprite

LoadParams()

LoadParams

MirrorPullJoint()

MirrorPullJoint

MoveToPos(pos, force, pullFromCenter)

MoveToPos

Parameters

  • pos Microsoft.Xna.Framework.Vector2

  • force number

  • pullFromCenter bool

ReEnable()

ReEnable

RecreateSprites()

RecreateSprites

Release()

Release

Remove()

Remove

SectorHit(armorSector, simPosition)

SectorHit

Parameters

  • armorSector Microsoft.Xna.Framework.Vector2

  • simPosition Microsoft.Xna.Framework.Vector2

Returns

  • bool

ToString()

ToString

Returns

Update(deltaTime)

Update

Parameters

  • deltaTime number

UpdateAttack(deltaTime, attackSimPos, damageTarget, attackResult, distance, targetLimb)

UpdateAttack

Parameters

  • deltaTime number

  • attackSimPos Microsoft.Xna.Framework.Vector2

  • damageTarget IDamageable

  • attackResult AttackResult&

  • distance number

Returns

  • bool

UpdateWearableTypesToHide()

UpdateWearableTypesToHide

Fields

AIState

AIState, field of type AIState

  • AIState

ActiveDeformations

ActiveDeformations, field of type table

  • ActiveDeformations

ActiveSprite

ActiveSprite, field of type Sprite

  • ActiveSprite

Alpha

Alpha, field of type number

  • Alpha

AnimTargetPos

AnimTargetPos, field of type Microsoft.Xna.Framework.Vector2

  • AnimTargetPos

AttachedRope

AttachedRope, field of type Items.Components.Rope

  • AttachedRope

AttackPriority

AttackPriority, field of type number

  • AttackPriority

BlinkPhase

BlinkPhase, field of type number

  • BlinkPhase

BlinkTimer

BlinkTimer, field of type number

  • BlinkTimer

BurnOverlayStrength

BurnOverlayStrength, field of type number

  • BurnOverlayStrength

CanBeSeveredAlive

CanBeSeveredAlive, field of type bool

  • CanBeSeveredAlive

ConditionalSprites

ConditionalSprites, field of type table

  • ConditionalSprites

DamageModifiers

DamageModifiers, field of type table

  • DamageModifiers

DamageOverlayStrength

DamageOverlayStrength, field of type number

  • DamageOverlayStrength

DamagedSprite

DamagedSprite, field of type Sprite

  • DamagedSprite

DebugRefPos

DebugRefPos, field of type Microsoft.Xna.Framework.Vector2

  • DebugRefPos

DebugTargetPos

DebugTargetPos, field of type Microsoft.Xna.Framework.Vector2

  • DebugTargetPos

DecorativeSprites

DecorativeSprites, field of type table

  • DecorativeSprites

DefaultSpriteDepth

DefaultSpriteDepth, field of type number

  • DefaultSpriteDepth

DeformSprite

DeformSprite, field of type DeformableSprite

  • DeformSprite

Dir

Dir, field of type number

  • Dir

Disabled

Disabled, field of type bool

  • Disabled

DoesFlip

DoesFlip, field of type bool

  • DoesFlip

DoesMirror

DoesMirror, field of type bool

  • DoesMirror

DrawPosition

DrawPosition, field of type Microsoft.Xna.Framework.Vector2

  • DrawPosition

EnableHuskSprite

EnableHuskSprite, field of type bool

  • EnableHuskSprite

FreezeBlinkState

FreezeBlinkState, field of type bool

  • FreezeBlinkState

HairWithHatSprite

HairWithHatSprite, field of type WearableSprite

  • HairWithHatSprite

Health

Health, field of type number

  • Health

HealthIndex

HealthIndex, field of type number

  • HealthIndex

HealthPercentage

HealthPercentage, field of type number

  • HealthPercentage

HerpesSprite

HerpesSprite, field of type WearableSprite

  • HerpesSprite

Hidden

Hidden, field of type bool

  • Hidden

Hide

Hide, field of type bool

  • Hide

HitSoundTag

HitSoundTag, field of type string

  • HitSoundTag

Hull

Hull, field of type Hull

  • Hull

HuskMask

HuskMask, field of type Sprite

  • HuskMask

HuskSprite

HuskSprite, field of type WearableSprite

  • HuskSprite

IgnoreCollisions

IgnoreCollisions, field of type bool

  • IgnoreCollisions

InWater

InWater, field of type bool

  • InWater

InitialLightSourceColor

InitialLightSourceColor, field of type Microsoft.Xna.Framework.Color

  • InitialLightSourceColor

InitialLightSpriteAlpha

InitialLightSpriteAlpha, field of type ?Single

  • InitialLightSpriteAlpha

IsDead

IsDead, field of type bool

  • IsDead

IsFlipped

IsFlipped, field of type bool

  • IsFlipped

IsHuman

IsHuman, field of type bool

  • IsHuman

IsLeg

IsLeg, field of type bool

  • IsLeg

IsLowerBody

IsLowerBody, field of type bool

  • IsLowerBody

IsSevered

IsSevered, field of type bool

  • IsSevered

IsStuck

IsStuck, field of type bool

  • IsStuck

LastAttackSoundTime

LastAttackSoundTime, field of type number

  • LastAttackSoundTime

LastImpactSoundTime

LastImpactSoundTime, field of type number

  • LastImpactSoundTime

LightSource

LightSource, field of type Lights.LightSource

  • LightSource

Limb.SoundInterval

Limb.SoundInterval, field of type number

LinearVelocity

LinearVelocity, field of type Microsoft.Xna.Framework.Vector2

  • LinearVelocity

Mass

Mass, field of type number

  • Mass

MouthPos

MouthPos, field of type Microsoft.Xna.Framework.Vector2

  • MouthPos

Name

Name, field of type string

  • Name

OtherWearables

OtherWearables, field of type table

  • OtherWearables

Params

Params, field of type LimbParams

  • Params

Position

Position, field of type Microsoft.Xna.Framework.Vector2

  • Position

PullJointEnabled

PullJointEnabled, field of type bool

  • PullJointEnabled

PullJointLocalAnchorA

PullJointLocalAnchorA, field of type Microsoft.Xna.Framework.Vector2

  • PullJointLocalAnchorA

PullJointMaxForce

PullJointMaxForce, field of type number

  • PullJointMaxForce

PullJointWorldAnchorA

PullJointWorldAnchorA, field of type Microsoft.Xna.Framework.Vector2

  • PullJointWorldAnchorA

PullJointWorldAnchorB

PullJointWorldAnchorB, field of type Microsoft.Xna.Framework.Vector2

  • PullJointWorldAnchorB

RefJointIndex

RefJointIndex, field of type number

  • RefJointIndex

Removed

Removed, field of type bool

  • Removed

Rotation

Rotation, field of type number

  • Rotation

Scale

Scale, field of type number

  • Scale

SerializableProperties

SerializableProperties, field of type table

  • SerializableProperties

SeveredFadeOutTime

SeveredFadeOutTime, field of type number

  • SeveredFadeOutTime

SimPosition

SimPosition, field of type Microsoft.Xna.Framework.Vector2

  • SimPosition

Sprite

Sprite, field of type Sprite

  • Sprite

StatusEffects

StatusEffects, field of type table

  • StatusEffects

SteerForce

SteerForce, field of type number

  • SteerForce

StepOffset

StepOffset, field of type Microsoft.Xna.Framework.Vector2

  • StepOffset

Submarine

Submarine, field of type Submarine

  • Submarine

TextureScale

TextureScale, field of type number

  • TextureScale

TintHighlightMultiplier

TintHighlightMultiplier, field of type number

  • TintHighlightMultiplier

TintHighlightThreshold

TintHighlightThreshold, field of type number

  • TintHighlightThreshold

TintMask

TintMask, field of type Sprite

  • TintMask

WearingItems

WearingItems, field of type table

  • WearingItems

WorldPosition

WorldPosition, field of type Microsoft.Xna.Framework.Vector2

  • WorldPosition

attack

attack, field of type Attack

  • attack

body

body, field of type PhysicsBody

  • body

character

character, field of type Character

  • character

ragdoll

ragdoll, field of type Ragdoll

  • ragdoll

type

type, field of type LimbType

  • type