Advertisement
infiSTAR23

justchil as50 ammo

Apr 13th, 2014
539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1. case "weapon": {
  2.     _item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
  3.     _item addWeaponCargoGlobal [_iItem,1];
  4.     _mags = [] + getArray (configFile >> "cfgWeapons" >> _iItem >> "magazines");
  5.     if (_iItem == 'BAF_AS50_scoped_Large') then
  6.     {
  7.         _item addMagazineCargoGlobal ['10Rnd_127x99_m107', (round(random 2) + 1)];
  8.     }
  9.     else
  10.     {
  11.         if ((count _mags) > 0) then
  12.         {
  13.             if (!(_iItem in MeleeWeapons)) then
  14.             {
  15.                 _item addMagazineCargoGlobal [(_mags select 0), (round(random 2) + 1)];
  16.             };
  17.         };
  18.     };
  19. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement