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