replace variables with new scripting commands

This commit is contained in:
commy2 2015-03-28 11:23:13 +01:00
parent 6c8064097f
commit b10d3b26ce
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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 = [