Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
dayzplayerimplementfalldamage.c File Reference

Go to the source code of this file.

Data Structures

class  FallDamageData

Functions

void AttachBleedingToZonesByHeight (notnull PlayerBase pPlayer)
void DamageAttachedGear (notnull PlayerBase pPlayer)
float DamageCoef (float pHeight)
void DayZPlayerImplementFallDamage (DayZPlayer pPlayer)
float GetHeight ()
int GetLandType ()
void HandleFallDamage (FallDamageData pData)
void HandleFallDamage (float pHeight)
float Randomize (int pType, float pValue)

Variables

const float BLEEDING_CHANCE_HEIGHT_HIGH = 15
const float BLEEDING_CHANCE_HEIGHT_LOW = 3
static const string BLEEDING_FEET_SELECTIONS [2] = {"LeftFoot", "RightFoot"}
static const string BLEEDING_HANDS_SELECTIONS [2] = {"LeftForeArmRoll", "RightForeArmRoll"}
static const string BLEEDING_LEGS_SELECTIONS [2] = {"LeftLeg", "RightLeg"}
const float BLEEDINGFEET_HEIGHT_LOW = 3
const float BLEEDINGHANDS_HEIGHT_LOW = 5
const float BLEEDINGLEGS_HEIGHT_LOW = 10
static const float BROKENLEGS_HEALTH_DAMAGE_MAX = 125
const float BROKENLEGS_HEIGHT_HIGH = 9
const float BROKENLEGS_HEIGHT_LOW = 5
const int DAMAGE_TYPE_ATTACHMENTS = 2
const int DAMAGE_TYPE_GLOBAL = 0
const int DAMAGE_TYPE_LEGS = 1
class FallDamageData FALL_DAMAGE_AMMO_HEALTH = "FallDamageHealth"
static const string FALL_DAMAGE_AMMO_HEALTH_ATTACHMENT = "FallDamageHealthAttachment"
static const string FALL_DAMAGE_AMMO_HEALTH_OTHER_ATTACHMENTS = "FallDamageHealthOtherAttachments"
static const string FALL_DAMAGE_AMMO_SHOCK = "FallDamageShock"
const string FD_AMMO = "FallDamage"
 DEPRECATED.
const float FD_DMG_FROM_HEIGHT = 2.5
 damage will not be taken into account bellow this HeightToDamage
const float FD_MAX_DMG_AT_HEIGHT = 15
 height where player gets 100% damage
const float FD_MAX_HEIGHT_LEG_BREAK = 8
 height where legs break most of the time
const float GLOVES_HEALTH_HEIGHT_HIGH = 15
const float GLOVES_HEALTH_HEIGHT_LOW = 5
const float HEALTH_HEIGHT_HIGH = 14
const float HEALTH_HEIGHT_LOW = 5
ref FallDamageData m_FallDamageData
DayZPlayer m_Player
const float PANTS_HEALTH_HEIGHT_HIGH = 16
const float PANTS_HEALTH_HEIGHT_LOW = 5
const float RANDOM_THRESHOLD_ATTACHMENTS_HIGH = 0.2
const float RANDOM_THRESHOLD_ATTACHMENTS_LOW = 0
const float RANDOM_THRESHOLD_HEALTH_HIGH = 0.1
const float RANDOM_THRESHOLD_HEALTH_LOW = 0.05
const float RANDOM_THRESHOLD_LEGS_HIGH = 0.1
const float RANDOM_THRESHOLD_LEGS_LOW = 0.05
const float SHOCK_HEIGHT_HIGH = 12
const float SHOCK_HEIGHT_LOW = 3
const float SHOES_HEALTH_HEIGHT_HIGH = 15
const float SHOES_HEALTH_HEIGHT_LOW = 2

Function Documentation

◆ AttachBleedingToZonesByHeight()

◆ DamageAttachedGear()

void DamageAttachedGear ( notnull PlayerBase pPlayer)
private

◆ DamageCoef()

float DamageCoef ( float pHeight)
private

◆ DayZPlayerImplementFallDamage()

void DayZPlayerImplementFallDamage ( DayZPlayer pPlayer)
private

◆ GetHeight()

float GetHeight ( )
private

