mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix spotting rifle loudness (#4488)
This commit is contained in:
parent
8458cb2339
commit
6ad15e02c7
@ -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 };
|
||||
|
@ -271,4 +271,7 @@ class CfgAmmo {
|
||||
ace_frag_skip = 0;
|
||||
ace_frag_force = 1;
|
||||
};
|
||||
class rhs_ammo_smaw_SR: RocketBase {
|
||||
ACE_caliber = 9;
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user