Thats too cool killswitch !
I have progressed some since i last posted.
ITS IN-GAME !!!
still no textures and a config ripped from mac and marfs vulcan.
Got a prob with the turret rotation, it kind of orbits rather than rotates.
The interior isnt finished so i am not too concerned by the fact that the driver pops out of the bottom when 'turned out' !
As its a vulcan config its geared to a 2 man crew , but i need a 3 man crew with commander.
Here is the config./*
unofficial.M42 'Duster'.addon
M42 ' Duster' Tracked Anti Aircraft by Orson and killswitch ( heheh )
*/
class CfgPatches
{
class M42
{
units[] = {M42};
weapons[] = {"40mm, M56A3, Mk149"};
requiredVersion = 1.01;
};
};
class CfgAmmo
{
class Default {};
class BulletSingle: Default {};
class ExplosiveBullet: BulletSingle {};
class Bullet4x20: ExplosiveBullet {};
class M56A3: Bullet4x20
{
hit=25;
indirectHit=8;
indirectHitRange=4;
minRange=20;
minRangeProbab=0.800000;
midRange=500;
midRangeProbab=0.950000;
maxRange=3000;
maxRangeProbab=0.050000;
cost=30;
};
class Mk149: ExplosiveBullet
{
explosive=0;
hit=40;
indirectHit=60;
indirectHitRange=1;
minRange=20;
minRangeProbab=0.800000;
midRange=500;
midRangeProbab=0.950000;
maxRange=3000;
maxRangeProbab=0.050000;
cost=200;
soundHit[]={"\m2a2\double_expl.wss",31.622778,1};
};
};
class CfgWeapons
{
class Default {};
class MGun: Default {};
class MachineGun7_6: MGun {};
class MachineGun30: MachineGun7_6 {};
class VulcanCannon: MachineGun30 {};
class 40mm: VulcanCannon
{
magazines[]={"M56A3", "Mk149"};
reloadTime=0.150000;
};
class Mk149: VulcanCannon
{
displayName="Mk149 20mm (APDS)";
displayNameMagazine="Mk149";
shortNameMagazine="Mk149";
ammo="Mk149";
scopeWeapon=2;
scopeMagazine=2;
shotFromTurret=1;
autoFire=1;
magazineReloadTime=1.500000;
count=1100;
reloadTime=0.140000;
initSpeed=1000;
// sound[]={"\M42\Fire.wav",3.162278,1};
flashSize=1.100000;
maxLeadSpeed=450;
optics=1;
ffCount=1;
multiplier=3;
};
class M56A3: VulcanCannon
{
displayName="M56A3 20mm";
displayNameMagazine="M56A3";
shortNameMagazine="M56A3";
ammo="M56A3";
count=1000;
multiplier=4;
initSpeed=900;
flashSize=1.200000;
reloadTime=0.150000;
dispersion=0.001500;
maxLeadSpeed=900;
aiRateOfFire=0.300000;
aiRateOfFireDistance=3000;
};
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Land: AllVehicles {};
class LandVehicle: Land {};
class Tank: LandVehicle {};
class APC: Tank {};
class M113: APC {};
class Vulcan: M113 {};
class M42: Vulcan
{
displayName="M42 Duster";
picture="\M42\idust.paa";
icon="\M42\antiac.paa";
model="\M42\M42.p3d";
crew="SoldierWCrew";
armor=280;
cost=1000000;
irScanRange=4000;
irScanGround=0;
gunnerCanSee="4+8+16 +1";
weapons[]={"40mm"};
magazines[]={"M56A3", "Mk149"};
class Turret
{
gunAxis="OsaHlavne";
turretAxis="OsaVeze";
soundServo[]={"Vehicles\gun_elevate",0.031623,1.000000};
gunBeg="usti hlavne";
gunEnd="konec hlavne";
body="OtocVez";
gun="OtocHlaven";
minElev=-3;
maxElev=70;
minTurn=-360;
maxTurn=360;
};
threat[]={0.500000,0.500000,1};
gunnerOpticsModel="optika_zsu_gunner";
commanderOpticsModel="optika_tanke_auxiliary";
gunnerAction="ManActVulcanGunner";
gunnerInAction="ManActVulcanGunner";
forceHideGunner=1;
viewGunnerInExternal=1;
transportSoldier=1;
initCargoAngleY=90;
class TransportMagazines
{
class _xx_M16
{
magazine="M16";
count="30*1";
};
class _xx_M60
{
magazine="M60";
count="5*1";
};
class _xx_HandGrenade
{
magazine="HandGrenade";
count="10*1";
};
class _xx_M21
{
magazine="M21";
count="10*1";
};
class _xx_LAWLauncher
{
magazine="LAWLauncher";
count="3*1";
};
class _xx_GrenadeLauncher
{
magazine="GrenadeLauncher";
count="3*1";
};
};
};
};
class CfgNonAIVehicles
{
class ProxyCrew {};
class Proxygunner: ProxyCrew {};
class Proxyvulcangunner: Proxygunner {};
};
class CfgVehicleActions
{
vulcangunner="vulcangunner";
};
class CfgMovesMC
{
class Default {};
class DefaultDie: Default {};
class States
{
class Driver: Default {};
class VulcanGunner: Driver
{
file="\vulcan\vulcangunnerstat.rtm";
speed=10000000000.000000;
looped=1;
variantsAI[]={"VulcanGunnerV1",0.700000,"VulcanGunner"};
interpolateWith[]={"VulcanGunnerV1",0.500000};
equivalentTo="VulcanGunner";
interpolationSpeed=1;
connectTo[]={"VulcanGunnerDying",1};
};
class VulcanGunnerV1: VulcanGunner
{
file="\vulcan\vulcangunner.rtm";
speed="- 4";
looped=1;
};
class VulcanGunnerDying: DefaultDie
{
actions="NoActions";
file="\vulcan\vulcangunnersmrt.rtm";
speed="- 1";
looped=0;
soundEnabled=0;
connectFrom[]={"VulcanGunner",1};
};
class VulcanGunnerDead: VulcanGunnerDying
{
actions="DeadActions";
file="\vulcan\vulcangunnersmrt2.rtm";
speed=10000000000.000000;
terminal=1;
connectFrom[]={"VulcanGunnerDying",1};
connectTo[]={"DeadState",1};
};
};
};
class CfgModels
{
class Default{};
class Vehicle: Default{};
class M113: Vehicle{};
class M42: M113{};
};