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

◆ ShowBullet()

override void Weapon_Base::ShowBullet ( int muzzleIndex)
inlineprivate

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

306 {
307 Magnum_Cylinder cylinder = Magnum_Cylinder.Cast(GetAttachmentByType(Magnum_Cylinder));
308 if (cylinder)
309 {
310 string bullet = "bullet";
311 if (muzzleIndex > 0)
312 bullet = string.Format("bullet_" + (muzzleIndex + 1));
313
314 cylinder.ShowSelection(bullet);
315
316 if (!IsChamberFiredOut(muzzleIndex))
317 {
318 string bullet_nose = "bullet_nose";
319 if (muzzleIndex > 0)
320 bullet_nose = string.Format("bullet_nose_" + (muzzleIndex + 1));
321 cylinder.ShowSelection(bullet_nose);
322 }
323 }
324 }
bool IsChamberFiredOut(int idx)
Определения WeaponStableState.c:157
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().