Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
dayzplayerimplementfalldamage.c File Reference

Go to the source code of this file.

Data Structures

class  FallDamageData
 

Functions

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

Variables

class FallDamageData FALL_DAMAGE_AMMO_HEALTH = "FallDamageHealth"
 
const float HEALTH_HEIGHT_LOW = 5
 
const float HEALTH_HEIGHT_HIGH = 14
 
const private float SHOCK_HEIGHT_LOW = 3
 
const private float SHOCK_HEIGHT_HIGH = 12
 
const private float BROKENLEGS_HEIGHT_LOW = 5
 
const private float BROKENLEGS_HEIGHT_HIGH = 9
 
const private float GLOVES_HEALTH_HEIGHT_LOW = 5
 
const private float GLOVES_HEALTH_HEIGHT_HIGH = 15
 
const private float SHOES_HEALTH_HEIGHT_LOW = 2
 
const private float SHOES_HEALTH_HEIGHT_HIGH = 15
 
const private float PANTS_HEALTH_HEIGHT_LOW = 5
 
const private float PANTS_HEALTH_HEIGHT_HIGH = 16
 
const private float BLEEDINGHANDS_HEIGHT_LOW = 5
 
const private float BLEEDINGFEET_HEIGHT_LOW = 3
 
const private float BLEEDINGLEGS_HEIGHT_LOW = 10
 
const private float RANDOM_THRESHOLD_HEALTH_LOW = 0.05
 
const private float RANDOM_THRESHOLD_HEALTH_HIGH = 0.1
 
const private float RANDOM_THRESHOLD_LEGS_LOW = 0.05
 
const private float RANDOM_THRESHOLD_LEGS_HIGH = 0.1
 
const private float RANDOM_THRESHOLD_ATTACHMENTS_LOW = 0
 
const private float RANDOM_THRESHOLD_ATTACHMENTS_HIGH = 0.2
 
const private float BLEEDING_CHANCE_HEIGHT_LOW = 3
 
const private float BLEEDING_CHANCE_HEIGHT_HIGH = 15
 
const private int DAMAGE_TYPE_GLOBAL = 0
 
const private int DAMAGE_TYPE_LEGS = 1
 
const private int DAMAGE_TYPE_ATTACHMENTS = 2
 
DayZPlayer m_Player
 
private ref FallDamageData m_FallDamageData
 
const string FD_AMMO = "FallDamage"
 ammo type used for damaging More...
 
const float FD_DMG_FROM_HEIGHT = 2.5
 damage will not be taken into account bellow this HeightToDamage More...
 
const float FD_MAX_DMG_AT_HEIGHT = 15
 height where player gets 100% damage More...
 
const float FD_MAX_HEIGHT_LEG_BREAK = 8
 height where legs break most of the time More...
 

Function Documentation

◆ AttachBleedingToZonesByHeight()

private void AttachBleedingToZonesByHeight ( notnull PlayerBase  pPlayer)

Definition at line 179 of file dayzplayerimplementfalldamage.c.

◆ DamageAttachedGear()

private void DamageAttachedGear ( notnull PlayerBase  pPlayer)

Definition at line 205 of file dayzplayerimplementfalldamage.c.

◆ DamageCoef()

float DamageCoef ( float  pHeight)

◆ DayZPlayerImplementFallDamage()

void DayZPlayerImplementFallDamage ( DayZPlayer  pPlayer)

Definition at line 73 of file dayzplayerimplementfalldamage.c.

◆ GetHeight()

float GetHeight ( )

Definition at line 83 of file dayzplayerimplementfalldamage.c.

◆ GetLandType()

int GetLandType ( )

Definition at line 88 of file dayzplayerimplementfalldamage.c.

◆ HandleFallDamage() [1/2]

void HandleFallDamage ( FallDamageData  pData)

Definition at line 93 of file dayzplayerimplementfalldamage.c.

◆ HandleFallDamage() [2/2]

void HandleFallDamage ( float  pHeight)

◆ Randomize()

private float Randomize ( int  pType,
float  pValue 
)

Definition at line 154 of file dayzplayerimplementfalldamage.c.

Variable Documentation

◆ BLEEDING_CHANCE_HEIGHT_HIGH

const private float BLEEDING_CHANCE_HEIGHT_HIGH = 15

Definition at line 53 of file dayzplayerimplementfalldamage.c.

◆ BLEEDING_CHANCE_HEIGHT_LOW

const private float BLEEDING_CHANCE_HEIGHT_LOW = 3

Definition at line 52 of file dayzplayerimplementfalldamage.c.

◆ BLEEDINGFEET_HEIGHT_LOW

const private float BLEEDINGFEET_HEIGHT_LOW = 3

Definition at line 42 of file dayzplayerimplementfalldamage.c.

◆ BLEEDINGHANDS_HEIGHT_LOW

const private float BLEEDINGHANDS_HEIGHT_LOW = 5

Definition at line 41 of file dayzplayerimplementfalldamage.c.

◆ BLEEDINGLEGS_HEIGHT_LOW

const private float BLEEDINGLEGS_HEIGHT_LOW = 10

Definition at line 43 of file dayzplayerimplementfalldamage.c.

◆ BROKENLEGS_HEIGHT_HIGH

const private float BROKENLEGS_HEIGHT_HIGH = 9

Definition at line 32 of file dayzplayerimplementfalldamage.c.

