DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Canteen.c
См. документацию.
1class Canteen extends Bottle_Base
2{
3 void Canteen()
4 {
5
6 }
7
8 void ~Canteen()
9 {
10
11 }
12
13 override string GetPouringSoundset()
14 {
15 return "emptyVessle_Canteen_SoundSet";
16 }
17
19 {
20 return "pour_HardGround_Canteen_SoundSet";
21 }
22
24 {
25 return "pour_SoftGround_Canteen_SoundSet";
26 }
27
29 {
30 return "pour_Water_Canteen_SoundSet";
31 }
32
34 {
35 return "pour_End_HardGround_Canteen_SoundSet";
36 }
37
39 {
40 return "pour_End_SoftGround_Canteen_SoundSet";
41 }
42
44 {
45 return "pour_End_Water_Canteen_SoundSet";
46 }
47
48 override bool CanPutInCargo( EntityAI parent )
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 }
58
59 override bool IsOpen()
60 {
61 return true;
62 }
63
64 override void EEOnCECreate()
65 {
66 super.EEOnCECreate();
67
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 }
78}
eAgents
Определения EAgents.c:3
override void InsertAgent(int agent, float count=1)
Определения ItemBase.c:8653
void ~Canteen()
Определения Canteen.c:8
override string GetEmptyingEndSoundsetWater()
Определения Canteen.c:43
void Canteen()
Определения Canteen.c:3
override string GetEmptyingLoopSoundsetWater()
Определения Canteen.c:28
override string GetEmptyingLoopSoundsetHard()
Определения Canteen.c:18
override string GetEmptyingEndSoundsetSoft()
Определения Canteen.c:38
override void EEOnCECreate()
Определения Canteen.c:64
override bool CanPutInCargo(EntityAI parent)
Определения Canteen.c:48
override string GetEmptyingLoopSoundsetSoft()
Определения Canteen.c:23
override string GetEmptyingEndSoundsetHard()
Определения Canteen.c:33
override string GetPouringSoundset()
Определения Canteen.c:13
override bool IsOpen()
Определения Canteen.c:59
Определения Canteen.c:2
proto native Mission GetMission()
Определения Building.c:6
Определения EnMath.c:7
WorldData GetWorldData()
Определения gameplay.c:743
float GetAgentSpawnChance(eAgents agent)
Определения WorldData.c:253
Keeps information about currently loaded world, like temperature.
Определения WorldData.c:3
proto native CGame GetGame()
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].