Definition at line 83 of file dayzplayerimplementfalldamage.c.

References m_FallDamageData.

◆ GetLandType()

int GetLandType ( )
private

Definition at line 88 of file dayzplayerimplementfalldamage.c.

References m_FallDamageData.

◆ HandleFallDamage() [1/2]

◆ HandleFallDamage() [2/2]

void HandleFallDamage ( float pHeight)
private

◆ Randomize()

Variable Documentation

◆ BLEEDING_CHANCE_HEIGHT_HIGH

const float BLEEDING_CHANCE_HEIGHT_HIGH = 15
private

Definition at line 53 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ BLEEDING_CHANCE_HEIGHT_LOW

const float BLEEDING_CHANCE_HEIGHT_LOW = 3
private

Definition at line 52 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ BLEEDING_FEET_SELECTIONS

const string BLEEDING_FEET_SELECTIONS[2] = {"LeftFoot", "RightFoot"}
staticprivate

Definition at line 58 of file dayzplayerimplementfalldamage.c.

Referenced by AttachBleedingToZonesByHeight().

◆ BLEEDING_HANDS_SELECTIONS

const string BLEEDING_HANDS_SELECTIONS[2] = {"LeftForeArmRoll", "RightForeArmRoll"}
staticprivate

Definition at line 57 of file dayzplayerimplementfalldamage.c.

Referenced by AttachBleedingToZonesByHeight().

◆ BLEEDING_LEGS_SELECTIONS

const string BLEEDING_LEGS_SELECTIONS[2] = {"LeftLeg", "RightLeg"}
staticprivate

Definition at line 59 of file dayzplayerimplementfalldamage.c.

Referenced by AttachBleedingToZonesByHeight().

◆ BLEEDINGFEET_HEIGHT_LOW

const float BLEEDINGFEET_HEIGHT_LOW = 3
private

Definition at line 42 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ BLEEDINGHANDS_HEIGHT_LOW

const float BLEEDINGHANDS_HEIGHT_LOW = 5
private

Definition at line 41 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ BLEEDINGLEGS_HEIGHT_LOW

const float BLEEDINGLEGS_HEIGHT_LOW = 10
private

Definition at line 43 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ BROKENLEGS_HEALTH_DAMAGE_MAX

const float BROKENLEGS_HEALTH_DAMAGE_MAX = 125
staticprivate

Definition at line 55 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ BROKENLEGS_HEIGHT_HIGH

const float BROKENLEGS_HEIGHT_HIGH = 9
private

Definition at line 32 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ BROKENLEGS_HEIGHT_LOW

const float BROKENLEGS_HEIGHT_LOW = 5
private

Definition at line 31 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ DAMAGE_TYPE_ATTACHMENTS

const int DAMAGE_TYPE_ATTACHMENTS = 2
private

Definition at line 63 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage(), and Randomize().

◆ DAMAGE_TYPE_GLOBAL

const int DAMAGE_TYPE_GLOBAL = 0
private

Definition at line 61 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage(), and Randomize().

◆ DAMAGE_TYPE_LEGS

const int DAMAGE_TYPE_LEGS = 1
private

Definition at line 62 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage(), and Randomize().

◆ FALL_DAMAGE_AMMO_HEALTH

class FallDamageData FALL_DAMAGE_AMMO_HEALTH = "FallDamageHealth"

Referenced by HandleFallDamage().

◆ FALL_DAMAGE_AMMO_HEALTH_ATTACHMENT

const string FALL_DAMAGE_AMMO_HEALTH_ATTACHMENT = "FallDamageHealthAttachment"
static

Definition at line 23 of file dayzplayerimplementfalldamage.c.

Referenced by DamageAttachedGear().

◆ FALL_DAMAGE_AMMO_HEALTH_OTHER_ATTACHMENTS

const string FALL_DAMAGE_AMMO_HEALTH_OTHER_ATTACHMENTS = "FallDamageHealthOtherAttachments"
static

Definition at line 24 of file dayzplayerimplementfalldamage.c.

Referenced by DamageAttachedGear().

◆ FALL_DAMAGE_AMMO_SHOCK

const string FALL_DAMAGE_AMMO_SHOCK = "FallDamageShock"
static

