Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
ComponentAnimalBleeding Class Reference
Inheritance diagram for ComponentAnimalBleeding:
Component

Protected Member Functions

void ComponentAnimalBleeding ()
void Bleed (float wound_intensity)
void CreateWound (TotalDamageResult damage_result, string zone_name, string ammo)
float GetWoundIntensity (float bleed_treshold)
void InflictWoundDamage (TotalDamageResult damage_result, string zone_name, string ammo)

Protected Attributes

const float BASE_BLEED_RATE = 250
ref Timer m_BleedTimer
const float PASS_OUT_AMOUT = 500

Additional Inherited Members

Private Member Functions inherited from Component
void DebugBBoxDelete ()
override void DebugBBoxDelete ()
Shape DebugBBoxDraw ()
override Shape DebugBBoxDraw ()
void DebugBBoxSetColor (int color)
override void DebugBBoxSetColor (int color)
void DebugDirectionDelete ()
override void DebugDirectionDelete ()
Shape DebugDirectionDraw (float distance=1)
override Shape DebugDirectionDraw (float distance=1)
void DebugDirectionSetColor (int color)
void Event_OnAwake ()
void Event_OnFrame (IEntity other, float timeSlice)
void Event_OnInit ()
void Event_OnItemAttached (EntityAI item, string slot_name)
void Event_OnItemDetached (EntityAI item, string slot_name)
string GetCompName ()
int GetCompType ()
void LogThis (string msg, string fnc_name="n/a")
void LogThisError (string msg, string fnc_name="n/a")
void LogThisWarning (string msg, string fnc_name="n/a")
void OnDrawing ()
void SetParentEntityAI (EntityAI e)
Static Private Member Functions inherited from Component
static string GetNameByType (int comp_type)
static void Init ()
static bool IsTypeExist (int comp_type)
static void LogErrorBadCompType (int comp_type, string fnc_name)
static void LogWarningAlredyExist (int comp_type, string fnc_name)
Private Attributes inherited from Component
Shape m_DebugShapeBBox
Shape m_DebugShapeDirection
float m_DebugShapeDirectionDist
EntityAI m_ThisEntityAI

Detailed Description

Definition at line 8 of file componentanimalbleeding.c.

Constructor & Destructor Documentation

◆ ComponentAnimalBleeding()

void ComponentAnimalBleeding ( )
inlineprotected

Definition at line 16 of file componentanimalbleeding.c.

Member Function Documentation

◆ Bleed()

void Bleed ( float wound_intensity)
inlineprotected

◆ CreateWound()

void CreateWound ( TotalDamageResult damage_result,
string zone_name,
string ammo )
inlineprotected

◆ GetWoundIntensity()

float GetWoundIntensity ( float bleed_treshold)
inlineprotected

Definition at line 111 of file componentanimalbleeding.c.

Referenced by CreateWound().

◆ InflictWoundDamage()

void InflictWoundDamage ( TotalDamageResult damage_result,
string zone_name,
string ammo )
inlineprotected

Definition at line 21 of file componentanimalbleeding.c.

References TotalDamageResult::GetDamage(), and Component::m_ThisEntityAI.

Referenced by CreateWound().

Field Documentation

◆ BASE_BLEED_RATE

const float BASE_BLEED_RATE = 250
protected

Definition at line 12 of file componentanimalbleeding.c.

Referenced by Bleed().

◆ m_BleedTimer

ref Timer m_BleedTimer
protected

Definition at line 11 of file componentanimalbleeding.c.

Referenced by Bleed(), and CreateWound().

◆ PASS_OUT_AMOUT

const float PASS_OUT_AMOUT = 500
protected

Definition at line 13 of file componentanimalbleeding.c.

Referenced by Bleed().


The documentation for this class was generated from the following file: