Jump to content
Sign in to follow this  
colonel_klink

Seaborne missiles

Recommended Posts

Hi Guys,

This is for you fellas who've been creating addons, especially in the config.cpp area.

Upon a couple of requests for missile capability to the sub model I released, I have a dilemma: I want to add missile launching to the sub.

Herein lies the problem. I have set 3 missile proxies on the sub. Then added the following to the config file:

class CfgAmmo

{

class Default {};

class AT3: Default {};

class CarlGustav: AT3 {};

class AA : CarlGustav {};

class CWKAIM9 : AA

{

minRange=100;

minRangeProbab=0.8;

midRange=500;

midRangeProbab=1.0;

maxRange=2000;

maxRangeProbab=1.0;

proxyShape="\CWKsubTarget\stores\CWKAim9m";

maneuvrability=40.7;

airLock=true;

irLock=true;

laserLock=true;

initTime=0.5;

maxleadspeed=4000;

ThrustTime=500;

maxControlRange=2000;

thrust=400;

maxSpeed=800;

hit=200;indirectHit=100;indirectHitRange=8;

model = "\CWKsubTarget\stores\CWKAim9m"; // using the sidewinder model as an example

};

and:

class CfgWeapons

{

class Default {};

class LAWLauncher: Default {};

class CarlGustavLauncher : LAWLauncher {};

class AT3Launcher: CarlGustavLauncher {};

class HellfireLauncher: AT3Launcher {};

class MaverickLauncher: HellfireLauncher {};

class CWKSAM: MaverickLauncher

{

ammo=CWKAIM9;

displayName="SAM";

displayNameMagazine="SAM";

shortNameMagazine="SAM";

count=5;

initspeed=15;

model = "\CWKsubTarget\stores\CWKAim9m";

canLock=2;

sound[]={Weapons\Missile,db+18,1};

aiRateOfFire=12.000000;

aiRateOfFireDistance=2500;

};

finishing off with:

class CfgNonAIVehicles

{

class ProxyWeapon {};

class Proxystores : ProxyWeapon {model = "\cwksubtarget\stores\CWKAim9m"; simulation = "maverickweapon";} // until I build a suitable missile model

};

Right. The SAM, and the number of how many left, appears on my weapons inventory when in command of the sub, but I cannot fire them.

Any ideas, or is it because the sub uses the ship class?

BTW I have even lifted the proxies above deck to see if the missiles are there.

Cheers 8)

Share this post


Link to post
Share on other sites

I'm not sure, but i thinks it's the ship class - it only allows MGs i guess sad.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×