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

◆ HideBullet()

override void Weapon_Base::HideBullet ( int muzzleIndex)
inlineprivate

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

322 {
323 super.HideBullet(muzzleIndex);
324
325 Magnum_Cylinder cylinder = Magnum_Cylinder.Cast(GetAttachmentByType(Magnum_Cylinder));
326 if (cylinder)
327 {
328 string bullet = "bullet";
329 if (muzzleIndex > 0)
330 bullet = string.Format("bullet_" + (muzzleIndex + 1));
331
332 cylinder.HideSelection(bullet);
333
334 string bullet_nose = "bullet_nose";
335 if (muzzleIndex > 0)
336 bullet_nose = string.Format("bullet_nose_" + (muzzleIndex + 1));
337 cylinder.HideSelection(bullet_nose);
338 }
339 }
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().

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