123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- //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 homing_spider_droid
- #define patch_name MODNAME##vehicle_addon##_Patches
- #define vehicle_classname MODNAME##_##vehicle_addon
- #define new_og_class(name) vehicle_classname##_##name
- class CfgPatches
- {
- class RD501_patch_homing_spider_droid
- {
- addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
- requiredAddons[]=
- {
- RD501_patch_vehicles
- };
- requiredVersion=0.1;
- units[]=
- {
- macro_new_vehicle(homing_spider_droid,MKII),
- macro_new_vehicle(homing_spider_droid,Moveable_MKII)
- };
- weapons[]=
- {
-
- };
- };
- };
- #include "../../common/sensor_templates.hpp"
- class DefaultEventhandlers ;
- class CfgVehicles
- {
- class StaticWeapon;
- class StaticMGWeapon : StaticWeapon
- {
- class Turrets;
- };
- class SpiderOG : StaticMGWeapon
- {
- class Turrets : Turrets
- {
- class MainTurret;
- };
- };
- class macro_new_vehicle(homing_spider_droid,MKII) :SpiderOG
- {
- armor = 250*2;
- forceInGarage = 1;
- scope=2;
- author= "RD501";
- displayName="OG-10 H.S.D 'The Eye'";
- faction = MACRO_QUOTE(macro_faction(CIS));
- editorSubcategory = MACRO_QUOTE(macro_editor_cat(turrets));
- vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(turrets));
-
- class Turrets: Turrets
- {
- class MainTurret: MainTurret
- {
- weapons[] = {
- macro_new_weapon(spider,homing)
- };
- magazines[] = {
- macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
- macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
- macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
- macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
- macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
- macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
- macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
- macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
- macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
- macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
- macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
- macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
- };
- minElev = -30;
- maxElev = 30;
- initElev = 10;
- startEngine = 0;
- minTurn = -360;
- maxTurn = 360;
- initTurn = 0;
- };
- };
- class EventHandlers :DefaultEventhandlers {};
- };
- class macro_new_vehicle(homing_spider_droid,Moveable_MKII) :macro_new_vehicle(homing_spider_droid,MKII)
- {
- forceInGarage = 1;
- displayName = "Moveable OG-10 HSD";
- };
- };
|