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

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

void Canteen ()
 
void ~Canteen ()
 
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 void EEOnCECreate ()
 
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 void EEOnCECreate ()
 
override void OnDebugSpawn ()
 
override void AffectLiquidContainerOnFill (int liquid_type, float amount)
 
override float GetItemOverheatThreshold ()
 disregards liquid boil threshold if filled
 
override void OnItemOverheat (float deltaTime)
 

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

const float DAMAGE_OVERHEAT_PER_S = 0.1
 
const float DAMAGE_ENVIRO_LIQUID_COEF_MIN = 1
 
const float DAMAGE_ENVIRO_LIQUID_COEF_MAX = 2
 
const float DAMAGE_ENVIRO_TEMPDIFF_MIN = 80
 
const float DAMAGE_ENVIRO_TEMPDIFF_MAX = 10
 

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

Конструктор(ы)

◆ ~Canteen()

void ~Canteen ( )
inlineprivate
9 {
10
11 }

Методы

◆ AffectLiquidContainerOnFill()

override void AffectLiquidContainerOnFill ( int liquid_type,
float amount )
inlineprivate
83 {
84 float liquidTemperature = GetGame().GetMission().GetWorldData().GetLiquidTypeEnviroTemperature(liquid_type);
85 if (liquidTemperature >= GetTemperatureMax())
86 {
87 float temperatureDiff = liquidTemperature - GetTemperature();
90 float damageVal = GetMaxHealth("","Health") / GetQuantityMax();
91 DecreaseHealth(amount * damageVal * temperatureDiffCoef,false);
92 }
93 }
override int GetQuantityMax()
Definition ItemBase.c:8081
const float DAMAGE_ENVIRO_TEMPDIFF_MIN
Definition WaterBottle.c:6
const float DAMAGE_ENVIRO_TEMPDIFF_MAX
Definition WaterBottle.c:7
const float DAMAGE_ENVIRO_LIQUID_COEF_MAX
Definition WaterBottle.c:5
const float DAMAGE_ENVIRO_LIQUID_COEF_MIN
Definition WaterBottle.c:4
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(), GetGame(), GetQuantityMax(), Math::InverseLerp() и Math::Lerp().

◆ CanPutInCargo() [1/2]

override bool CanPutInCargo ( EntityAI parent)
inlineprivate
49 {
50 if ( !super.CanPutInCargo(parent) ) {return false;}
51 if ( parent && (parent.IsKindOf("Canteen"))/* && !(parent.IsKindOf("Container_Base"))*/)
52 {
53 return false;
54 }
55
56 return true;
57 }

◆ CanPutInCargo() [2/2]

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

◆ Canteen()

void Canteen ( )
inlineprivate
4 {
5
6 }

◆ EEOnCECreate() [1/2]

override void EEOnCECreate ( )
inlineprivate
65 {
66 super.EEOnCECreate();
67
68 WorldData data = GetGame().GetMission().GetWorldData();
69 if (data)
70 {
71 float chance = data.GetAgentSpawnChance(eAgents.CHOLERA);
72 int rand = Math.RandomFloat(0, 100);
73
74 if (rand < chance)
75 InsertAgent(eAgents.CHOLERA, 1);
76 }
77 }
eAgents
Definition EAgents.c:3
override void InsertAgent(int agent, float count=1)
Definition ItemBase.c:8631
Keeps information about currently loaded world, like temperature.
Definition WorldData.c:3
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].

Перекрестные ссылки GetGame(), InsertAgent() и Math::RandomFloat().

◆ EEOnCECreate() [2/2]

override void EEOnCECreate ( )
inlineprivate
61 {
62 super.EEOnCECreate();
63
64 WorldData data = GetGame().GetMission().GetWorldData();
65 if (data)
66 {
67 float chance = data.GetAgentSpawnChance(eAgents.CHOLERA);
68 int rand = Math.RandomFloat(0, 100);
69
70 if (rand < chance)
71 InsertAgent(eAgents.CHOLERA, 1);
72 }
73 }

