config.cpp 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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 E_Web
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_E_Web_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(E_Web)
  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(e_web,shield_uav),
  23. macro_new_vehicle(e_web,shield),
  24. macro_new_vehicle(e_web,uav),
  25. "SW_halfshieldObject",
  26. macro_new_vehicle(e_web,cis),
  27. macro_new_vehicle(e_web,heavy)
  28. };
  29. weapons[]=
  30. {
  31. };
  32. };
  33. };
  34. #include "../../common/sensor_templates.hpp"
  35. class DefaultEventhandlers;
  36. class CfgVehicles
  37. {
  38. class House_F;
  39. class StaticMGWeapon
  40. {
  41. class turrets;
  42. };
  43. class EWEBSWBF: StaticMGWeapon
  44. {
  45. class turrets: turrets
  46. {
  47. class mainturret;
  48. };
  49. };
  50. class SW_halfshieldObject:House_F
  51. {
  52. faction = "Default";
  53. side = 3;
  54. scope = 2;
  55. scopeCurator = 2;
  56. displayName = "Half Shield";
  57. editorCategory = "SWOP_EditorCategory_Objects";
  58. editorSubcategory = "SWOP_EditorSubcategory_Other";
  59. };
  60. class macro_new_vehicle(e_web,shield): EWEBSWBF
  61. {
  62. author = "RD501";
  63. armor = 90;
  64. displayName = "Shielded E-Web";
  65. faction = macro_cis_faction
  66. editorSubcategory = macro_editor_cat(turrets)
  67. vehicleClass = macro_editor_vehicle_type(turrets)
  68. crew = "SWOP_CIS_droid_crew";
  69. typicalCargo[] = {"SWOP_CIS_droid_crew"};
  70. class EventHandlers :DefaultEventhandlers {};
  71. };
  72. class macro_new_vehicle(e_web,shield_uav) : macro_new_vehicle(e_web,shield)
  73. {
  74. displayName = "Shielded E-Web (UAV)";
  75. crew = "O_UAV_AI";
  76. typicalCargo[] = {"O_UAV_AI"};
  77. isUav=1;
  78. uavCameraGunnerPos = "PiP0_pos";
  79. uavCameraGunnerDir = "PiP0_dir";
  80. class EventHandlers :DefaultEventhandlers {};
  81. };
  82. class macro_new_vehicle(e_web,uav): EWEBSWBF
  83. {
  84. displayName = "E-Web (UAV)";
  85. crew = "O_UAV_AI";
  86. typicalCargo[] = {"O_UAV_AI"};
  87. isUav=1;
  88. uavCameraGunnerPos = "PiP0_pos";
  89. uavCameraGunnerDir = "PiP0_dir";
  90. author = "RD501";
  91. faction = macro_cis_faction
  92. editorSubcategory = macro_editor_cat(turrets)
  93. vehicleClass = macro_editor_vehicle_type(turrets)
  94. class EventHandlers :DefaultEventhandlers {};
  95. };
  96. class macro_new_vehicle(e_web,cis): EWEBSWBF
  97. {
  98. author = "RD501";
  99. scope = 2;
  100. displayname =" E-WEB (CIS)";
  101. scopeCurator = 2;
  102. mapSize = 4;
  103. crew = "SWOP_CIS_droid_crew";
  104. faction = macro_cis_faction
  105. editorSubcategory = macro_editor_cat(turrets)
  106. vehicleClass = macro_editor_vehicle_type(turrets)
  107. class assembleInfo
  108. {
  109. primary = 1;
  110. base = "";
  111. assembleTo = "";
  112. displayName = "";
  113. dissasembleTo[] = {"RD501_cis_backpacks_eweb_bag"};
  114. };
  115. class EventHandlers :DefaultEventhandlers {};
  116. };
  117. class macro_new_vehicle(e_web,heavy): EWEBSWBF
  118. {
  119. author = "RD501";
  120. scope = 2;
  121. displayname = "[PROTOTYPE] Heavy E-WEB Cannon";
  122. scopeCurator = 2;
  123. mapSize = 4;
  124. crew = "SWOP_L501P1_Fives";
  125. class turrets: turrets
  126. {
  127. class mainturret: mainturret
  128. {
  129. weapons[] =
  130. {
  131. macro_new_weapon(mynock_cannon,mbt)
  132. };
  133. magazines[] =
  134. {
  135. macro_new_mag(mynock_mbt_ap,12),
  136. macro_new_mag(mynock_mbt_he,12),
  137. macro_new_mag(mynock_mbt_ap,12),
  138. macro_new_mag(mynock_mbt_he,12)
  139. };
  140. };
  141. };
  142. faction = macro_republic_faction
  143. editorSubcategory = macro_editor_cat(turrets)
  144. vehicleClass = macro_editor_vehicle_type(turrets)
  145. class EventHandlers :DefaultEventhandlers
  146. {
  147. init = "[_this select 0] execVM 'RD501_Vehicles\land\E_Web\setmass.sqf'";
  148. };
  149. class assembleInfo
  150. {
  151. primary = 1;
  152. base = "";
  153. assembleTo = "";
  154. displayName = "E-Web Cannon Backpack";
  155. dissasembleTo[] = {macro_new_backpack_class(blufor,eweb_bag)};
  156. };
  157. };
  158. };