Hi
I downloaded a pbr that fires shells from the machine gun at the front. And i wanted to change the weapon to them rockets on helicopters that you put the box on the target and the rocket homes in on the target.
Heres the config, im not sure what i have to change to change the type of weapon it fires.
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
#define true 1
#define false 0
// type scope
#define private 0
#define protected 1
#define public 2
#define CanSeeRadar 1
#define CanSeeEye 2
#define CanSeeOptics 4
#define CanSeeEar 8
#define CanSeeCompass 16
#define CanSeeRadarC CanSeeRadar+CanSeeCompass
#define CanSeeAll 31
class CfgPatches
{
class SWFpbr
{
units[] = {SWFpbr};
weapons[] = {};
requiredVersion = 1.20;
};
};
class CfgAmmo
{
class Default {};
class BulletSingle : Default {};
class ExplosiveBullet: BulletSingle {};
class SWFCannon: ExplosiveBullet
{
hit=600;
indirectHit=250;
indirectHitRange=3;
cost=1000;
soundHit[]={"Explosions\explosion_large1",100.000008,1};
soundFly[]={"objects\bulletnoise",0.031623,4};
minRange=20;
minRangeProbab=0.900000;
midRange=150;
midRangeProbab=0.950000;
maxRange=1500;
maxRangeProbab=0.400000;
visibleFire=16;
audibleFire=16;
visibleFireTime=20;
};
};
class CfgWeapons
{
class Default {};
class MGun: Default {};
class MachineGun7_6: MGun {};
class MachineGun30: MachineGun7_6 {};
class SWFCannon: MachineGun30
{
ammo="SWFCannon";
count=40;
initSpeed=1200;
reloadTime=2.000000;
aiRateOfFire=4.000000;
sound[]={"Weapons\gun125",10.000000,1};
reloadSound[]={"Weapons\missload",0.000316,1};
};
};
class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Ship: AllVehicles{};
class SmallShip: Ship{};
class BoatW: SmallShip{};
class SWFpbr: BoatW
{
vehicleClass="Armored";
displayName="SWFpbr";
accuracy=1.000000;
scope=2;
crew="SoldierWCrew";
picture="ipbr";
side=1;
cost=100000;
hasGunner=1;
hasCommander=0;
driverIsCommander=1;
fuelCapacity=100;
driverAction="ManActPBRDriver";
gunnerAction="ManActPBRGunner";
cargoAction[]={"ManActCargo"};
gunnerOpticsModel="optika_empty";
maxSpeed=85;
transportSoldier=6;
icon="ship";
model="\SWFpbr\SWFpbr";
weapons[]={"SWFCannon"};
magazines[]={"SWFCannon"};
armor=900;
nameSound="ship";
simulation="ship";
audible=6;
formationX=50;
formationZ=100;
precision=25;
brakeDistance=5;
formationTime=20;
steerAheadSimul=2.000000;
steerAheadPlan=2.400000;
predictTurnSimul=2.000000;
predictTurnPlan=2.400000;
type=1;
threat[]={0.200000,0.200000,0.100000};
getInRadius=5;
getInAction="ManActGetOutCar";
getOutAction="ManActGetOutCar";
class TurretBase
{
gunAxis="osa hlavne";
turretAxis="osa veze";
gunBeg="usti hlavne";
gunEnd="konec hlavne";
soundServo[]={"Vehicles\gun_elevate",0.001000,1.000000};
minElev=-5;
maxElev=70;
minTurn=-155;
maxTurn=155;
body="OtocVez";
gun="OtocHlaven";