Перекрестные ссылки GetGame(), InsertAgent() и Math::RandomFloat().

◆ GetEmptyingEndSoundsetHard() [1/2]

override string GetEmptyingEndSoundsetHard ( )
inlineprivate
34 {
35 return "pour_End_HardGround_Canteen_SoundSet";
36 }

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

◆ GetEmptyingEndSoundsetHard() [2/2]

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

◆ GetEmptyingEndSoundsetSoft() [1/2]

override string GetEmptyingEndSoundsetSoft ( )
inlineprivate
39 {
40 return "pour_End_SoftGround_Canteen_SoundSet";
41 }

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

◆ GetEmptyingEndSoundsetSoft() [2/2]

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

◆ GetEmptyingEndSoundsetWater() [1/2]

override string GetEmptyingEndSoundsetWater ( )
inlineprivate
44 {
45 return "pour_End_Water_Canteen_SoundSet";
46 }

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

◆ GetEmptyingEndSoundsetWater() [2/2]

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

◆ GetEmptyingLoopSoundsetHard() [1/2]

override string GetEmptyingLoopSoundsetHard ( )
inlineprivate
19 {
20 return "pour_HardGround_Canteen_SoundSet";
21 }

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

◆ GetEmptyingLoopSoundsetHard() [2/2]

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

◆ GetEmptyingLoopSoundsetSoft() [1/2]

override string GetEmptyingLoopSoundsetSoft ( )
inlineprivate
24 {
25 return "pour_SoftGround_Canteen_SoundSet";
26 }

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

◆ GetEmptyingLoopSoundsetSoft() [2/2]

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

◆ GetEmptyingLoopSoundsetWater() [1/2]

override string GetEmptyingLoopSoundsetWater ( )
inlineprivate
29 {
30 return "pour_Water_Canteen_SoundSet";
31 }

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

◆ GetEmptyingLoopSoundsetWater() [2/2]

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

◆ GetItemOverheatThreshold()

override float GetItemOverheatThreshold ( )
inlineprivate

disregards liquid boil threshold if filled

97 {
98 return GetTemperatureMax();
99 }

◆ GetPouringSoundset() [1/2]

override string GetPouringSoundset ( )
inlineprivate
14 {
15 return "emptyVessle_Canteen_SoundSet";
16 }

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

◆ GetPouringSoundset() [2/2]

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

◆ IsOpen() [1/2]

override bool IsOpen ( )
inlineprivate
60 {
61 return true;
62 }

◆ IsOpen() [2/2]

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

◆ OnDebugSpawn()

override void OnDebugSpawn ( )
inlineprivate
76 {
77 super.OnDebugSpawn();
78
79 InsertAgent(eAgents.CHOLERA, 1);
80 }

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

◆ OnItemOverheat()

override void OnItemOverheat ( float deltaTime)
inlineprivate
102 {
104 DecreaseHealth(damageVal,false);
105 }
const float DAMAGE_OVERHEAT_PER_S
Definition WaterBottle.c:3

Поля

◆ DAMAGE_ENVIRO_LIQUID_COEF_MAX

const float DAMAGE_ENVIRO_LIQUID_COEF_MAX = 2
private

◆ DAMAGE_ENVIRO_LIQUID_COEF_MIN

const float DAMAGE_ENVIRO_LIQUID_COEF_MIN = 1
private

◆ DAMAGE_ENVIRO_TEMPDIFF_MAX

const float DAMAGE_ENVIRO_TEMPDIFF_MAX = 10
private

◆ DAMAGE_ENVIRO_TEMPDIFF_MIN

const float DAMAGE_ENVIRO_TEMPDIFF_MIN = 80
private

◆ DAMAGE_OVERHEAT_PER_S

const float DAMAGE_OVERHEAT_PER_S = 0.1
private

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