This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
arma3:config:bis-weapon-config-guidelines [2014-06-20 02:41] snakeman latest bis info updated. |
arma3:config:bis-weapon-config-guidelines [2014-08-22 17:51] snakeman added weapon inertia. |
||
---|---|---|---|
Line 211: | Line 211: | ||
class ItemInfo: InventoryMuzzleItem_Base_F | class ItemInfo: InventoryMuzzleItem_Base_F | ||
{ | { | ||
- | soundTypeIndex = SilencerSound; // index of sound in sounds[[]] in weapon modes (inherited 1 from parent class) | + | soundTypeIndex = 1; // index of sound in sounds[[]] in weapon modes (inherited 1 from parent class) |
| | ||
class MagazineCoef | class MagazineCoef | ||
Line 490: | Line 490: | ||
- | ==== Ammo changes on fly and on hit ==== | + | ==== Ammo changes on fly and on hit ==== |
* there are two new simulations of ammo available mainly for artillery, but usable for many other means | * there are two new simulations of ammo available mainly for artillery, but usable for many other means | ||
Line 538: | Line 538: | ||
- | ==== Explosion shielding ==== | + | ==== Explosion shielding ==== |
* class hitpoints in configuration of all vehicles (including soldiers) has got a new parameter called **explosionShielding** | * class hitpoints in configuration of all vehicles (including soldiers) has got a new parameter called **explosionShielding** | ||
Line 554: | Line 554: | ||
}; | }; | ||
}; | }; | ||
+ | </code> | ||
+ | |||
+ | ==== Weapon Inertia ==== | ||
+ | |||
+ | Inertia coefficient of the weapon is easily set by the "inertia" parameter, common values are 0.1 for a pistol, 0.5 for a rifle, 0.7 for machinegun and around 1.0 for a launcher | ||
+ | |||
+ | <code cpp> | ||
+ | class cfgWeapons | ||
+ | { | ||
+ | class myWeapon | ||
+ | { | ||
+ | // inertia coefficient of the weapon | ||
+ | inertia = 0.5; | ||
+ | }; | ||
+ | }; | ||
</code> | </code> |