Fix spotting rifle loudness (#4488)

This commit is contained in:
PabstMirror 2016-09-30 15:10:20 -05:00 committed by GitHub
parent 8458cb2339
commit 6ad15e02c7
2 changed files with 5 additions and 0 deletions

View File

@ -74,6 +74,8 @@ if (isNil "_loudness") then {
private _initSpeed = getNumber(configFile >> "CfgMagazines" >> _magazine >> "initSpeed");
private _caliber = getNumber (configFile >> "CfgAmmo" >> _ammo >> "ACE_caliber");
_caliber = call {
// If explicilty defined, use ACE_caliber
if ((count configProperties [(configFile >> "CfgAmmo" >> _ammo), "configName _x == 'ACE_caliber'", false]) == 1) exitWith {_caliber};
if (_ammo isKindOf ["ShellBase", (configFile >> "CfgAmmo")]) exitWith { 80 };
if (_ammo isKindOf ["RocketBase", (configFile >> "CfgAmmo")]) exitWith { 200 };
if (_ammo isKindOf ["MissileBase", (configFile >> "CfgAmmo")]) exitWith { 600 };

View File

@ -271,4 +271,7 @@ class CfgAmmo {
ace_frag_skip = 0;
ace_frag_force = 1;
};
class rhs_ammo_smaw_SR: RocketBase {
ACE_caliber = 9;
};
};