mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Increased loudness of missles and rockets.
This commit is contained in:
parent
feec8a14b7
commit
db68b6c155
@ -12,7 +12,7 @@ class CfgSounds {
|
|||||||
titles[] = {};
|
titles[] = {};
|
||||||
};
|
};
|
||||||
class ACE_Combat_Deafness {
|
class ACE_Combat_Deafness {
|
||||||
sound[] = {QUOTE(PATHTOF(sounds\deafness.ogg)),2,1};
|
sound[] = {QUOTE(PATHTOF(sounds\deafness.ogg)),1,1};
|
||||||
titles[] = {};
|
titles[] = {};
|
||||||
};
|
};
|
||||||
class ACE_Ring_Backblast {
|
class ACE_Ring_Backblast {
|
||||||
|
@ -53,7 +53,6 @@ GVAR(earRingingPFH) = [{
|
|||||||
GVAR(beep2) = false;
|
GVAR(beep2) = false;
|
||||||
};
|
};
|
||||||
if (!GVAR(beep2)) then {
|
if (!GVAR(beep2)) then {
|
||||||
systemChat format["Deafness %1", ((_unit getvariable [QGVAR(dv), 0]) - (_unit getvariable [QGVAR(prior), 0]))];
|
|
||||||
playSound "ACE_Combat_Deafness";
|
playSound "ACE_Combat_Deafness";
|
||||||
GVAR(beep2) = true;
|
GVAR(beep2) = true;
|
||||||
GVAR(time3) = ACE_time + 5;
|
GVAR(time3) = ACE_time + 5;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_silencer", "_audibleFireCoef", "_audibleFire", "_loudness", "_strength", "_vehAttenuation"];
|
private ["_silencer", "_audibleFireCoef", "_loudness", "_strength", "_vehAttenuation", "_magazine", "_initSpeed", "_ammoConfig", "_caliber", "_parentClasses"];
|
||||||
|
|
||||||
PARAMS_7(_object,_firer,_distance,_weapon,_muzzle,_mode,_ammo);
|
PARAMS_7(_object,_firer,_distance,_weapon,_muzzle,_mode,_ammo);
|
||||||
|
|
||||||
@ -49,8 +49,14 @@ if (_silencer != "") then {
|
|||||||
|
|
||||||
_magazine = (getArray(configFile >> "CfgWeapons" >> _weapon >> "magazines")) select 0;
|
_magazine = (getArray(configFile >> "CfgWeapons" >> _weapon >> "magazines")) select 0;
|
||||||
_initSpeed = getNumber(configFile >> "CfgMagazines" >> _magazine >> "initSpeed");
|
_initSpeed = getNumber(configFile >> "CfgMagazines" >> _magazine >> "initSpeed");
|
||||||
_caliber = getNumber(configFile >> "CfgAmmo" >> _ammo >> "ACE_caliber");
|
_ammoConfig = (configFile >> "CfgAmmo" >> _ammo);
|
||||||
if (_caliber <= 0) then { _caliber = 6.5; };
|
_caliber = getNumber(_ammoConfig >> "ACE_caliber");
|
||||||
|
_parentClasses = [_ammoConfig, true] call BIS_fnc_returnParents;
|
||||||
|
if ("RocketBase" in _parentClasses || "MissileBase" in _parentClasses) then {
|
||||||
|
_caliber = 200;
|
||||||
|
} else {
|
||||||
|
if (_caliber <= 0) then { _caliber = 6.5; };
|
||||||
|
};
|
||||||
_loudness = (_caliber ^ 1.25 / 10) * (_initspeed / 1000) * _audibleFireCoef / 5;
|
_loudness = (_caliber ^ 1.25 / 10) * (_initspeed / 1000) * _audibleFireCoef / 5;
|
||||||
_strength = _vehAttenuation * (_loudness - (_loudness / 50 * _distance)); // linear drop off
|
_strength = _vehAttenuation * (_loudness - (_loudness / 50 * _distance)); // linear drop off
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user