57 {
59
60 #ifdef DIAG_DEVELOPER
61 bool diagEnabled;
62 float diagTimeInterval;
63 float diagTimeDuration;
64
65 GeyserDebugData geyserDebugData =
g_Game.m_GeyserDiagData;
66 if (geyserDebugData)
67 {
68 diagEnabled = geyserDebugData.m_DiagEnabled;
69 diagTimeInterval = geyserDebugData.m_DiagTimeInterval;
70 diagTimeDuration = geyserDebugData.m_DiagTimeDuration;
71 }
72
74 if (diagEnabled)
75 {
76 logInterval = diagTimeInterval;
77 }
78
79 #ifdef GEYSER_LOGGING
81 #endif
82 #endif
83
85 {
87 {
88 #ifdef ENABLE_LOGGING
89 #ifdef GEYSER_LOGGING
90 #ifndef DIAG_DEVELOPER
92 #else
93 if (!diagEnabled)
94 {
96 }
97 else
98 {
99 Debug.
Log(
m_Name +
": ERUPTION_SOON, interval: " + diagTimeInterval +
" sec");
100 }
101 #endif
102 #endif
103 #endif
104
106
108 }
109 }
111 {
112 #ifndef DIAG_DEVELOPER
114 #else
116 #endif
117 {
118 #ifdef ENABLE_LOGGING
119 #ifdef GEYSER_LOGGING
120 #ifndef DIAG_DEVELOPER
122 #else
123 if (!diagEnabled)
124 {
126 }
127 else
128 {
129 Debug.
Log(
m_Name +
": ERUPTING_PRIMARY, interval: " + diagTimeDuration +
" sec");
130 }
131 #endif
132 #endif
133 #endif
134
137
139
143 }
144 }
146 {
147 #ifndef DIAG_DEVELOPER
149 #else
151 #endif
152 {
154
155 #ifdef ENABLE_LOGGING
156 #ifdef GEYSER_LOGGING
158 #endif
159 #endif
160
164
166 }
167 #ifndef DIAG_DEVELOPER
169 #else
171 #endif
172 {
174 {
176 {
178
181 }
182 }
184 {
186
188 {
191 }
193 {
195 }
196 }
197 }
198 }
199 }
GeyserTrigger m_GeyserTrigger
void RandomizeIntervals()
int m_TimeSecondaryElapsed
void KillEntitiesInArea()
float m_RandomizedInterval
const float ERUPTION_TALL_DURATION
float m_RandomizedDuration
const float ERUPTION_TALL_DELAY
const float PRE_ERUPTION_DURATION
enum EGeyserState UPDATE_RATE
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
static proto bool IsInRange(float v, float min, float max)
Returns if value is between min and max (inclusive)
static bool RandomBool()
Returns a random bool .