295 DbgUI.
Text(
string.Format(
" hands:%1",
data.m_BleedingHandsCoef));
296 DbgUI.
Text(
string.Format(
" feet:%1",
data.m_BleedingFeetCoef));
297 DbgUI.
Text(
string.Format(
" legs:%1",
data.m_BleedingLegsCoef));
298 DbgUI.
Text(
string.Format(
" H&F chance:%1",
data.m_BleedingChanceCoef));
342 float m_BrokenLegsCoef;
343 float m_GlovesHealthCoef;
344 float m_ShoesHealthCoef;
345 float m_PantsHealthCoef;
346 float m_BleedingHandsCoef;
347 float m_BleedingFeetCoef;
348 float m_BleedingLegsCoef;
349 float m_BleedingChanceCoef;
361 return ctx.Write(
m_Height) &&
ctx.Write(m_LandType) &&
ctx.Write(m_HealthCoef) &&
ctx.Write(m_ShockCoef) &&
ctx.Write(m_BrokenLegsCoef) &&
ctx.Write(m_GlovesHealthCoef) &&
ctx.Write(m_ShoesHealthCoef) &&
ctx.Write(m_PantsHealthCoef) &&
ctx.Write(m_BleedingHandsCoef) &&
ctx.Write(m_BleedingFeetCoef) &&
ctx.Write(m_BleedingLegsCoef);
366 return ctx.Read(
m_Height) &&
ctx.Read(m_LandType) &&
ctx.Read(m_HealthCoef) &&
ctx.Read(m_ShockCoef) &&
ctx.Write(m_BrokenLegsCoef) &&
ctx.Read(m_GlovesHealthCoef) &&
ctx.Read(m_ShoesHealthCoef) &&
ctx.Read(m_PantsHealthCoef) &&
ctx.Read(m_BleedingHandsCoef) &&
ctx.Read(m_BleedingFeetCoef) &&
ctx.Read(m_BleedingLegsCoef);
DamageType
exposed from C++ (do not change)
class FallDamageData FALL_DAMAGE_AMMO_HEALTH
void DamageAttachedGear(notnull PlayerBase pPlayer)
const float RANDOM_THRESHOLD_HEALTH_LOW
const float FD_DMG_FROM_HEIGHT
damage will not be taken into account bellow this HeightToDamage
const float BLEEDINGFEET_HEIGHT_LOW
const float BLEEDING_CHANCE_HEIGHT_LOW
const float BLEEDINGLEGS_HEIGHT_LOW
const float SHOES_HEALTH_HEIGHT_HIGH
ref FallDamageData m_FallDamageData
static const string FALL_DAMAGE_AMMO_HEALTH_OTHER_ATTACHMENTS
const float HEALTH_HEIGHT_LOW
void DayZPlayerImplementFallDamage(DayZPlayer pPlayer)
const float PANTS_HEALTH_HEIGHT_HIGH
const float RANDOM_THRESHOLD_LEGS_LOW
const float GLOVES_HEALTH_HEIGHT_LOW
const float FD_MAX_HEIGHT_LEG_BREAK
height where legs break most of the time
const float FD_MAX_DMG_AT_HEIGHT
height where player gets 100% damage
static const string BLEEDING_FEET_SELECTIONS[2]
static const string FALL_DAMAGE_AMMO_SHOCK
static const string FALL_DAMAGE_AMMO_HEALTH_ATTACHMENT
const float BROKENLEGS_HEIGHT_LOW
const float SHOCK_HEIGHT_HIGH
static const string BLEEDING_HANDS_SELECTIONS[2]
const float BLEEDINGHANDS_HEIGHT_LOW
const float RANDOM_THRESHOLD_HEALTH_HIGH
void AttachBleedingToZonesByHeight(notnull PlayerBase pPlayer)
const int DAMAGE_TYPE_LEGS
float DamageCoef(float pHeight)
void HandleFallDamage(FallDamageData pData)
const float GLOVES_HEALTH_HEIGHT_HIGH
const string FD_AMMO
ammo type used for damaging
const int DAMAGE_TYPE_GLOBAL
const float SHOES_HEALTH_HEIGHT_LOW
const float PANTS_HEALTH_HEIGHT_LOW
static const float BROKENLEGS_HEALTH_DAMAGE_MAX
const float RANDOM_THRESHOLD_LEGS_HIGH
const int DAMAGE_TYPE_ATTACHMENTS
static const string BLEEDING_LEGS_SELECTIONS[2]
const float SHOCK_HEIGHT_LOW
const float BROKENLEGS_HEIGHT_HIGH
float Randomize(int pType, float pValue)
const float RANDOM_THRESHOLD_ATTACHMENTS_LOW
const float BLEEDING_CHANCE_HEIGHT_HIGH
const float RANDOM_THRESHOLD_ATTACHMENTS_HIGH
const float HEALTH_HEIGHT_HIGH
class PresenceNotifierNoiseEvents windowPosX
dbgUI settings
void Synch(EntityAI victim)
keeping "step" here for consistency only
float m_BleedingChanceCoef
float m_BleedingChanceLegsCoef
float m_BleedingHandsCoef
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Serialization general interface. Serializer API works with:
proto native CGame GetGame()
static proto native void End()
static proto native void Begin(string windowTitle, float x=0, float y=0)
static proto native void Text(string label)
static proto int Randomize(int seed)
Sets the seed for the random number generator.
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].