Well, I solved the first problem:
I had no special model for modelSpecial, so I left it empty and it worked.
But I've got a dumb question:
How do I code a bullet as a rocket or non explosive LGB?
Anyway, I hope if I poste the code of the Weapon and Ammo I've got so far, anyone could help me at least with my new question. So here it is:
[...]
class CfgAmmo
{
class Default{};
class BulletSingle:Default{};
class ExplosiveBullet:BulletSingle{};
class BulletSilencedSingle:BulletSingle{};
class AmrStdMuni:BulletSilencedSingle
{
hit=100;
indirectHit=50;
indirectHitRange=5;
minRange=1;
minRangeProbab=1;
midRange=1000;
midRangeProbab=1;
maxRange=4000;
maxRangeProbab=1;
maxSpeed=100000;
irLock=0;
laserLock=1;
manualControl=true;
maxControlRange=100000;
sideAirFriction=0.1;
maneuvrability=16.0;
initTime=0;
thrustTime=10.5;
thrust=100000;
cost=0.7;
explosive=0;
};
class AmrExpMuni:ExplosiveBullet
{
hit=500;
indirectHit=250;
indirectHitRange=2.5;
minRange=20;
minRangeProbab=1;
midRange=500;
midRangeProbab=1;
maxRange=2000;
maxRangeProbab=1;
maxSpeed=100000;
cost=1;
explosive=1;
irLock=0;
laserLock=1;
maxControlRange=100000;
maneuvrability=16.0;
sideAirFriction=0.1;
};
};
[...]
class CfgWeapons
{
class Default{};
class MGun : Default{};
class Riffle : MGun{};
class SniperRIffle : Riffle{};
class HkAmr2:SniperRiffle
{
scopeWeapon=2;
scopeMagazine=0;
model="\hkamr2\hkamr2.p3d";
modelSpecial="";
picture="\hkamr2\gunphoto.pac";
optics=1;
modelOptics="\hkamr2\visier.p3d";
opticsZoomMin=0.04;
opticsZoomMax=0.8;
distanceZoomMin=800;
distanceZoomMax=10;
ammo="AmrStdMuni";
count=10;
multiplier=1;
division=0;
burst=1;
initSpeed=870;
maxLeadSpeed=870;
soundContinuous=0;
reloadTime=1.7;
magazineReloadTime=2.5;
magazines[]={"AmrStd_MAG","AmrExp_MAG"};
recoil="riffleSilenced";
autoFire=0;
autoReload=0;
displayName="HK AMR2";
sound="\hkamr2\hk_singleshot";
drySound[]={"\sound\AK74dry",0.01,1};
ffCount=1;
aiRateOfFire=5.0;
aiRateOfFireDistance=800;
aiDispersionCoefX=0.000009;
aiDispersionCoefY=0.000007;
threat[]={1,0.5,0.1};
enableAttack=1;
useAction=0;
useActionTitle="";
canLock=1;
};
class AmrStd_MAG:HkAmr2
{
displayNameMagazine = "762NATO Muni";
shortNameMagazine = HKAMR2NATO_MAG;
picture="\hkamr2\gunphoto.pac";
scopeWeapon=0;
scopeMagazine=2;
canlock=1;
};
class AmrExp_MAG:HkAmr2
{
displayNameMagazine = "Explosive Muni";
shortNameMagazine = HKAMR2EXP_MAG;
picture="\hkamr2\gunphoto.pac";
ammo="AmrExpMuni";
dispersion=0.0001;
scopeWeapon=0;
scopeMagazine=2;
canLock=2;
};
};
So far,
Dave