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 CfgEditorSubcategories {
|
||||||
class GVAR(subcategory) {
|
class GVAR(subcategory) {
|
||||||
displayName = ECSTRING(main,Category_Logistics);
|
displayName = CSTRING(Category_Logistics);
|
||||||
};
|
};
|
||||||
};
|
};
|
@ -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"
|
||||||
|
@ -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 {
|
||||||
|
@ -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"
|
|
||||||
|
@ -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);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -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;
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
#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
|
||||||
#define DEBUG_MODE_FULL
|
#define DEBUG_MODE_FULL
|
||||||
|
Loading…
Reference in New Issue
Block a user