mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Cleanup old AGM
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
class CfgPatches {
|
class CfgPatches {
|
||||||
class AGM_Aircraft {
|
class ADDON {
|
||||||
units[] = {};
|
units[] = {};
|
||||||
weapons[] = {};
|
weapons[] = {};
|
||||||
requiredVersion = REQUIRED_VERSION;
|
requiredVersion = REQUIRED_VERSION;
|
||||||
|
@ -38,7 +38,7 @@ player addEventHandler ["Take", {
|
|||||||
_giver = _this select 1;
|
_giver = _this select 1;
|
||||||
|
|
||||||
_config = ConfigFile >> "CfgWeapons" >> _item;
|
_config = ConfigFile >> "CfgWeapons" >> _item;
|
||||||
if (isClass _config && {getNumber(_config >> "AGM_Detonator") == 1}) then {
|
if (isClass _config && {getNumber(_config >> "ACE_Detonator") == 1}) then {
|
||||||
private ["_clackerItems"];
|
private ["_clackerItems"];
|
||||||
_clackerItems = _giver getVariable [QGVAR(Clackers), []];
|
_clackerItems = _giver getVariable [QGVAR(Clackers), []];
|
||||||
_getter SetVariable [QGVAR(Clackers), (_getter getVariable [QGVAR(Clackers), []]) + _clackerItems, true];
|
_getter SetVariable [QGVAR(Clackers), (_getter getVariable [QGVAR(Clackers), []]) + _clackerItems, true];
|
||||||
@ -56,7 +56,7 @@ player addEventHandler ["Put", {
|
|||||||
_giver = _this select 0;
|
_giver = _this select 0;
|
||||||
|
|
||||||
_config = ConfigFile >> "CfgWeapons" >> _item;
|
_config = ConfigFile >> "CfgWeapons" >> _item;
|
||||||
if (isClass _config && {getNumber(_config >> "AGM_Detonator") == 1}) then {
|
if (isClass _config && {getNumber(_config >> "ACE_Detonator") == 1}) then {
|
||||||
private ["_clackerItems"];
|
private ["_clackerItems"];
|
||||||
_clackerItems = _giver getVariable [QGVAR(Clackers), []];
|
_clackerItems = _giver getVariable [QGVAR(Clackers), []];
|
||||||
_getter SetVariable [QGVAR(Clackers), (_getter getVariable [QGVAR(Clackers), []]) + _clackerItems, true];
|
_getter SetVariable [QGVAR(Clackers), (_getter getVariable [QGVAR(Clackers), []]) + _clackerItems, true];
|
||||||
|
@ -24,7 +24,7 @@ private ["_type", "_varName", "_data"];
|
|||||||
|
|
||||||
_type = _this select 0;
|
_type = _this select 0;
|
||||||
|
|
||||||
_varName = format ["AGM_CrewInfo_Cache_%1", _type];
|
_varName = format ["ACE_CrewInfo_Cache_%1", _type];
|
||||||
_data = + (uiNamespace getVariable _varName);
|
_data = + (uiNamespace getVariable _varName);
|
||||||
|
|
||||||
if (!isNil "_data") exitWith {
|
if (!isNil "_data") exitWith {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Name: AGM_SwitchUnits_fnc_addMapFunction
|
Name: ACE_SwitchUnits_fnc_addMapFunction
|
||||||
|
|
||||||
Author(s):
|
Author(s):
|
||||||
bux578
|
bux578
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Name: AGM_SwitchUnits_fnc_handleMapClick
|
Name: ACE_SwitchUnits_fnc_handleMapClick
|
||||||
|
|
||||||
Author(s):
|
Author(s):
|
||||||
bux578
|
bux578
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Name: AGM_SwitchUnits_fnc_initPlayer
|
Name: ACE_SwitchUnits_fnc_initPlayer
|
||||||
|
|
||||||
Author(s):
|
Author(s):
|
||||||
bux578
|
bux578
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Name: AGM_SwitchUnits_fnc_isValidAi
|
Name: ACE_SwitchUnits_fnc_isValidAi
|
||||||
|
|
||||||
Author(s):
|
Author(s):
|
||||||
bux578
|
bux578
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Name: AGM_SwitchUnits_fnc_markAiOnMap
|
Name: ACE_SwitchUnits_fnc_markAiOnMap
|
||||||
|
|
||||||
Author(s):
|
Author(s):
|
||||||
bux578
|
bux578
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Name: AGM_SwitchUnits_fnc_module
|
Name: ACE_SwitchUnits_fnc_module
|
||||||
|
|
||||||
Author(s):
|
Author(s):
|
||||||
bux578
|
bux578
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Name: AGM_SwitchUnits_fnc_nearestPlayers
|
Name: ACE_SwitchUnits_fnc_nearestPlayers
|
||||||
|
|
||||||
Author(s):
|
Author(s):
|
||||||
bux578
|
bux578
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Name: AGM_SwitchUnits_fnc_switchBack
|
Name: ACE_SwitchUnits_fnc_switchBack
|
||||||
|
|
||||||
Author(s):
|
Author(s):
|
||||||
bux578
|
bux578
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Name: AGM_SwitchUnits_fnc_switchUnit
|
Name: ACE_SwitchUnits_fnc_switchUnit
|
||||||
|
|
||||||
Author(s):
|
Author(s):
|
||||||
bux578
|
bux578
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- Edited with tabler - 2014-12-20 -->
|
<!-- Edited with tabler - 2014-12-20 -->
|
||||||
<Project name="AGM">
|
<Project name="ACE">
|
||||||
<Package name="SwitchUnits">
|
<Package name="SwitchUnits">
|
||||||
<Key ID="STR_AGM_SwitchUnits_SwitchedUnit">
|
<Key ID="STR_ACE_SwitchUnits_SwitchedUnit">
|
||||||
<English>Switched unit</English>
|
<English>Switched unit</English>
|
||||||
<German>Einheit gewechselt</German>
|
<German>Einheit gewechselt</German>
|
||||||
<Russian>Юнит переключен</Russian>
|
<Russian>Юнит переключен</Russian>
|
||||||
@ -10,7 +10,7 @@
|
|||||||
<Polish>Przełącz jednostkę</Polish>
|
<Polish>Przełącz jednostkę</Polish>
|
||||||
<Spanish>Cambiado de unidad</Spanish>
|
<Spanish>Cambiado de unidad</Spanish>
|
||||||
</Key>
|
</Key>
|
||||||
<Key ID="STR_AGM_SwitchUnits_TooCloseToEnemy">
|
<Key ID="STR_ACE_SwitchUnits_TooCloseToEnemy">
|
||||||
<English>This unit is too close to the enemy.</English>
|
<English>This unit is too close to the enemy.</English>
|
||||||
<German>Diese Einheit ist zu nah am Feind.</German>
|
<German>Diese Einheit ist zu nah am Feind.</German>
|
||||||
<Russian>Юнит слишком близок к противнику</Russian>
|
<Russian>Юнит слишком близок к противнику</Russian>
|
||||||
|
Reference in New Issue
Block a user