Jump to content
Sign in to follow this  
wiggum2

Setting enemy accuracy in editor ?

Recommended Posts

@ Chacne

Just put that code in the init.sqf

I currently use this code:

{
 if (side _x == east) then {
   _x setskill ["aimingAccuracy",0.15];
   _x setskill ["spotDistance",0.85];
   _x setskill ["spotTime",0.85];
   _x setskill ["courage",0.85]; 
   _x setskill ["commanding",0.85]; 
   _x setskill ["aimingShake",0.15];
   _x setskill ["aimingSpeed",0.65];
 };
} foreach allunits;

That makes the enemy AI spot you easier, attack you faster and with more courage but makes them bad shooters...i like this "Shooter-Feeling" !

Will this work in Evo, Warfare or Domination?

Share this post


Link to post
Share on other sites

It will work for anything, you can put it in your init.sqf for your mission.

Btw I've always wondered why setting the setskill array has been set like this, when in the CFG its an array with 4 values and not just one.

Example: aimingSpeed[]={0,0.5,0.5,0.7};

So why would doing a command like this "_x setskill ["aimingSpeed",0.15];" change that? If anything wouldn't that just be the same as setting it to aimingSpeed[]={1,0.5,0.5,0.7}; and only change the first param of the array? From what I understand it should be passed like _x setskill ["aimingSpeed",{1,1,1,1}];?

Share this post


Link to post
Share on other sites

Is it possible to edit AI aiming accuracy, just by typing something in the init. on the unit?

Have NO/ zero, scripting knowlege.

Share this post


Link to post
Share on other sites
Is it possible to edit AI aiming accuracy, just by typing something in the init. on the unit?

Have NO/ zero, scripting knowlege.

place this in init of unit:

this setskill ["aimingAccuracy",0.15];

Share this post


Link to post
Share on other sites
Place a trigger with condition true and on act {if (side _x==east) then {_x setskill ["aimingAccuracy",0.5]}} forEach allUnits

Quoted for truth. No need for individual inits.

Share this post


Link to post
Share on other sites

this setskill ["aimingAccuracy",0.15];

I just pasted that into the large init box of a Russian marksman.

Does this command work like that? Because the dumbass can't hit a standing target 300m away on the perfectly flat Utes runway. With perfect conditions, lying down with a rifle accurate out to 600m, he hits 1-3 times out of every 10 shots. Many of the rounds don't even come close.

There's really no such things as an AI sniper in this game, just a noisemaker.

Share this post


Link to post
Share on other sites
this setskill ["aimingAccuracy",0.15];

I just pasted that into the large init box of a Russian marksman.

Does this command work like that? Because the dumbass can't hit a standing target 300m away on the perfectly flat Utes runway. With perfect conditions, lying down with a rifle accurate out to 600m, he hits 1-3 times out of every 10 shots. Many of the rounds don't even come close.

There's really no such things as an AI sniper in this game, just a noisemaker.

Well, even though at 1.0 I believe accuracy levles to be to low (for BluFor AI, especially sniper class). The setting of 0.15, should produce poor performance like you suggest. That is basically a 15 out of a 100 (total) score.

Share this post


Link to post
Share on other sites

I'm not the OP. I have overall accuracy levels set low, and I would like to be able to make certain units highly accurate.

What ever happened to all the AK snipers people were always bitching about? I'd like to access that sort of marksmanship, but if 1 is as high as it goes, these guys are useless snipers.

There's no difference between Blufor and Redfor; this guy was Russian.

Share this post


Link to post
Share on other sites

If this topic came to surface:

Whats the point in being able to set skill in difficulty settings then? Is it for the official campaign only?

I guess last command overwrites all previous, right?

-So for a unit you have the skills set in difficulty settings.

-Then when you place a unit in editor, the skill set there is going to rule, by setting every skilltype to the editor's skill.

-if you give it a different setting in the init line this will be the skill of that unit.

Am I right with this?

maturin: Dunno, I placed a machinegunner with aimingAccuracy 1, and it killed me right away, from 300 ms.

Edited by zapat

Share this post


Link to post
Share on other sites
where do you put this? In any units init?

Yes...

this setskill ["aimingAccuracy",0.15];

Share this post


Link to post
Share on other sites

Just wondering - what are the default values? So you can change them back to normal?

It would be nice to change the values for a close up firefight with lots of panicy inaccurate shooting but then change it back to normal.

eg what would you put in here to set it back to default?

{
 if (side _x == east) then {
   _x setskill ["aimingAccuracy",0.15];
   _x setskill ["spotDistance",0.85];
   _x setskill ["spotTime",0.85];
   _x setskill ["courage",0.85]; 
   _x setskill ["commanding",0.85]; 
   _x setskill ["aimingShake",0.15];
   _x setskill ["aimingSpeed",0.65];
 };
} foreach allunits;

Share this post


Link to post
Share on other sites
Just wondering - what are the default values? So you can change them back to normal?

It would be nice to change the values for a close up firefight with lots of panicy inaccurate shooting but then change it back to normal.

eg what would you put in here to set it back to default?

{
 if (side _x == east) then {
   _x setskill ["aimingAccuracy",0.15];
   _x setskill ["spotDistance",0.85];
   _x setskill ["spotTime",0.85];
   _x setskill ["courage",0.85]; 
   _x setskill ["commanding",0.85]; 
   _x setskill ["aimingShake",0.15];
   _x setskill ["aimingSpeed",0.65];
 };
} foreach allunits;

Save into variable:

http://community.bistudio.com/wiki/skill

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  

×