123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- //Get this addons macro
- //get the macro for the air macro_patch_name(vehicles)
- //get generlized macros
- #include "../../../RD501_main/config_macros.hpp"
- //General name of the vehicle
- #define vehicle_addon dwarf_spider_droid
- #define patch_name MODNAME##vehicle_addon##_Patches
- #define vehicle_classname MODNAME##_##vehicle_addon
- #define new_dwarf_class(name) vehicle_classname##_##name
- class CfgPatches
- {
- class macro_patch_name(dwarf_spider_droid)
- {
- addonRootClass=macro_patch_name(vehicles)
- requiredAddons[]=
- {
- macro_patch_name(vehicles)
- };
- requiredVersion=0.1;
- units[]=
- {
- macro_new_vehicle(dwarf_spider_droid,MkII),
- macro_new_vehicle(dwarf_spider_droid,Movable_MkII),
- macro_new_vehicle(dwarf_spider_droid,TEST)
- };
- weapons[]=
- {
-
- };
- };
- };
- #include "../../common/sensor_templates.hpp"
- class DefaultEventhandlers;
- class CfgVehicles
- {
- #include "inheritance.hpp"
- class macro_new_vehicle(dwarf_spider_droid,MkII):SpiderDSD
- {
- displayName = "Dwarf Spider Droid MkII";
- armor = 350;
- scope=2;
- forceInGarage = 1;
- class EventHandlers: DefaultEventhandlers {};
- faction = macro_cis_faction
- editorSubcategory = macro_editor_cat(heavy_armored_infantry)
- vehicleClass = macro_editor_vehicle_type(heavy_armored_infantry)
- class HitPoints
- {
- class HitGun
- {
- armor = 0.9;
- material = -1;
- name = "gun";
- visual = "autonomous_unhide";
- passThrough = 0;
- radius = 0.2;
- };
- class HitTurret: HitGun
- {
- armor = 0.3;
- };
- };
- };
- class macro_new_vehicle(dwarf_spider_droid,Movable_MkII):macro_new_vehicle(dwarf_spider_droid,MkII)
- {
- displayName = "Dwarf Spider Droid MkII (Moveable)";
- forceInGarage = 0;
- };
-
- class macro_new_vehicle(dwarf_spider_droid,TEST):SpiderDSD
- {
- displayName = "TEST - DSD 1";
- scope=2;
- forceInGarage = 1;
- class EventHandlers: DefaultEventhandlers {};
- faction = macro_cis_faction
- editorSubcategory = macro_editor_cat(heavy_armored_infantry)
- vehicleClass = macro_editor_vehicle_type(heavy_armored_infantry)
- armor = 1000;
- armorLights = 0.4;
- armorStructural = 3;
- class HitPoints
- {
- class HitGun
- {
- armor = 36;
- material = -1;
- name = "gun";
- visual = "autonomous_unhide";
- passThrough = 0;
- radius = 0.2;
- };
- class HitTurret: HitGun
- {
- armor = 36;
- };
- };
- };
- };
|