Jump to content
Sign in to follow this  
Diesel

Wrong weapon

Recommended Posts

I use proxy for mk82 bomb, but in game i see BIS maverick (pic).

My config:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class DSL_MK82: Default //500lb General Purpose Low-Drag

{

hit=1000; indirectHit=500; indirectHitRange=15;

minRange=50; minRangeProbab=0.70;

midRange=300; midRangeProbab=0.80;

maxRange=1500; maxRangeProbab=0.60;

model="\DSL_a10\MK82.p3d";

proxyShape="\DSL_a10\MK82.p3d";

soundHit[]={\LaserGuided\expl2,db40,1};

soundFly[]={"objects\noise",0.01,1};

cost=3000;

irLock=0;

laserLock=0;

initTime=0.50;

thrustTime=0;

thrust=0;

maxSpeed=200;

maxControlRange=100000;

maneuvrability=0.0;

sideAirFriction=0.10; //0.15

simulation=shotMissile;

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class DSL_MK82Launcher: HellfireLauncher

{

ammo=DSL_MK82;

displayName="Mk-82 Low-Drag";

displayNameMagazine="Mk82";

shortNameMagazine="Mk82";

count=4;

reloadTime=0.05;

sound[]={"\SKC_F111\bombrelease.wav",12.0,1.0};

initSpeed=0;

canLock=2;

aiRateOfFire=6.0;

aiRateOfFireDistance=2500;

};

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgNonAiVehicles

{

class ProxyWeapon {};

class ProxyMK82: ProxyWeapon

{

model=\DSL_a10\MK82; simulation="maverickweapon";

};

};

What's wrong?

mk82.jpg

Share this post


Link to post
Share on other sites

Yo mate, how do you define the proxies in O2? Isn't it "proxy:maverick.01"?

Share this post


Link to post
Share on other sites

proxy:mk82.01, proxy:mk82.02, proxy:mk82.03, proxy:mk82.04

Share this post


Link to post
Share on other sites

Define the proxies in O2 as:

'proxy:dsl_mk82.01'

and change the proxy in the config.cpp to:

'class ProxyDSL_MK82: ProxyWeapon'

This makes sure that the proxy is 'attached' to the new bomb

you've defined.

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  

×