mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
replace variables with new scripting commands
This commit is contained in:
parent
6c8064097f
commit
b10d3b26ce
@ -41,8 +41,8 @@ if (time - _lastFired < 0.45) then {
|
||||
// Maximum possible dispersion (without _sightsBurst mod)
|
||||
_maxBurst = 50;
|
||||
|
||||
if (_unit getVariable [QUOTE(EGVAR(resting,weaponRested)), false]) then {_maxBurst = 25};
|
||||
if (_unit getVariable [QUOTE(EGVAR(resting,bipodDeployed)), false]) then {_maxBurst = 18};
|
||||
if (isWeaponRested _unit) then {_maxBurst = 25};
|
||||
if (isWeaponDeployed _unit) then {_maxBurst = 18};
|
||||
|
||||
// Cap the dispersion
|
||||
_burst = (_burst min _maxBurst) + _sightsBurst;
|
||||
|
@ -48,8 +48,8 @@ if (_unit != vehicle _unit) then {
|
||||
_powerCoef = (call compile format ["%1", _powerCoef]) * RECOIL_COEF;
|
||||
};
|
||||
|
||||
if (_unit getVariable [QUOTE(EGVAR(resting,weaponRested)), false]) then {_powerMod = _powerMod - 0.07};
|
||||
if (_unit getVariable [QUOTE(EGVAR(resting,bipodDeployed)), false]) then {_powerMod = _powerMod - 0.11};
|
||||
if (isWeaponRested _unit) then {_powerMod = _powerMod - 0.07};
|
||||
if (isWeaponDeployed _unit) then {_powerMod = _powerMod - 0.11};
|
||||
|
||||
private "_camshake";
|
||||
_camshake = [
|
||||
|
Loading…
Reference in New Issue
Block a user