Safety check and error message in case not set up correctly.
См. определение в файле WeaponStableState.c строка 163
164 {
165
167 return;
168
169 bool failed = false;
170
171 if (!failed)
172 {
174 {
176 {
177 failed = true;
178 break;
179 }
180 }
181 }
182
183 if (failed)
184 {
186
187 #ifdef DEVELOPER
188 if (DayZGame.m_IsPreviewSpawn)
189 {
190
192 }
193 #endif
194
195 ErrorEx(
"Muzzle array validation has failed. Please set up the correct muzzle states by overriding InitMuzzleArray.", severity);
196 }
197 }
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().