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.
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[]=
{
...
};
};
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 !