DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ ShowBullet()

override void Weapon_Base::ShowBullet ( int muzzleIndex)
inlineprivate

См. определение в файле Magnum.c строка 300

301 {
302 super.ShowBullet(muzzleIndex);
303
304 Magnum_Cylinder cylinder = Magnum_Cylinder.Cast(GetAttachmentByType(Magnum_Cylinder));
305 if (cylinder)
306 {
307 string bullet = "bullet";
308 if (muzzleIndex > 0)
309 bullet = string.Format("bullet_" + (muzzleIndex + 1));
310
311 cylinder.ShowSelection(bullet);
312
313 if (!IsChamberFiredOut(muzzleIndex))
314 {
315 string bullet_nose = "bullet_nose";
316 if (muzzleIndex > 0)
317 bullet_nose = string.Format("bullet_nose_" + (muzzleIndex + 1));
318 cylinder.ShowSelection(bullet_nose);
319 }
320 }
321 }
bool IsChamberFiredOut(int idx)
Определения WeaponStableState.c:153
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.

Перекрестные ссылки string::Format() и IsChamberFiredOut().

Используется в Weapon::ForceSyncSelectionState().