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

◆ HideBullet()

override void Weapon_Base::HideBullet ( int muzzleIndex)
inlineprivate

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

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