DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс FilteringBottle
+ Граф наследования:FilteringBottle:

Защищенные члены

void DamageBottleConsume (float amount, PlayerBase consumer)
 
override void AffectLiquidContainerOnFill (int liquid_type, float amount)
 
override float GetItemOverheatThreshold ()
 disregards liquid boil threshold if filled
 
override void OnItemOverheat (float deltaTime)
 

Закрытые члены

override string GetPouringSoundset ()
 
override string GetEmptyingLoopSoundsetHard ()
 
override string GetEmptyingLoopSoundsetSoft ()
 
override string GetEmptyingLoopSoundsetWater ()
 
override string GetEmptyingEndSoundsetHard ()
 
override string GetEmptyingEndSoundsetSoft ()
 
override string GetEmptyingEndSoundsetWater ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool IsOpen ()
 
override int FilterAgents (int agentsIn)
 
override void OnConsume (float amount, PlayerBase consumer)
 

Закрытые данные

const float DAMAGE_CONSUME_PER_ML = 0.01
 
const float DAMAGE_OVERHEAT_PER_S = 1
 
const float DAMAGE_ENVIRO_LIQUID_COEF_MIN = 1
 
const float DAMAGE_ENVIRO_LIQUID_COEF_MAX = 1.5
 
const float DAMAGE_ENVIRO_TEMPDIFF_MIN = 80
 
const float DAMAGE_ENVIRO_TEMPDIFF_MAX = 10
 

Подробное описание

Методы

◆ AffectLiquidContainerOnFill()

override void AffectLiquidContainerOnFill ( int liquid_type,
float amount )
inlineprotected
81 {
82 float liquidTemperature = GetGame().GetMission().GetWorldData().GetLiquidTypeEnviroTemperature(liquid_type);
83 if (liquidTemperature >= GetTemperatureMax())
84 {
85 float temperatureDiff = liquidTemperature - GetTemperature();
88 float damageVal = GetMaxHealth("","Health") / GetQuantityMax();
89 DecreaseHealth(amount * damageVal * temperatureDiffCoef,false);
90 }
91 }
override int GetQuantityMax()
Definition ItemBase.c:8081
const float DAMAGE_ENVIRO_TEMPDIFF_MIN
Definition FilteringBottle.c:7
const float DAMAGE_ENVIRO_TEMPDIFF_MAX
Definition FilteringBottle.c:8
const float DAMAGE_ENVIRO_LIQUID_COEF_MAX
Definition FilteringBottle.c:6
const float DAMAGE_ENVIRO_LIQUID_COEF_MIN
Definition FilteringBottle.c:5
Definition EnMath.c:7
Definition EntityAI.c:95
proto native CGame GetGame()
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 float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.

Перекрестные ссылки Math::Clamp(), DAMAGE_ENVIRO_LIQUID_COEF_MAX, DAMAGE_ENVIRO_LIQUID_COEF_MIN, DAMAGE_ENVIRO_TEMPDIFF_MAX, DAMAGE_ENVIRO_TEMPDIFF_MIN, GetGame(), GetQuantityMax(), Math::InverseLerp() и Math::Lerp().

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
inlineprivate
46 {
47 if( !super.CanPutInCargo(parent) ) {return false;}
48 if ( parent && (parent.IsKindOf("WatterBottle"))/* && !(parent.IsKindOf("Container_Base"))*/)
49 {
50 return false;
51 }
52
53 return true;
54 }

◆ DamageBottleConsume()

void DamageBottleConsume ( float amount,
PlayerBase consumer )
inlineprotected
76 {
77 DecreaseHealth(amount * DAMAGE_CONSUME_PER_ML,false);
78 }
const float DAMAGE_CONSUME_PER_ML
Definition FilteringBottle.c:3

Перекрестные ссылки DAMAGE_CONSUME_PER_ML.

Используется в OnConsume().

◆ FilterAgents()

