Safety check and error message in case not set up correctly.
См. определение в файле WeaponStableState.c строка 159
160 {
161
163 return;
164
165 bool failed = false;
166
167 if (!failed)
168 {
170 {
172 {
173 failed = true;
174 break;
175 }
176 }
177 }
178
179 if (failed)
180 {
182
183 #ifdef DEVELOPER
184 if (DayZGame.m_IsPreviewSpawn)
185 {
186
188 }
189 #endif
190
191 ErrorEx(
"Muzzle array validation has failed. Please set up the correct muzzle states by overriding InitMuzzleArray.", severity);
192 }
193 }
ref array< MuzzleState > m_muzzleHasBullet
bool IsSingleState()
Special one for when the weapon only has one singular state (like Magnum)
Перекрестные ссылки ErrorEx, IsSingleState() и m_muzzleHasBullet.
Используется в WeaponStableState().