Definition at line 21 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ FD_AMMO

const string FD_AMMO = "FallDamage"
private

DEPRECATED.

ammo type used for damaging

Definition at line 323 of file dayzplayerimplementfalldamage.c.

◆ FD_DMG_FROM_HEIGHT

const float FD_DMG_FROM_HEIGHT = 2.5
private

damage will not be taken into account bellow this HeightToDamage

Definition at line 324 of file dayzplayerimplementfalldamage.c.

◆ FD_MAX_DMG_AT_HEIGHT

const float FD_MAX_DMG_AT_HEIGHT = 15
private

height where player gets 100% damage

Definition at line 325 of file dayzplayerimplementfalldamage.c.

◆ FD_MAX_HEIGHT_LEG_BREAK

const float FD_MAX_HEIGHT_LEG_BREAK = 8
private

height where legs break most of the time

Definition at line 326 of file dayzplayerimplementfalldamage.c.

◆ GLOVES_HEALTH_HEIGHT_HIGH

const float GLOVES_HEALTH_HEIGHT_HIGH = 15
private

Definition at line 35 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ GLOVES_HEALTH_HEIGHT_LOW

const float GLOVES_HEALTH_HEIGHT_LOW = 5
private

Definition at line 34 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ HEALTH_HEIGHT_HIGH

const float HEALTH_HEIGHT_HIGH = 14

Definition at line 27 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ HEALTH_HEIGHT_LOW

const float HEALTH_HEIGHT_LOW = 5

Definition at line 26 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ m_FallDamageData

◆ m_Player

Definition at line 65 of file dayzplayerimplementfalldamage.c.

◆ PANTS_HEALTH_HEIGHT_HIGH

const float PANTS_HEALTH_HEIGHT_HIGH = 16
private

Definition at line 39 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ PANTS_HEALTH_HEIGHT_LOW

const float PANTS_HEALTH_HEIGHT_LOW = 5
private

Definition at line 38 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ RANDOM_THRESHOLD_ATTACHMENTS_HIGH

const float RANDOM_THRESHOLD_ATTACHMENTS_HIGH = 0.2
private

Definition at line 50 of file dayzplayerimplementfalldamage.c.

Referenced by Randomize().

◆ RANDOM_THRESHOLD_ATTACHMENTS_LOW

const float RANDOM_THRESHOLD_ATTACHMENTS_LOW = 0
private

Definition at line 49 of file dayzplayerimplementfalldamage.c.

Referenced by Randomize().

◆ RANDOM_THRESHOLD_HEALTH_HIGH

const float RANDOM_THRESHOLD_HEALTH_HIGH = 0.1
private

Definition at line 46 of file dayzplayerimplementfalldamage.c.

Referenced by Randomize().

◆ RANDOM_THRESHOLD_HEALTH_LOW

const float RANDOM_THRESHOLD_HEALTH_LOW = 0.05
private

Definition at line 45 of file dayzplayerimplementfalldamage.c.

Referenced by Randomize().

◆ RANDOM_THRESHOLD_LEGS_HIGH

const float RANDOM_THRESHOLD_LEGS_HIGH = 0.1
private

Definition at line 48 of file dayzplayerimplementfalldamage.c.

Referenced by Randomize().

◆ RANDOM_THRESHOLD_LEGS_LOW

const float RANDOM_THRESHOLD_LEGS_LOW = 0.05
private

Definition at line 47 of file dayzplayerimplementfalldamage.c.

Referenced by Randomize().

◆ SHOCK_HEIGHT_HIGH

const float SHOCK_HEIGHT_HIGH = 12
private

Definition at line 30 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ SHOCK_HEIGHT_LOW

const float SHOCK_HEIGHT_LOW = 3
private

Definition at line 29 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ SHOES_HEALTH_HEIGHT_HIGH

const float SHOES_HEALTH_HEIGHT_HIGH = 15
private

Definition at line 37 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().

◆ SHOES_HEALTH_HEIGHT_LOW

const float SHOES_HEALTH_HEIGHT_LOW = 2
private

Definition at line 36 of file dayzplayerimplementfalldamage.c.

Referenced by HandleFallDamage().