mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added a new module option for wind deflection:
*enabled - true/false
This commit is contained in:
@ -1,4 +1,10 @@
|
|||||||
class ACE_Settings {
|
class ACE_Settings {
|
||||||
|
class GVAR(enabled) {
|
||||||
|
displayName = "Wind Deflection";
|
||||||
|
description = "Enables wind deflection";
|
||||||
|
typeName = "BOOL";
|
||||||
|
value = 1;
|
||||||
|
};
|
||||||
class GVAR(simulationInterval) {
|
class GVAR(simulationInterval) {
|
||||||
displayName = "Simulation Interval";
|
displayName = "Simulation Interval";
|
||||||
description = "Defines the interval between every calculation step";
|
description = "Defines the interval between every calculation step";
|
||||||
|
@ -11,6 +11,12 @@ class CfgVehicles {
|
|||||||
isTriggerActivated = 0;
|
isTriggerActivated = 0;
|
||||||
author = "$STR_ACE_Common_ACETeam";
|
author = "$STR_ACE_Common_ACETeam";
|
||||||
class Arguments {
|
class Arguments {
|
||||||
|
class enabled {
|
||||||
|
displayName = "Wind Deflection";
|
||||||
|
description = "Enables wind deflection";
|
||||||
|
typeName = "BOOL";
|
||||||
|
defaultValue = 1;
|
||||||
|
};
|
||||||
class simulationInterval {
|
class simulationInterval {
|
||||||
displayName = "Simulation Interval";
|
displayName = "Simulation Interval";
|
||||||
description = "Defines the interval between every calculation step";
|
description = "Defines the interval between every calculation step";
|
||||||
|
@ -28,6 +28,7 @@ _unit = _this select 0;
|
|||||||
_bullet = _this select 6;
|
_bullet = _this select 6;
|
||||||
|
|
||||||
if (!hasInterface) exitWith {false};
|
if (!hasInterface) exitWith {false};
|
||||||
|
if (!(GVAR(enabled))) exitWith {false};
|
||||||
if (!(_bullet isKindOf "BulletBase")) exitWith {false};
|
if (!(_bullet isKindOf "BulletBase")) exitWith {false};
|
||||||
if (_unit distance ACE_player > GVAR(simulationRadius)) exitWith {false};
|
if (_unit distance ACE_player > GVAR(simulationRadius)) exitWith {false};
|
||||||
if (!([_unit] call EFUNC(common,isPlayer))) exitWith {false};
|
if (!([_unit] call EFUNC(common,isPlayer))) exitWith {false};
|
||||||
|
Reference in New Issue
Block a user