Jump to content
Sign in to follow this  
Benny_DK

Accuracy, reduction?

Recommended Posts

Hi guys,

Is there an easy way to reduce the accuracy of units?

I'm hoping to be able to reduce the accuracy of the iraqi insurgents by Rebelman.

Thanks,

Benjamin

Share this post


Link to post
Share on other sites

I assume you mean the shooting accuracy. You can't make certain units less accurate w/o using a script (I think ofpec had some... stand by on that), but you can make certain weapons less accurate by modifying the configs.

In the weapon's config.cpp file, find the weapons you want to change and find the line that says:

dispersion = xxx;

If you increase the number there, it will make the gun less accurate. This goes regardless of who is shooting it though. And be sure to make a backup of the .pbo before you edit it, since making changes will prevent it from working in multiplayer.

Share this post


Link to post
Share on other sites

Thanks Canukausiuka,

I found something called accuracy in a .pbo just under the displayname, as for example

class SoldierWMG:SoldierWB

{

nameSound="machineGunner";

model="\ffur_us\a\ffur_us_mg";

displayName="Squad automatic rifleman";

cost=60000;

accuracy=1.5;

weapons[]={"M60","Throw","Put"};

magazines[]={"M60","M60","M60","M60","M60"};

threat[]={1,0.1,0.8};

Is this something?

Thanks,

Benjamin

Share this post


Link to post
Share on other sites

Hi,

The value 'accuracy' in the config cpp determines whether the unit is recognised by it 'displayname' in game and at what distance (1000 meaning it is never recognised at all and low values meaning it is only recognised as such at close range). It does not determine the accuracy of fire by the unit. One would need to equip units with weaponry firing high dispersal ammunition, as available in for example JAM.

Regards,

Sander

Share this post


Link to post
Share on other sites

Thanks sander,

I have JAM, but the insurgents whose accuracy I want reduced, use ICP weaponry.

I guess it's easier to change the dispersion than the weaponry including ammo, so that's what I'm going to do.

Thanks again,

Benjamin

Share this post


Link to post
Share on other sites

Hi BlackScorpion,

Very interesting. How would you go about with that?

Thanks,

Benjamin

Share this post


Link to post
Share on other sites

The easiest way of reducing accuracy without messing up the configs is to put down in init field of a certain unit:

this setdammage -0.4

(or similar negative value. You have to experiment with the values.) Note that this doesn't make the unit harder to kill.

If you want to apply this for all units on map you can use a trigger:

Radius to cover all the units

Activation: anyone present

Condition: true

on activation: "_x setdammage -0.4" foreach thislist

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  

×