editor icon, editor category, delete on death

This commit is contained in:
commy2 2018-01-02 15:56:15 +01:00
parent 3b02e5e90e
commit 3e2ef7ba36
7 changed files with 14 additions and 8 deletions

View File

@ -1,5 +1,5 @@
class CfgEditorSubcategories { class CfgEditorSubcategories {
class GVAR(subcategory) { class GVAR(subcategory) {
displayName = ECSTRING(main,Category_Logistics); displayName = CSTRING(Category_Logistics);
}; };
}; };

View File

@ -906,3 +906,4 @@ class CfgMods {
#include "CfgSettings.hpp" #include "CfgSettings.hpp"
#include "CfgModuleCategories.hpp" #include "CfgModuleCategories.hpp"
#include "CfgVehicleClasses.hpp" #include "CfgVehicleClasses.hpp"
#include "CfgEditorSubcategories.hpp"

View File

@ -322,7 +322,7 @@ class CfgVehicles {
accuracy = 0.2; accuracy = 0.2;
vehicleClass = "ACE_Logistics_Items"; vehicleClass = "ACE_Logistics_Items";
editorCategory = "EdCat_Supplies"; editorCategory = "EdCat_Supplies";
editorSubcategory = QGVAR(subcategory); editorSubcategory = QEGVAR(main,subcategory);
}; };
class ACE_Track: ACE_RepairItem_Base { class ACE_Track: ACE_RepairItem_Base {

View File

@ -21,4 +21,3 @@ class CfgPatches {
#include "CfgEventHandlers.hpp" #include "CfgEventHandlers.hpp"
#include "CfgMoves.hpp" #include "CfgMoves.hpp"
#include "CfgVehicles.hpp" #include "CfgVehicles.hpp"
#include "CfgEditorSubcategories.hpp"

View File

@ -49,6 +49,7 @@ class CfgVehicles {
scope = 2; scope = 2;
displayName = CSTRING(DisplayName); displayName = CSTRING(DisplayName);
model = QPATHTOF(data\sniper_tripod.p3d); model = QPATHTOF(data\sniper_tripod.p3d);
icon = "\A3\Static_F_Gamma\data\UI\map_StaticTurret_AT_CA.paa";
class AnimationSources { class AnimationSources {
class slide_down_tripod { class slide_down_tripod {
@ -96,8 +97,8 @@ class CfgVehicles {
}; };
}; };
editorCategory = "EdCat_Equipment"; editorCategory = "EdCat_Supplies";
editorSubcategory = "EdSubcat_InventoryItems"; editorSubcategory = QEGVAR(main,subcategory);
editorPreview = QPATHTOF(data\preview_tripod.jpg); editorPreview = QPATHTOF(data\preview_tripod.jpg);
}; };
}; };

View File

@ -6,4 +6,9 @@ PREP_RECOMPILE_START;
#include "XEH_PREP.hpp" #include "XEH_PREP.hpp"
PREP_RECOMPILE_END; PREP_RECOMPILE_END;
["ACE_TripodObject", "killed", {
params ["_tripod"];
[{deleteVehicle _this}, _tripod, 5] call CBA_fnc_waitAndExecute;
}] call CBA_fnc_addClassEventHandler;
ADDON = true; ADDON = true;

View File

@ -2,8 +2,8 @@
#define COMPONENT_BEAUTIFIED Tripod #define COMPONENT_BEAUTIFIED Tripod
#include "\z\ace\addons\main\script_mod.hpp" #include "\z\ace\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE #define DISABLE_COMPILE_CACHE
//#define ENABLE_PERFORMANCE_COUNTERS //#define ENABLE_PERFORMANCE_COUNTERS
#ifdef DEBUG_ENABLED_TRIPOD #ifdef DEBUG_ENABLED_TRIPOD