mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
editor icon, editor category, delete on death
This commit is contained in:
parent
3b02e5e90e
commit
3e2ef7ba36
@ -1,5 +1,5 @@
|
||||
class CfgEditorSubcategories {
|
||||
class GVAR(subcategory) {
|
||||
displayName = ECSTRING(main,Category_Logistics);
|
||||
displayName = CSTRING(Category_Logistics);
|
||||
};
|
||||
};
|
@ -906,3 +906,4 @@ class CfgMods {
|
||||
#include "CfgSettings.hpp"
|
||||
#include "CfgModuleCategories.hpp"
|
||||
#include "CfgVehicleClasses.hpp"
|
||||
#include "CfgEditorSubcategories.hpp"
|
||||
|
@ -322,7 +322,7 @@ class CfgVehicles {
|
||||
accuracy = 0.2;
|
||||
vehicleClass = "ACE_Logistics_Items";
|
||||
editorCategory = "EdCat_Supplies";
|
||||
editorSubcategory = QGVAR(subcategory);
|
||||
editorSubcategory = QEGVAR(main,subcategory);
|
||||
};
|
||||
|
||||
class ACE_Track: ACE_RepairItem_Base {
|
||||
|
@ -21,4 +21,3 @@ class CfgPatches {
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "CfgMoves.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "CfgEditorSubcategories.hpp"
|
||||
|
@ -49,6 +49,7 @@ class CfgVehicles {
|
||||
scope = 2;
|
||||
displayName = CSTRING(DisplayName);
|
||||
model = QPATHTOF(data\sniper_tripod.p3d);
|
||||
icon = "\A3\Static_F_Gamma\data\UI\map_StaticTurret_AT_CA.paa";
|
||||
|
||||
class AnimationSources {
|
||||
class slide_down_tripod {
|
||||
@ -96,8 +97,8 @@ class CfgVehicles {
|
||||
};
|
||||
};
|
||||
|
||||
editorCategory = "EdCat_Equipment";
|
||||
editorSubcategory = "EdSubcat_InventoryItems";
|
||||
editorCategory = "EdCat_Supplies";
|
||||
editorSubcategory = QEGVAR(main,subcategory);
|
||||
editorPreview = QPATHTOF(data\preview_tripod.jpg);
|
||||
};
|
||||
};
|
||||
|
@ -6,4 +6,9 @@ PREP_RECOMPILE_START;
|
||||
#include "XEH_PREP.hpp"
|
||||
PREP_RECOMPILE_END;
|
||||
|
||||
["ACE_TripodObject", "killed", {
|
||||
params ["_tripod"];
|
||||
[{deleteVehicle _this}, _tripod, 5] call CBA_fnc_waitAndExecute;
|
||||
}] call CBA_fnc_addClassEventHandler;
|
||||
|
||||
ADDON = true;
|
||||
|
@ -2,8 +2,8 @@
|
||||
#define COMPONENT_BEAUTIFIED Tripod
|
||||
#include "\z\ace\addons\main\script_mod.hpp"
|
||||
|
||||
// #define DEBUG_MODE_FULL
|
||||
// #define DISABLE_COMPILE_CACHE
|
||||
#define DEBUG_MODE_FULL
|
||||
#define DISABLE_COMPILE_CACHE
|
||||
//#define ENABLE_PERFORMANCE_COUNTERS
|
||||
|
||||
#ifdef DEBUG_ENABLED_TRIPOD
|
||||
|
Loading…
Reference in New Issue
Block a user