21 ErrorEx(
"'Melee' damage type bleed chances already initialized!");
44 ErrorEx(
"'Infected' damage type bleed chances already initialized!");
map< int, float > BleedChanceMaxMap
Static data of bleeding chance probabilities; currently used for melee only.
static void InitMeleeChanceMap()
static bool CalculateBleedChance(string damageType, float bloodDamage, float bleedThreshold, out float bleedChance)
returns 'false' when damageType is unhandled
static void InitInfectedChanceMap()
static void InitBleedChanceData()
static ref map< string, ref BleedChanceMaxMap > m_DamageTypeMap
static const float BLOOD_HITPOINTS_UNIVERSAL
static void BleedingChancesLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static bool IsBleedingChancesLogEnable()
static proto float Max(float x, float y)
Returns bigger of two given values.
static proto float Floor(float f)
Returns floor of value.
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto float Min(float x, float y)
Returns smaller of two given values.
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 float Ceil(float f)
Returns ceil of value.