override int FilterAgents ( int agentsIn)
inlineprivate
62 {
63 int agentsOut = agentsIn & (~eAgents.HEAVYMETAL) & (~eAgents.CHOLERA);
64
65 return agentsOut;
66 }
eAgents
Definition EAgents.c:3

◆ GetEmptyingEndSoundsetHard()

override string GetEmptyingEndSoundsetHard ( )
inlineprivate
31 {
32 return "pour_End_HardGround_WatterBottle_SoundSet";
33 }

◆ GetEmptyingEndSoundsetSoft()

override string GetEmptyingEndSoundsetSoft ( )
inlineprivate
36 {
37 return "pour_End_SoftGround_WatterBottle_SoundSet";
38 }

◆ GetEmptyingEndSoundsetWater()

override string GetEmptyingEndSoundsetWater ( )
inlineprivate
41 {
42 return "pour_End_Water_WatterBottle_SoundSet";
43 }

◆ GetEmptyingLoopSoundsetHard()

override string GetEmptyingLoopSoundsetHard ( )
inlineprivate
16 {
17 return "pour_HardGround_WatterBottle_SoundSet";
18 }

◆ GetEmptyingLoopSoundsetSoft()

override string GetEmptyingLoopSoundsetSoft ( )
inlineprivate
21 {
22 return "pour_SoftGround_WatterBottle_SoundSet";
23 }

◆ GetEmptyingLoopSoundsetWater()

override string GetEmptyingLoopSoundsetWater ( )
inlineprivate
26 {
27 return "pour_Water_WatterBottle_SoundSet";
28 }

◆ GetItemOverheatThreshold()

override float GetItemOverheatThreshold ( )
inlineprotected

disregards liquid boil threshold if filled

95 {
96 return GetTemperatureMax();
97 }

◆ GetPouringSoundset()

override string GetPouringSoundset ( )
inlineprivate
11 {
12 return "emptyVessle_WaterBottle_SoundSet";
13 }

◆ IsOpen()

override bool IsOpen ( )
inlineprivate
57 {
58 return true;
59 }

◆ OnConsume()

override void OnConsume ( float amount,
PlayerBase consumer )
inlineprivate
69 {
70 super.OnConsume(amount,consumer);
71
73 }
void DamageBottleConsume(float amount, PlayerBase consumer)
Definition FilteringBottle.c:75

Перекрестные ссылки DamageBottleConsume().

◆ OnItemOverheat()

override void OnItemOverheat ( float deltaTime)
inlineprotected
100 {
102 DecreaseHealth(damageVal,false);
103 }
const float DAMAGE_OVERHEAT_PER_S
Definition FilteringBottle.c:4

Перекрестные ссылки DAMAGE_OVERHEAT_PER_S.

Поля

◆ DAMAGE_CONSUME_PER_ML

const float DAMAGE_CONSUME_PER_ML = 0.01
private

Используется в DamageBottleConsume().

◆ DAMAGE_ENVIRO_LIQUID_COEF_MAX

const float DAMAGE_ENVIRO_LIQUID_COEF_MAX = 1.5
private

Используется в AffectLiquidContainerOnFill().

◆ DAMAGE_ENVIRO_LIQUID_COEF_MIN

const float DAMAGE_ENVIRO_LIQUID_COEF_MIN = 1
private

Используется в AffectLiquidContainerOnFill().

◆ DAMAGE_ENVIRO_TEMPDIFF_MAX

const float DAMAGE_ENVIRO_TEMPDIFF_MAX = 10
private

Используется в AffectLiquidContainerOnFill().

◆ DAMAGE_ENVIRO_TEMPDIFF_MIN

const float DAMAGE_ENVIRO_TEMPDIFF_MIN = 80
private

Используется в AffectLiquidContainerOnFill().

◆ DAMAGE_OVERHEAT_PER_S

const float DAMAGE_OVERHEAT_PER_S = 1
private

Используется в OnItemOverheat().


Объявления и описания членов класса находятся в файле: