add editor stuff for spotting scope

This commit is contained in:
commy2 2016-06-07 00:17:04 +02:00
parent 12ab4e9fa6
commit f5a96ac2fc
4 changed files with 44 additions and 2 deletions

View File

@ -62,6 +62,7 @@ class CfgVehicles {
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {}; class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
}; };
author = ECSTRING(common,ACETeam);
scope = 1; scope = 1;
side = 1; side = 1;
typicalCargo[] = {"Soldier"}; typicalCargo[] = {"Soldier"};
@ -71,6 +72,7 @@ class CfgVehicles {
transportSoldier = 0; transportSoldier = 0;
getInAction = "GetInLow"; getInAction = "GetInLow";
getOutAction = "GetOutLow"; getOutAction = "GetOutLow";
editorSubcategory = "EdSubcat_Turrets";
class Turrets: Turrets { class Turrets: Turrets {
class MainTurret: MainTurret { class MainTurret: MainTurret {
@ -123,6 +125,33 @@ class CfgVehicles {
}; };
}; };
class ACE_B_SpottingScope: ACE_SpottingScopeObject {
author = ECSTRING(common,ACETeam);
_generalMacro = "ACE_B_SpottingScope";
scope = 2;
side = 1;
faction = "BLU_F";
crew = "B_spotter_F";
};
class ACE_O_SpottingScope: ACE_SpottingScopeObject {
author = ECSTRING(common,ACETeam);
_generalMacro = "ACE_O_SpottingScope";
scope = 2;
side = 0;
faction = "OPF_F";
crew = "O_spotter_F";
};
class ACE_I_SpottingScope: ACE_SpottingScopeObject {
author = ECSTRING(common,ACETeam);
_generalMacro = "ACE_I_SpottingScope";
scope = 2;
side = 2;
faction = "IND_F";
crew = "I_spotter_F";
};
class Item_Base_F; class Item_Base_F;
class ACE_Item_SpottingScope: Item_Base_F { class ACE_Item_SpottingScope: Item_Base_F {
author[] = {"Rocko", "Scubaman3D"}; author[] = {"Rocko", "Scubaman3D"};

View File

@ -2,7 +2,8 @@
class CfgPatches { class CfgPatches {
class ADDON { class ADDON {
units[] = {"ACE_Item_SpottingScope"}; name = CSTRING(component);
units[] = {"ACE_B_SpottingScope", "ACE_O_SpottingScope", "ACE_I_SpottingScope", "ACE_Item_SpottingScope"};
weapons[] = {"ACE_SpottingScope"}; weapons[] = {"ACE_SpottingScope"};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_apl", "ace_interaction"}; requiredAddons[] = {"ace_apl", "ace_interaction"};

View File

@ -15,7 +15,7 @@
disableSerialization; disableSerialization;
params ["_display"]; params ["_display"];
//uinamespace setVariable [QGVAR(dlgSpottingScope), _display]; uinamespace setVariable [QGVAR(dlgSpottingScope), _display];
private _ctrlReticle = _display displayCtrl IDC_RETICLE; private _ctrlReticle = _display displayCtrl IDC_RETICLE;
private _ctrlBody = _display displayCtrl IDC_BODY; private _ctrlBody = _display displayCtrl IDC_BODY;

View File

@ -1,6 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project name="ACE"> <Project name="ACE">
<Package name="tripod"> <Package name="tripod">
<Key ID="STR_ACE_SpottingScope_Component">
<English>Advanced Combat Environment 3 - Spotting Scope</English>
<German>Advanced Combat Environment 3 - Teleskop</German>
<Russian>Advanced Combat Environment 3 - Зрительная труба</Russian>
<Polish>Advanced Combat Environment 3 - Teleskop</Polish>
<Spanish>Advanced Combat Environment 3 - Telescopio</Spanish>
<French>Advanced Combat Environment 3 - Téléscope de visée</French>
<Czech>Advanced Combat Environment 3 - Zaměřovací dalekohled</Czech>
<Italian>Advanced Combat Environment 3 - Spotting Scope</Italian>
<Hungarian>Advanced Combat Environment 3 - Megfigyelő távcső</Hungarian>
<Portuguese>Advanced Combat Environment 3 - Luneta de observador</Portuguese>
</Key>
<Key ID="STR_ACE_SpottingScope_DisplayName"> <Key ID="STR_ACE_SpottingScope_DisplayName">
<English>Spotting Scope</English> <English>Spotting Scope</English>
<German>Teleskop</German> <German>Teleskop</German>