more work

This commit is contained in:
jodav 2015-01-12 15:09:07 +01:00
parent f3427938b3
commit 7afce2a241
6 changed files with 66 additions and 15 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Edited with tabler - 2014-12-20 -->
<Project name="AGM">
<Project name="ACE">
<Package name="SwitchUnits">
<Key ID="STR_AGM_SwitchUnits_SwitchedUnit">
<Key ID="STR_ACE_SwitchUnits_SwitchedUnit">
<English>Switched unit</English>
<German>Einheit gewechselt</German>
<Russian>Юнит переключен</Russian>
@ -10,7 +10,7 @@
<Polish>Przełącz jednostkę</Polish>
<Spanish>Cambiado de unidad</Spanish>
</Key>
<Key ID="STR_AGM_SwitchUnits_TooCloseToEnemy">
<Key ID="STR_ACE_SwitchUnits_TooCloseToEnemy">
<English>This unit is too close to the enemy.</English>
<German>Diese Einheit ist zu nah am Feind.</German>
<Russian>Юнит слишком близок к противнику</Russian>

View File

@ -2,4 +2,10 @@ class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE( call compile preprocessFileLineNumbers PATHTOF(XEH_preInit.sqf) );
};
};
};
class Extended_PostInit_EventHandlers {
class ADDON {
postInit = QUOTE(call COMPILE_FILE(XEH_postInit) );
};
};

View File

@ -0,0 +1,23 @@
/*
Author(s):
bux578
*/
0 spawn {
private ["_side"];
waitUntil {sleep 0.5; AGM_SwitchUnits_EnableSwitchUnits};
//_side = [west, east, independent, civilian] select AGM_SwitchUnits_SwitchUnitsAllowedForSide;
_sides = [];
if(AGM_SwitchUnits_SwitchToWest) then {_sides pushBack west};
if(AGM_SwitchUnits_SwitchToEast) then {_sides pushBack east};
if(AGM_SwitchUnits_SwitchToIndependent) then {_sides pushBack independent};
if(AGM_SwitchUnits_SwitchToCivilian) then {_sides pushBack civilian};
if (player getVariable ["AGM_CanSwitchUnits", false]) then {
[player, _sides] call AGM_SwitchUnits_fnc_initPlayer;
};
};

View File

@ -6,12 +6,12 @@ class CfgPatches {
weapons[] = {};
requiredVersion = 0.60;
requiredAddons[] = {"ace_core"};
version = "0.95";
versionStr = "0.95";
versionAr[] = {0,95,0};
author[] = {""};
authorUrl = "";
version = QUOTE(VERSION);
versionStr = QUOTE(VERSION);
versionAr[] = {VERSION_AR};
author[] = {"bux578"};
authorUrl = "https://github.com/bux578/";
};
};
#include "CfgEventHandlers.hpp"
#include "CfgEventHandlers.hpp"

View File

@ -1,12 +1,12 @@
#define COMPONENT blank
#define COMPONENT SwitchUnits
#include "\z\ace\addons\main\script_mod.hpp"
#ifdef DEBUG_ENABLED_BLANK
#ifdef DEBUG_ENABLED_SwitchUnits
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_BLANK
#define DEBUG_SETTINGS DEBUG_SETTINGS_BLANK
#ifdef DEBUG_SETTINGS_SwitchUnits
#define DEBUG_SETTINGS DEBUG_SETTINGS_SwitchUnits
#endif
#include "\z\ace\addons\main\script_macros.hpp"
#include "\z\ace\addons\main\script_macros.hpp"

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Edited with tabler - 2014-12-20 -->
<Project name="AGM">
<Package name="SwitchUnits">
<Key ID="STR_AGM_SwitchUnits_SwitchedUnit">
<English>Switched unit</English>
<German>Einheit gewechselt</German>
<Russian>Юнит переключен</Russian>
<Czech>Prohozená jednotka</Czech>
<Polish>Przełącz jednostkę</Polish>
<Spanish>Cambiado de unidad</Spanish>
</Key>
<Key ID="STR_AGM_SwitchUnits_TooCloseToEnemy">
<English>This unit is too close to the enemy.</English>
<German>Diese Einheit ist zu nah am Feind.</German>
<Russian>Юнит слишком близок к противнику</Russian>
<Czech>Tato jednotka je moc blízko k nepříteli.</Czech>
<Polish>Ta jednostka jest zbyt blisko przeciwnika.</Polish>
<Spanish>Esta unidad está demasiado cerca del enemigo.</Spanish>
</Key>
</Package>
</Project>