Home   Help Search Login Register  

Author Topic: Accuracy config.cpp command  (Read 2041 times)

0 Members and 1 Guest are viewing this topic.

Offline Rellikki

  • Members
  • *
  • Die-hard OFP player
Accuracy config.cpp command
« on: 08 Sep 2007, 10:44:04 »
Quoting Jester's OFP config tutorial:
Quote

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?

Offline domomo

  • Members
  • *
Re: Accuracy config.cpp command
« Reply #1 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.

Offline Rellikki

  • Members
  • *
  • Die-hard OFP player
Re: Accuracy config.cpp command
« Reply #2 on: 08 Sep 2007, 15:28:43 »
Umm... So what is it? Meters?

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Accuracy config.cpp command
« Reply #3 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..  ::)
 
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Accuracy config.cpp command
« Reply #4 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
I know a little about a lot, and a lot about a little.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Accuracy config.cpp command
« Reply #5 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
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Obmar

  • Members
  • *
  • - Obmar -
    • Bush Wars Mod
Re: Accuracy config.cpp command
« Reply #6 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.
« Last Edit: 06 Oct 2007, 23:29:35 by Obmar (Bush Wars) »
One man's terrorist is another man's freedom fighter.