config.cpp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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=macro_new_unit_class(opfor,B1_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=macro_new_unit_class(opfor,B1_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. side = 1;
  122. displayname = "[PROTOTYPE] Heavy E-WEB Cannon";
  123. scopeCurator = 2;
  124. mapSize = 4;
  125. crew = "SWOP_L501P1_Fives";
  126. class turrets: turrets
  127. {
  128. class mainturret: mainturret
  129. {
  130. weapons[] =
  131. {
  132. "RD501_RAMER"
  133. };
  134. magazines[] =
  135. {
  136. "RD501_RAMER_x6_mag",
  137. "RD501_RAMER_x6_mag",
  138. "RD501_RAMER_x6_mag",
  139. "RD501_RAMER_x6_mag",
  140. "RD501_RAMER_x6_mag",
  141. "RD501_RAMER_x6_mag",
  142. "RD501_RAMER_x6_mag",
  143. "RD501_RAMER_x6_mag",
  144. "RD501_RAMER_x6_mag",
  145. "RD501_RAMER_x6_mag",
  146. "RD501_RAMER_x6_mag",
  147. "RD501_RAMER_x6_mag"
  148. };
  149. };
  150. };
  151. faction = macro_republic_faction
  152. editorSubcategory = macro_editor_cat(turrets)
  153. vehicleClass = macro_editor_vehicle_type(turrets)
  154. class EventHandlers :DefaultEventhandlers
  155. {
  156. init = "[_this select 0] execVM 'RD501_Vehicles\land\E_Web\setmass.sqf'";
  157. };
  158. class assembleInfo
  159. {
  160. primary = 1;
  161. base = "";
  162. assembleTo = "";
  163. displayName = "E-Web Cannon Backpack";
  164. dissasembleTo[] = {macro_new_backpack_class(blufor,eweb_bag)};
  165. };
  166. };
  167. };