DayZ 1.24
Loading...
Searching...
No Matches
WaterBottle.c
Go to the documentation of this file.
1class WaterBottle extends Bottle_Base
2{
4 {
5
6 }
7
9 {
10
11 }
12
13 override bool IsContainer()
14 {
15 return true;
16 }
17
18 override string GetPouringSoundset()
19 {
20 return "emptyVessle_WaterBottle_SoundSet";
21 }
22
24 {
25 return "pour_HardGround_WatterBottle_SoundSet";
26 }
27
29 {
30 return "pour_SoftGround_WatterBottle_SoundSet";
31 }
32
34 {
35 return "pour_Water_WatterBottle_SoundSet";
36 }
37
39 {
40 return "pour_End_HardGround_WatterBottle_SoundSet";
41 }
42
44 {
45 return "pour_End_SoftGround_WatterBottle_SoundSet";
46 }
47
49 {
50 return "pour_End_Water_WatterBottle_SoundSet";
51 }
52
53 override bool CanPutInCargo(EntityAI parent)
54 {
55 if (!super.CanPutInCargo(parent)) return false;
56 if (parent && (parent.IsKindOf("WatterBottle"))/* && !(parent.IsKindOf("Container_Base"))*/)
57 return false;
58
59 return true;
60 }
61
62 override bool IsOpen()
63 {
64 return true;
65 }
66
67 override void EEOnCECreate()
68 {
69 super.EEOnCECreate();
70
71 int rand = Math.RandomInt(0, 10);
72 if (rand > 5)
73 InsertAgent(eAgents.CHOLERA, 1);
74 }
75}
eAgents
Definition EAgents.c:3
override void InsertAgent(int agent, float count=1)
Definition ItemBase.c:8539
override string GetEmptyingEndSoundsetWater()
Definition WaterBottle.c:48
override string GetEmptyingLoopSoundsetWater()
Definition WaterBottle.c:33
override string GetEmptyingLoopSoundsetHard()
Definition WaterBottle.c:23
void ~WaterBottle()
Definition WaterBottle.c:8
override string GetEmptyingEndSoundsetSoft()
Definition WaterBottle.c:43
override void EEOnCECreate()
Definition WaterBottle.c:67
override bool CanPutInCargo(EntityAI parent)
Definition WaterBottle.c:53
override string GetEmptyingLoopSoundsetSoft()
Definition WaterBottle.c:28
override bool IsContainer()
Definition WaterBottle.c:13
override string GetEmptyingEndSoundsetHard()
Definition WaterBottle.c:38
void WaterBottle()
Definition WaterBottle.c:3
override string GetPouringSoundset()
Definition WaterBottle.c:18
override bool IsOpen()
Definition WaterBottle.c:62
Definition EnMath.c:7
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].