I'm trying to create a new type of mine, using the existing mine model:
class CfgPatches
{
class MYNewMine
{
units[] = {};
weapons[] = {"MYNewMine"};
requiredVersion = 1.30;
};
};
class CfgAmmo
{
class Default {};
class TimeBomb: Default {};
class Mine: TimeBomb {};
class MYNewMineAmmo: Mine
{
hit=700;
indirectHit=700;
indirectHitRange=7;
minRange=0;
minRangeProbab=0.950000;
midRange=5;
midRangeProbab=0.900000;
maxRange=10;
maxRangeProbab=0.000000;
cost=2000;
simulationStep=0.100000;
visibleFire=0;
audibleFire=0;
visibleFireTime=0;
};
};
class CfgWeapons
{
class Default {};
class TimeBomb: Default {};
class Mine: TimeBomb {};
class MYNewMine: Mine
{
scopeWeapon=0;
scopeMagazine=2;
magazineType="2 * 256";
ammo="MYNewMineAmmo";
//ammo="Mine";
displayName="MYNewMine";
displayNameMagazine="MYNewMineAmmo";
shortNameMagazine="MYNewMine";
enableAttack=1;
count=1;
initSpeed=0;
maxLeadSpeed=0;
useAction=1;
useActionTitle="Place MYNewMine";
};
};
But when ingame, the guy kneels down to place the mine, but nothing appears.
Do i need a CfgModels section? If i do, how do i know which bits i need??
Cheers,
Marksman