Search the Community
Showing results for tags 'calculation'.
Found 3 results
-
How are SpawnAI Unit costs calculated?
Mr Elusive posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hey BIS Forums, Can anyone explain how SpawnAI unit costs are actually calculated? I'm working on a mission using the SpawnAI modules. The SpawnAI modules have a manpower cap of 50 by default and I'd like to tweak it to spawn more/less units of different types (infantry, armor etc). According to the MP Support Guidelines on the BIS Wiki... a rifleman costs about 0.5 an AA/AT soldier about 6 a MRAP about 6 an APC about 12 a tank about 27 The page says the values are calculated using the cost and threat values defined in the unit's config. I admit I'm not great at math, but I just don't see how they came up with 0.5 as an answer using those two values. Example 1 - a standard NATO rifleman ("B_Soldier_F") and open up his entry in the config viewer: cost = 100000; threat[] = {0.8,0.1,0.1}; Example 2 - NATO AT Missile Specialist ("B_soldier_AT_F"): cost = 130000; threat[] = {0.8,0.8,0.3}; According to the guidelines these units should cost 0.5 and 6 respectively. Clearly I'm missing something, so can anyone tell me how unit costs are actually calculated? Thanks in advance. -
What ballistics standard does arma use in its calculations?
Sycholic posted a topic in ARMA 3 - QUESTIONS & ANSWERS
This is mainly for the developers or anyone who actually knows for fact the inner workings of arma physics.... Which model is arma using for calculating ballistic calculations for bullet flight? ASM or ICAO? I see people making mods trying to give 'realism' and they using apparently two different standards according to the ammo data given.Vanilla says ICAO (g7) but also ASM (G1) I just want to make sure that arma can tell the difference.- 4 replies
-
- 1
-
-
- ballistics
- physics
-
(and 3 more)
Tagged with:
-
Minimize number of similar lines in algorithm
cybercoco posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm sure there's a way to minimize the number of lines in this code. I have three variables, each of them needs to get through a simple math function : f(x)=10x. _var1 = 0.2; _var2 = 0.7; _var3 = 0.5; _array = [_var1,_var2,_var3]; _var1 = _var1 * 10; _var2 = _var2 * 10; _var3 = _var3 * 10; If I have let say ten vars, is it better to use the brute way (see snip above), use a foreach command or use a function (optimization wise). Probably the function, isn't it ?