OFPEC Forum

Addons & Mods Depot => ArmA - Addons & Mods Discussion => Topic started by: Rellikki on 08 Sep 2007, 10:44:04

Title: Accuracy config.cpp command
Post by: Rellikki on 08 Sep 2007, 10:44:04
Quoting Jester's OFP config tutorial:
Quote
accuracy = How hard it is to recognise the unit’s type, lower is easier.

When I look at the BIS config, there is, for example: accuracy = 0.700000; defined for SoldierEB (OPFOR Rifleman). What does that number mean? Is it distance (meters) or something else? Anyone have any idea?
Title: Re: Accuracy config.cpp command
Post by: domomo on 08 Sep 2007, 15:14:21
that number is the distance from the camera (or optics) to the area you are looking at, 0.7 is neither zoomed in or out.
Title: Re: Accuracy config.cpp command
Post by: Rellikki on 08 Sep 2007, 15:28:43
Umm... So what is it? Meters?
Title: Re: Accuracy config.cpp command
Post by: h- on 08 Sep 2007, 18:01:29
I don't think it's an distance from the camera, AFAIK it's a factor rangin from 0 to 1 like for example the unit's skill.

IIRC it also acts as some sort of divider when determining how long it takes a unit type to be forgotten after it has been out of the detecting unit's sight.
Don't quote me on that though, I might be confusing this with some other token..  ::)
 
Title: Re: Accuracy config.cpp command
Post by: Planck on 08 Sep 2007, 19:51:05
Very confusing. especially when you get accuracy = 1000; or accuracy = 1.5;

S, obviously it isn't limited to values between 0 and 1.


Planck
Title: Re: Accuracy config.cpp command
Post by: h- on 09 Sep 2007, 23:32:01
Ah, yer right...
My brain keeps sending me a faint recollection of someone somewhere explaining it once, it was a long long long time ago and can't remember where..  :D
Title: Re: Accuracy config.cpp command
Post by: Obmar on 06 Oct 2007, 23:15:52
accuracy is a value used for AI to determine who or what they are seeing.

IF you are a UH60mg ingame (the UH60 BlackHawk with machinegun)

eg. accuracy= 0,25 means that from quite a distance AI can determine that you are an enemy UH60mg and based on threat value start firing on you.

eg. accuracy=0,70 means that you need to be pretty close to AI for them to recognize you as an enemy UH60mg and based on threat value start firing on you.

eg. accuracy= 1000 this value AI will determin that you are an enemy UH60 as this value will give you the last vehicle name inherited in the config. In this case a UH60mg inherits from the UH60.

These values are not valid if you fire on AI. They will determine that you are an enemy "chopper" and fire on you, based on your accuracy value when you get closer AI will recognize you as a "blackhawk".

Basicaly the less the value the easier it is for AI to recognize vehicle and open fire.
Applied to all AIR, LAND, ARMOUR vehicles

A sniper with accuracy= 1.5 will be hard to be recognised by AI as an enemy at a distance.