1
0

config.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. //Get this addons macro
  2. //get the macro for the air macro_patch_name(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 macro_patch_name(homing_spider_droid)
  13. {
  14. addonRootClass=macro_patch_name(vehicles)
  15. requiredAddons[]=
  16. {
  17. macro_patch_name(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. #include "inheritance.hpp"
  35. class macro_new_vehicle(homing_spider_droid,MKII) :SpiderOG
  36. {
  37. armor = 250*2;
  38. forceInGarage = 1;
  39. scope=2;
  40. author= "RD501";
  41. displayName="OG-10 H.S.D 'The Eye'";
  42. faction = macro_cis_faction
  43. editorSubcategory = macro_editor_cat(turrets)
  44. vehicleClass = macro_editor_vehicle_type(turrets)
  45. class Turrets: Turrets
  46. {
  47. class MainTurret: MainTurret
  48. {
  49. weapons[] = {
  50. macro_new_weapon(spider,homing)
  51. };
  52. magazines[] = {
  53. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  54. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  55. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  56. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  57. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  58. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  59. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  60. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  61. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  62. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  63. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  64. macro_new_mag(homing_spider,10), macro_new_mag(homing_spider,10),
  65. };
  66. minElev = -30;
  67. maxElev = 30;
  68. initElev = 10;
  69. startEngine = 0;
  70. minTurn = -360;
  71. maxTurn = 360;
  72. initTurn = 0;
  73. };
  74. };
  75. class EventHandlers :DefaultEventhandlers {};
  76. };
  77. class macro_new_vehicle(homing_spider_droid,Moveable_MKII) :macro_new_vehicle(homing_spider_droid,MKII)
  78. {
  79. forceInGarage = 1;
  80. displayName = "Moveable OG-10 HSD";
  81. };
  82. };