123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- //Get this addons macro
- //get the macro for the air RD501_patch_vehicles
- //get generlized macros
- #include "../../../RD501_main/config_macros.hpp"
- //General name of the vehicle
- #define vehicle_addon mortar
- #define patch_name MODNAME##vehicle_addon##_Patches
- #define vehicle_classname MODNAME##_##vehicle_addon
- #define macro_new_mortar_class(name) vehicle_classname##_##name
- class CfgPatches
- {
- class RD501_patch_mortar
- {
- addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
- requiredAddons[]=
- {
- RD501_patch_vehicles
- };
- requiredVersion=0.1;
- units[]=
- {
- macro_new_vehicle(mortar,republic),
- };
- weapons[]=
- {
-
- };
- };
- };
- //remember to do the flares later on when I do effects.
- #include "../../common/sensor_templates.hpp"
- class DefaultEventhandlers;
- class CfgVehicles
- {
- class Weapon_bag_base;
- class JLTS_UAV_prowler_gar_backpack:Weapon_bag_base
- {
- class assembleInfo;
- };
- class B_Mortar_01_F;
- class macro_new_vehicle(mortar,republic):B_Mortar_01_F
- {
- displayname = "Republic Plasma Mortar";
- forceInGarage = 1;
- availableForSupportTypes[] = {"Artillery"};
- class EventHandlers :DefaultEventhandlers {};
- faction = MACRO_QUOTE(macro_faction(republic));
- editorSubcategory = MACRO_QUOTE(macro_editor_cat(static_turrets));
- vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(static_turrets));
- class assembleInfo
- {
- dissasembleTo[]=
- {
- macro_new_vehicle(stat,mortar_bag)
- };
- };
- };
- class macro_new_vehicle(stat,mortar_bag):JLTS_UAV_prowler_gar_backpack
- {
- displayName="Republic Mortar Bag";
- hiddenSelectionsTextures[]=
- {
- "\RD501_Vehicles\static\data\rd501_backpack_staticweapons_sniper.paa"
- };
- class assembleInfo: assembleInfo
- {
- displayName="Republic Mortar";
- assembleTo = MACRO_QUOTE(macro_new_vehicle(mortar,republic));
- };
- };
- };
|