Jump to content

Photo
- - - - -

Config Weapons


  • Please log in to reply
1 reply to this topic
Thread Starter
PFC Magician
PFC Magician

    Sergeant

  • Members
  • 142 posts

#1

Posted 28 March 2012 - 15:55

When make a replace weapon and some parameters missing in class and subclass , arma 2 complie no errors but replace no occurs.
I have alot of questions about all cfg weapons
i can look here http://community.bis...onfig_Reference
But missing some parameters:
afmax =
htmax =
htmin =
mfact =
mfmax =
tbody =
converter "efective range=" to "dispersion ="?
is "muzzleflash" are dependent of weapon 3d model?

share some knowledge:

converter: "rate of fire" to "reloadtime"
use formule:
60seconds / rounds per minutes
example:
rate of fire:750 rounds/min == reloadtime = 0.08;

converter "Kilograms" to "dexterity"
use formule:
5,1072 / weight (kg)
example:
weapon weight: 3.5kg == dexterity = 1.4592

optics sights
0.28778 is the number for 1X optics
example

Sight: Schmidt Bender 1.1-4x20

....
class OpticsModes {
class ShortDot {
opticsZoomMin = "0.28778/4";
opticsZoomMax = "0.28778/1.1";
opticsZoomInit = "0.28778/1.1";
discretefov[] = {0.26161,0.071945};
discreteInitIndex = 0;
.....
};
};
...

Edited by PFC Magician, 28 March 2012 - 15:58.


Synide
Synide

    Master Gunnery Sergeant

  • Members
  • 1010 posts

#2

Posted 29 March 2012 - 12:51

afmax =
htmax =
htmin =
mfact =
mfmax =
tbody =


These are the Thermal Imaging values. Typical values for a weapon maybe something like...

htMin = 300;
htMax = 1800;
afMax = 0;
mfMax = 0;
mFact = 1;
tBody = 100;

or

htMin = 60;
htMax = 1800;
afMax = 200;
mfMax = 100;
mFact = 0;
tBody = 0;

Bare in mind the above values are just 'common' values used by 'some' weapons. You may vary them as you like. See Thermal Imaging for more info.

is "muzzleflash" are dependent of weapon 3d model?


The parameter for 'selectionFireAnim' in the config.cpp must match the 'selection' name for the polygons in the model or the 'selection' name of the 'proxy' in the model.

Not sure about the rest of your queries.
Hibernating (indefinitely/permanently/intermittently)... may respond to email, possibly.