Home   Help Search Login Register  

Author Topic: secondary magazine overflow - which config value ?  (Read 1106 times)

0 Members and 1 Guest are viewing this topic.

i.Q

  • Guest
secondary magazine overflow - which config value ?
« on: 13 Sep 2005, 15:12:09 »
its not as simple as it seems  ;)

what config values do i need to set that AI does correctly determine the size and amount of magazines like when they like to refill their ammo by grabbing some from a dead body.



the problem we do face at the moment is:
1. unit doesnt have any ammo left
2. ai commander orders him to take primary ammo from a dead body
3. yet the ai does take all prim and secondary ammo !
4. ofp freezes as the secondary ammo slots from the soldier are overflown

this problem doesnt happen with for example BIS pistols !



so we do have a rucksack in the launcher slot and its ammo in the pistol slots - yet ai seems not to be able to determine the size and/or amount of the mags.

Code: [Select]
class WGL_RucksackBase: LAWLauncher
{
   scopeWeapon=public;
   scopeMagazine=private;
   displayName = "Rucksack";
   displayNameMagazine="Rucksack";
   shortNameMagazine="Rucksack";
   nameSound="weapon";
   uipicture="";
   picture="\wgl_wep\icons\psdalice.jpg";
   model="\wgl_wep\rucks\WGL_RucksackWAlice.p3d";
   modelOptics="";
   ammo="";
   backgroundReload=1;
   magazines[]=
   {
      ...
   };
};

Code: [Select]
class WGL_RucksackMagBase: WGL_RucksackBase
{
   scopeweapon=private;
   scopemagazine=public;
   magazineType = "1 * 32";
   sound[]={"",0,1};
   reloadSound[]={"",0,1};
   drySound[]={"",0,1};
   reloadTime=5;
   canLock=0;
   enableattack=false;
   valueWeapon=20;
   optics = 0;
   uiPicture="";
   ffMagnitude=0;
          ffFrequency=0;
          ffCount=0;
   showEmpty = true;
   recoil="WGL_EmptyRecoil";
};

any suggestions very welcome !
 :)

Kyle Sarnik

  • Guest
Re:secondary magazine overflow - which config value ?
« Reply #1 on: 13 Sep 2005, 21:27:11 »
Instead of having to worry about depending on the AI to do it themselves, force them to take new ammo with a script. Its very possible and works better and even when the player is squad leader.