Jump to content
Sign in to follow this  
Jaksa.

rifle vs armour

Recommended Posts

how can i force AI to use specific rifle (antitank rifle, like PTRS, PzB39, wz.35 or Boys) against armoured enemy? AI use rifle class against soft target only. threat[] = {0.3, 0.9, 0.1}; in cfgvehicles doesnt work - AI refuses engage armours with rifle. Thanks in advance.

Share this post


Link to post
Share on other sites

What happens is AI considers the damage your rifle causes too low to use against armored targets. You can change it by modifying 'damageResistance' parameter in the vehicle config. Biki gives a sophisticated formula on how this parameter is calculated, but you can find out the proper value by trial and error, just remember that lower value means weaker weapons will be used against the vehicle.

Another thing you can do is to put <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">irLock=1;

into the ammo config of your AT rifle. This will encourage AI to concentrate on IR targets aka vehicles.

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  

×