config.cpp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. //Get this addons macro
  2. //get the macro for the air RD501_patch_vehicles
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon homing_spider_droid
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_og_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class RD501_patch_homing_spider_droid
  13. {
  14. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  15. requiredAddons[]=
  16. {
  17. RD501_patch_vehicles
  18. };
  19. requiredVersion=0.1;
  20. units[]=
  21. {
  22. macro_new_vehicle(homing_spider_droid,MKII),
  23. macro_new_vehicle(homing_spider_droid,Moveable_MKII)
  24. };
  25. weapons[]=
  26. {
  27. };
  28. };
  29. };
  30. #include "../../common/sensor_templates.hpp"
  31. class DefaultEventhandlers ;
  32. class CfgVehicles
  33. {
  34. class StaticWeapon;
  35. class StaticMGWeapon : StaticWeapon
  36. {
  37. class Turrets;
  38. };
  39. class SpiderOG : StaticMGWeapon
  40. {
  41. class Turrets : Turrets
  42. {
  43. class MainTurret;
  44. };
  45. };
  46. class macro_new_vehicle(homing_spider_droid,MKII) :SpiderOG
  47. {
  48. armor = 250*2;
  49. forceInGarage = 1;
  50. scope=2;
  51. author= "RD501";
  52. displayName="OG-10 H.S.D 'The Eye'";
  53. faction = MACRO_QUOTE(macro_faction(CIS));
  54. editorSubcategory = MACRO_QUOTE(macro_editor_cat(turrets));
  55. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(turrets));
  56. class Turrets: Turrets
  57. {
  58. class MainTurret: MainTurret
  59. {
  60. weapons[] = {
  61. macro_new_weapon(spider,homing)
  62. };
  63. magazines[] = {
  64. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  65. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  66. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  67. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  68. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  69. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  70. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  71. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  72. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  73. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  74. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  75. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  76. };
  77. minElev = -30;
  78. maxElev = 30;
  79. initElev = 10;
  80. startEngine = 0;
  81. minTurn = -360;
  82. maxTurn = 360;
  83. initTurn = 0;
  84. };
  85. };
  86. class EventHandlers :DefaultEventhandlers {};
  87. };
  88. class macro_new_vehicle(homing_spider_droid,Moveable_MKII) :macro_new_vehicle(homing_spider_droid,MKII)
  89. {
  90. forceInGarage = 1;
  91. displayName = "Moveable OG-10 HSD";
  92. };
  93. };