Jump to content
Sign in to follow this  
ruff

Heli not targeted by soldier machinegunners

Recommended Posts

ive been editing cpp of certain addons for personal use and i was just wondering how do i make ground soldier ai stop firing at the helicopter in the helicopter cpp e.g. bas blackhawks cpp

here it is

where do i have to change it so that soldiers wont fire at it?

cpp

begin

class CfgVehicles

{

class All{};

class AllVehicles:All{};

class Air: AllVehicles{};

class Helicopter: Air{};

class UH60: Helicopter{};

class UH60MG: UH60 {};

class bas_ah60lbase: UH60

{

scope=0;

displayName="AH-60L DAP";

accuracy=0.30;

side=1;

};

class bas_ah60l: bas_ah60lbase

{

displayName="AH-60L DAP";

icon="\bas_mah60\ah60.pac";

vehicleclass="BAS - Vehicles";

steerAheadSimul=2.0;

steerAheadPlan=2.0;

fuelCapacity=210;

accuracy=5;

scope=public;

irScanRange=2000;

nightVision=1;

model="\bas_mah60\bas_ah60ldap";

rotorBig="vrtule_uh_v";

rotorBigBlend="vrtule_uh_v_bl";

rotorSmall="vrtule_uh_m";

rotorSmallBlend="vrtule_uh_m_bl";

mainRotorSpeed = 1;

soundEngine[]={"\bas_mah60\sounds\bas_60rotors.wss",3.162278,1.500000};

driverAction="ManActUH60Pilot";

commanderAction="ManActUH60Pilot";

driverCanSee=31;

GunnerCanSee=31;

gunnerOpticsModel = "\BAS_MAH60\optika_flir_gunner";

gunnerAction="ManActUH60Pilot";

gunnerUsesPilotView=true

hasGunner=1;

weapons[]={"bas_ah60helllauncher","BAS_60M230","bas_60zuni38","BA

S_60M134"};

magazines[]={"bas_ah60helllauncher","BAS_60M230","bas_60zuni38","BA

S_60M134"};

crew="bassoarpilotw";

picture="iuh60";

maxSpeed=270;

side=1;

armor=80;

cost=10000000;

transportSoldier=0;

type=VAir;

threat[]={1,0.5,0.05};

initCargoAngleY=+10;

minCargoAngleY=-60;

maxCargoAngleY=+120;

typicalCargo[]={"Soldier","Soldier","SoldierLAW","SoldierLAW"};

hiddenSelections[] = {"bas_map","bas_mapev","bas_mapma","bas_mapko",&qu

ot;bas_mapdi","bas_mapno","bas_mapid","bas_mapli",&quot

;bas_m230flashside","bas_m230flashfront","bas_M134flashside",&quo

t;bas_M134flashfront"};

dammageHalf[]=

{

\bas_mah60\g\bas60_glass.paa,\bas_mah60\g\bas60_glassb.paa

end

i only want turrets and tanks to shoot at it not machinegunner soldiers

Share this post


Link to post
Share on other sites

Try changing

accuracy=5;

to

accuracy=0.5;

or lower. Might or might not work ;)

SelectThis

Share this post


Link to post
Share on other sites

thanks man

from the makers themselves smile_o.gif

Share this post


Link to post
Share on other sites

Ok now, if I do this and stuff, will this work like with my 30.cals being targeted by soldiers now finally

Share this post


Link to post
Share on other sites

Yes.

You will have to play with the values a bit, as fr certain units a high accuracy will still not get the AI to fire at it.

But this is the value you need to change in order for the AI to fire upon your unit.

I'll see if I can find a link to the post where I explained it more fully.

Share this post


Link to post
Share on other sites

one question about accuracy in the ccp within units

whats the meaning of it

is it how easy for the ai the identify a soldier?

and if it is, how could i make a unit more stealthy, is it increasing accuracy or lowering it?

Share this post


Link to post
Share on other sites

Generaly speaking accuracy is what knowsAbout level is needed for an AI unit to know the unit is of this type, and note of the type it was inherited from.

I would be surprised if it could be used to make AI firing at helis, though I may be wrong (maybe if they mistake the heli for a different type of heli due to high accuracy requiremens, they will?)

Share this post


Link to post
Share on other sites

well for the bas blackhawks i changed the accuracy to lower and ai stopped firing at it

i was wondering about soldiers with high accuracy

what would that do

make them more targetable or less

Share this post


Link to post
Share on other sites

Accuracy has nothing to do with targetability or "spotability". For this you will find separate settings (camouflage). Accuracy server only for type recognition.

Share this post


Link to post
Share on other sites

So then...I change it to 2 or 6 and it will be able to recognize the type of unit imediately, eh?

Oh ya, my MG's won't fire at helicopters....that is my static ones?

1 more thing, why would you want the troops to not fire at the helo mad_o.gif

Share this post


Link to post
Share on other sites

airLock=true;

within the ammo cfg to get your weapons to shoot at air targets

Share this post


Link to post
Share on other sites

so wats the default camoflauge of snipers and blackops in ofp?

wat setting should i put with camoflauge for stealthy soldier units?

Share this post


Link to post
Share on other sites
so wats the default camoflauge of snipers and blackops in ofp?

wat setting should i put with camoflauge for stealthy soldier units?

maybe take a look at the original config of v 1.96?

Share this post


Link to post
Share on other sites

are they binarized?

Share this post


Link to post
Share on other sites

just figured something out

when i changed the accuracy

tanks will not fire at it even it has anti air weapons

any suggestions?

ground soldiers and tanks wont fire at it

i just want tanks with anti air guns to fire at it

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  

×