config.cpp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. //get generlized macros
  2. #include "../../../RD501_main/config_macros.hpp"
  3. //General name of the vehicle
  4. #define vehicle_addon E_Web
  5. #define patch_name MODNAME##vehicle_addon##_Patches
  6. #define vehicle_classname MODNAME##_##vehicle_addon
  7. #define macro_new_E_Web_class(name) vehicle_classname##_##name
  8. class CfgPatches
  9. {
  10. class macro_patch_name(E_Web)
  11. {
  12. addonRootClass=macro_patch_name(vehicles)
  13. requiredAddons[]=
  14. {
  15. macro_patch_name(vehicles)
  16. };
  17. requiredVersion=0.1;
  18. units[]=
  19. {
  20. macro_new_vehicle(e_web,shield_uav),
  21. macro_new_vehicle(e_web,shield),
  22. macro_new_vehicle(e_web,uav),
  23. "SW_halfshieldObject",
  24. macro_new_vehicle(e_web,cis),
  25. macro_new_vehicle(e_web,heavy)
  26. };
  27. weapons[]=
  28. {
  29. };
  30. };
  31. };
  32. #include "../../common/sensor_templates.hpp"
  33. class DefaultEventhandlers;
  34. class CfgVehicles
  35. {
  36. class House_F;
  37. class StaticMGWeapon
  38. {
  39. class turrets;
  40. };
  41. class EWEBSWBF: StaticMGWeapon
  42. {
  43. class turrets: turrets
  44. {
  45. class mainturret;
  46. };
  47. };
  48. class SW_halfshieldObject:House_F
  49. {
  50. faction = "Default";
  51. side = 3;
  52. scope = 2;
  53. scopeCurator = 2;
  54. displayName = "Half Shield";
  55. editorCategory = "SWOP_EditorCategory_Objects";
  56. editorSubcategory = "SWOP_EditorSubcategory_Other";
  57. };
  58. class macro_new_vehicle(e_web,shield): EWEBSWBF
  59. {
  60. author = "RD501";
  61. armor = 90;
  62. displayName = "Shielded E-Web";
  63. faction = macro_cis_faction
  64. editorSubcategory = macro_editor_cat(turrets)
  65. vehicleClass = macro_editor_vehicle_type(turrets)
  66. crew=macro_new_unit_class(opfor,B1_crew)
  67. typicalCargo[] = {"SWOP_CIS_droid_crew"};
  68. class EventHandlers :DefaultEventhandlers {};
  69. };
  70. class macro_new_vehicle(e_web,shield_uav) : macro_new_vehicle(e_web,shield)
  71. {
  72. displayName = "Shielded E-Web (UAV)";
  73. crew = "O_UAV_AI";
  74. typicalCargo[] = {"O_UAV_AI"};
  75. isUav=1;
  76. uavCameraGunnerPos = "PiP0_pos";
  77. uavCameraGunnerDir = "PiP0_dir";
  78. class EventHandlers :DefaultEventhandlers {};
  79. };
  80. class macro_new_vehicle(e_web,uav): EWEBSWBF
  81. {
  82. displayName = "E-Web (UAV)";
  83. crew = "O_UAV_AI";
  84. typicalCargo[] = {"O_UAV_AI"};
  85. isUav=1;
  86. uavCameraGunnerPos = "PiP0_pos";
  87. uavCameraGunnerDir = "PiP0_dir";
  88. author = "RD501";
  89. faction = macro_cis_faction
  90. editorSubcategory = macro_editor_cat(turrets)
  91. vehicleClass = macro_editor_vehicle_type(turrets)
  92. class EventHandlers :DefaultEventhandlers {};
  93. };
  94. class macro_new_vehicle(e_web,cis): EWEBSWBF
  95. {
  96. author = "RD501";
  97. scope = 2;
  98. displayname =" E-WEB (CIS)";
  99. scopeCurator = 2;
  100. mapSize = 4;
  101. crew=macro_new_unit_class(opfor,B1_crew)
  102. faction = macro_cis_faction
  103. editorSubcategory = macro_editor_cat(turrets)
  104. vehicleClass = macro_editor_vehicle_type(turrets)
  105. class assembleInfo
  106. {
  107. primary = 1;
  108. base = "";
  109. assembleTo = "";
  110. displayName = "";
  111. dissasembleTo[] = {macro_new_vehicle(blufor,eweb_bag)};
  112. };
  113. class EventHandlers :DefaultEventhandlers {};
  114. };
  115. class macro_new_vehicle(e_web,heavy): EWEBSWBF
  116. {
  117. author = "RD501";
  118. scope = 2;
  119. side = 1;
  120. displayname = "[PROTOTYPE] Heavy E-WEB Cannon";
  121. scopeCurator = 2;
  122. mapSize = 4;
  123. crew = "SWOP_L501P1_Fives";
  124. class turrets: turrets
  125. {
  126. class mainturret: mainturret
  127. {
  128. weapons[] =
  129. {
  130. "RD501_RAMER"
  131. };
  132. magazines[] =
  133. {
  134. "RD501_RAMER_x6_mag",
  135. "RD501_RAMER_x6_mag",
  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. };
  147. };
  148. };
  149. faction = macro_republic_faction
  150. editorSubcategory = macro_editor_cat(turrets)
  151. vehicleClass = macro_editor_vehicle_type(turrets)
  152. class assembleInfo
  153. {
  154. primary = 1;
  155. base = "";
  156. assembleTo = "";
  157. displayName = "E-Web Cannon Backpack";
  158. dissasembleTo[] = {macro_new_backpack_class(blufor,eweb_bag)};
  159. };
  160. };
  161. };