123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- //Get this addons macro
- //get the macro for the air subaddon
- //get generlized macros
- #include "..\..\script_component.hpp"
- //General name of the vehicle
- #define vehicle_addon bacta_tank
- #define patch_name MODNAME##vehicle_addon##_Patches
- #define vehicle_classname MODNAME##_##vehicle_addon
- #define macro_new_bacta_tank_class(name) vehicle_classname##_##name
- class CfgPatches
- {
- class RD501_patch_bacta_tank
- {
- addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
- requiredAddons[]=
- {
- MACRO_QUOTE(RD501_patch_vehicles)
- };
- requiredVersion=0.1;
- units[]=
- {
- MACRO_QUOTE(macro_new_vehicle(bacta,healing))
- };
- weapons[]=
- {
-
- };
- };
- };
- #include "..\..\common\sensor_templates.hpp"
- class DefaultEventhandlers;
- class CfgVehicles
- {
- class Items_base_F;
- class macro_new_vehicle(bacta,healing): Items_base_F
- {
- scope = 2;
- scopeCurator=2;
- author = "Spartan163";
- model="kobra\442_misc\bacta\bacta_tank.p3d";
- displayName = "Bacta Tank Mk.II";
- hiddenSelections[] = {};
- hiddenSelectionsTextures[] = {};
- //vehicleClass = "Objects";
- vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(statics));
- editorCategory = MACRO_QUOTE(macro_editor_cat(statics));
-
- editorSubcategory = MACRO_QUOTE(macro_editor_cat(static_msc));
- class EventHandlers:DefaultEventhandlers {};
- class ACE_Actions {
- class ACE_MainActions {
- displayName = "Bacta Tank";
- selection = "";
- distance = 4;
- condition = "true";
- position = "[0,0,1.5]";
- class RD501_Heal_All_Nearby
- {
- displayName = "Heal Nearby";
- statement = "[_player, _target, 10] call rd501_fnc_healAllNearby";
- condition = "true";
- };
- class RD501_Heal_Self
- {
- displayName = "Heal";
- statement = "[_player, _player] call ace_medical_treatment_fnc_fullHeal";
- condition = "true";
- };
- };
- };
-
- };
-
- };
|