◆ BROKENLEGS_HEIGHT_LOW

const private float BROKENLEGS_HEIGHT_LOW = 5

Definition at line 31 of file dayzplayerimplementfalldamage.c.

◆ DAMAGE_TYPE_ATTACHMENTS

const private int DAMAGE_TYPE_ATTACHMENTS = 2

Definition at line 63 of file dayzplayerimplementfalldamage.c.

◆ DAMAGE_TYPE_GLOBAL

const private int DAMAGE_TYPE_GLOBAL = 0

Definition at line 61 of file dayzplayerimplementfalldamage.c.

◆ DAMAGE_TYPE_LEGS

const private int DAMAGE_TYPE_LEGS = 1

Definition at line 62 of file dayzplayerimplementfalldamage.c.

◆ FALL_DAMAGE_AMMO_HEALTH

class FallDamageData FALL_DAMAGE_AMMO_HEALTH = "FallDamageHealth"

◆ FD_AMMO

const string FD_AMMO = "FallDamage"

ammo type used for damaging

DEPRECATED

Definition at line 326 of file dayzplayerimplementfalldamage.c.

◆ FD_DMG_FROM_HEIGHT

const float FD_DMG_FROM_HEIGHT = 2.5

damage will not be taken into account bellow this HeightToDamage

Definition at line 327 of file dayzplayerimplementfalldamage.c.

◆ FD_MAX_DMG_AT_HEIGHT

const float FD_MAX_DMG_AT_HEIGHT = 15

height where player gets 100% damage

Definition at line 328 of file dayzplayerimplementfalldamage.c.

◆ FD_MAX_HEIGHT_LEG_BREAK

const float FD_MAX_HEIGHT_LEG_BREAK = 8

height where legs break most of the time

Definition at line 329 of file dayzplayerimplementfalldamage.c.

◆ GLOVES_HEALTH_HEIGHT_HIGH

const private float GLOVES_HEALTH_HEIGHT_HIGH = 15

Definition at line 35 of file dayzplayerimplementfalldamage.c.

◆ GLOVES_HEALTH_HEIGHT_LOW

const private float GLOVES_HEALTH_HEIGHT_LOW = 5

Definition at line 34 of file dayzplayerimplementfalldamage.c.

◆ HEALTH_HEIGHT_HIGH

const float HEALTH_HEIGHT_HIGH = 14

Definition at line 27 of file dayzplayerimplementfalldamage.c.

◆ HEALTH_HEIGHT_LOW

const float HEALTH_HEIGHT_LOW = 5

Definition at line 26 of file dayzplayerimplementfalldamage.c.

◆ m_FallDamageData

private ref FallDamageData m_FallDamageData

Definition at line 66 of file dayzplayerimplementfalldamage.c.

◆ m_Player

DayZPlayer m_Player

Definition at line 65 of file dayzplayerimplementfalldamage.c.

◆ PANTS_HEALTH_HEIGHT_HIGH

const private float PANTS_HEALTH_HEIGHT_HIGH = 16

Definition at line 39 of file dayzplayerimplementfalldamage.c.

◆ PANTS_HEALTH_HEIGHT_LOW

const private float PANTS_HEALTH_HEIGHT_LOW = 5

Definition at line 38 of file dayzplayerimplementfalldamage.c.

◆ RANDOM_THRESHOLD_ATTACHMENTS_HIGH

const private float RANDOM_THRESHOLD_ATTACHMENTS_HIGH = 0.2

Definition at line 50 of file dayzplayerimplementfalldamage.c.

◆ RANDOM_THRESHOLD_ATTACHMENTS_LOW

const private float RANDOM_THRESHOLD_ATTACHMENTS_LOW = 0

Definition at line 49 of file dayzplayerimplementfalldamage.c.

◆ RANDOM_THRESHOLD_HEALTH_HIGH

const private float RANDOM_THRESHOLD_HEALTH_HIGH = 0.1

Definition at line 46 of file dayzplayerimplementfalldamage.c.

◆ RANDOM_THRESHOLD_HEALTH_LOW

const private float RANDOM_THRESHOLD_HEALTH_LOW = 0.05

Definition at line 45 of file dayzplayerimplementfalldamage.c.

◆ RANDOM_THRESHOLD_LEGS_HIGH

const private float RANDOM_THRESHOLD_LEGS_HIGH = 0.1

Definition at line 48 of file dayzplayerimplementfalldamage.c.

◆ RANDOM_THRESHOLD_LEGS_LOW

const private float RANDOM_THRESHOLD_LEGS_LOW = 0.05

Definition at line 47 of file dayzplayerimplementfalldamage.c.

◆ SHOCK_HEIGHT_HIGH

const private float SHOCK_HEIGHT_HIGH = 12

Definition at line 30 of file dayzplayerimplementfalldamage.c.

◆ SHOCK_HEIGHT_LOW

const private float SHOCK_HEIGHT_LOW = 3

Definition at line 29 of file dayzplayerimplementfalldamage.c.

◆ SHOES_HEALTH_HEIGHT_HIGH

const private float SHOES_HEALTH_HEIGHT_HIGH = 15

Definition at line 37 of file dayzplayerimplementfalldamage.c.

◆ SHOES_HEALTH_HEIGHT_LOW

const private float SHOES_HEALTH_HEIGHT_LOW = 2

Definition at line 36 of file dayzplayerimplementfalldamage.c.