DayZ 1.24
|
Static data of bleeding chance probabilities; currently used for melee only. More...
Static Private Member Functions | |
static void | InitBleedChanceData () |
static void | InitMeleeChanceMap () |
static void | InitInfectedChanceMap () |
static void | Cleanup () |
static bool | CalculateBleedChance (string damageType, float bloodDamage, float bleedThreshold, out float bleedChance) |
returns 'false' when damageType is unhandled | |
Static Private Attributes | |
static const float | BLOOD_HITPOINTS_UNIVERSAL = 100.0 |
static ref map< string, ref BleedChanceMaxMap > | m_DamageTypeMap |
Static data of bleeding chance probabilities; currently used for melee only.
Definition at line 4 of file BleedChanceData.c.
|
inlinestaticprivate |
returns 'false' when damageType is unhandled
Definition at line 70 of file BleedChanceData.c.
References Debug::BleedingChancesLog(), BLOOD_HITPOINTS_UNIVERSAL, Math::Ceil(), Math::Floor(), Math::InverseLerp(), LogManager::IsBleedingChancesLogEnable(), Math::Lerp(), m_DamageTypeMap, Math::Max(), and Math::Min().
Referenced by BleedingSourcesManagerBase::ProcessHit().
Definition at line 64 of file BleedChanceData.c.
References m_DamageTypeMap.
Referenced by CGame::~DayZGame().
Definition at line 10 of file BleedChanceData.c.
References InitInfectedChanceMap(), InitMeleeChanceMap(), and m_DamageTypeMap.
Referenced by CGame::DayZGame().
Definition at line 41 of file BleedChanceData.c.
References BLOOD_HITPOINTS_UNIVERSAL, ErrorEx, and m_DamageTypeMap.
Referenced by InitBleedChanceData().
Definition at line 18 of file BleedChanceData.c.
References BLOOD_HITPOINTS_UNIVERSAL, ErrorEx, and m_DamageTypeMap.
Referenced by InitBleedChanceData().
Definition at line 6 of file BleedChanceData.c.
Referenced by CalculateBleedChance(), InitInfectedChanceMap(), and InitMeleeChanceMap().
|
staticprivate |
Definition at line 8 of file BleedChanceData.c.
Referenced by CalculateBleedChance(), Cleanup(), InitBleedChanceData(), InitInfectedChanceMap(), and InitMeleeChanceMap().