Removed deprecated CSE code (EnableForAI module option)

This commit is contained in:
ulteq 2015-04-10 19:02:32 +02:00
parent ad8e6450eb
commit 2c4c6763c3
4 changed files with 1 additions and 30 deletions

View File

@ -4,17 +4,8 @@ class CfgVehicles {
author = "$STR_ACE_Common_ACETeam";
category = "ACE";
displayName = "Wind Deflection";
function = FUNC(initalizeModule);
scope = 2;
isGlobal = 1;
icon = QUOTE(PATHTOF(UI\Icon_Module_Wind_ca.paa));
class Arguments {
class EnableForAI {
displayName = "Enable for AI";
description = "Should the module be enabled for AI";
typeName = "BOOL";
defaultValue = 0;
};
};
};
};

View File

@ -13,7 +13,6 @@
ADDON = false;
PREP(handleFired);
PREP(initalizeModule);
PREP(updateTrajectoryPFH);
ADDON = true;

View File

@ -30,7 +30,7 @@ _bullet = _this select 6;
if (!hasInterface) exitWith {false};
if (!(_bullet isKindOf "BulletBase")) exitWith {false};
if (_unit distanceSqr ACE_player > 9000000) exitWith {false};
if (!GVAR(EnableForAI) && !([_unit] call EFUNC(common,isPlayer))) exitWith {false}; // TODO: Remove this?
if (!([_unit] call EFUNC(common,isPlayer))) exitWith {false};
[_bullet, getNumber(configFile >> "cfgAmmo" >> (_this select 4) >> "airFriction")] call FUNC(updateTrajectoryPFH);

View File

@ -1,19 +0,0 @@
/**
* fnc_initalizeModule.sqf
* @Descr: N/A
* @Author: Glowbal
*
* @Arguments: []
* @Return:
* @PublicAPI: false
*/
#include "script_component.hpp"
if (!hasInterface) exitwith {}; // No need for this module on HC or dedicated server.
private ["_logic"];
_logic = [_this,0,objNull,[objNull]] call BIS_fnc_param;
if (!isNull _logic) then {
[_logic, QGVAR(EnableForAI), "EnableForAI" ] call EFUNC(common,readSettingFromModule);
};