config.cpp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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 energy_shield_wall
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_energy_sheild_wall_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(energy_shield_wall)
  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(shield,object_1),
  23. macro_new_vehicle(shield,object_2),
  24. macro_new_vehicle(shield,object_3),
  25. macro_new_vehicle(shield,object_4),
  26. macro_new_vehicle(shield,object_5),
  27. macro_new_vehicle(shield,object_6)
  28. };
  29. weapons[]=
  30. {
  31. };
  32. };
  33. };
  34. #include "../../common/sensor_templates.hpp"
  35. class DefaultEventhandlers;
  36. class CfgVehicles
  37. {
  38. //O_JM_TX130_1 empire command
  39. //O_JM_TX130m1_1 normal
  40. //O_JM_TX130m2_1 super
  41. class House_F;
  42. class macro_new_vehicle(shield,object_1): House_F
  43. {
  44. scope = 2;
  45. scopeCurator = 2;
  46. author = "RD501";
  47. model = "\BlasterWallShield\SW_WallShield1.p3d";
  48. displayName = "501st Wall Energy Shield 1";
  49. vehicleClass = macro_editor_vehicle_type(statics)
  50. editorCategory = macro_editor_cat(statics)
  51. editorSubcategory = macro_editor_cat(wall)
  52. armor = 12000;
  53. mapSize = 0.1;
  54. picture = "";
  55. icon = "\BlastersquadShield\UI\icon_squadshield_ca.paa";
  56. accuracy = 1000;
  57. simulation = "fire";
  58. class DestructionEffects
  59. {
  60. };
  61. destrType = "DestructNo";
  62. keepHorizontalPlacement = 1;
  63. cost = 0;
  64. class EventHandlers : DefaultEventhandlers
  65. {
  66. init = "(_this select 0) inflame true";
  67. };
  68. class MarkerLights
  69. {
  70. class Light_1
  71. {
  72. color[] = {0, 0, 1};
  73. ambient[] = {0, 0, 0.01};
  74. intensity = 800;
  75. name = "Light_1_pos";
  76. blinking = 1;
  77. blinkingPattern[] = {2, 1};
  78. blinkingStartsOn = 1;
  79. blinkingPatternGuarantee = 1;
  80. useFlare = 1;
  81. flareSize = 1.5;
  82. flareMaxDistance = 1000;
  83. activeLight = 1;
  84. dayLight = 1;
  85. drawLight = 0;
  86. class Attenuation
  87. {
  88. start = 0;
  89. constant = 2;
  90. linear = 10;
  91. quadratic = 20;
  92. hardLimitStart = 5;
  93. hardLimitEnd = 6;
  94. };
  95. };
  96. };
  97. aggregateReflectors[] = {{"Light_1"}};
  98. class Reflectors
  99. {
  100. class Light_1
  101. {
  102. color[] = {2000, 2000, 7000};
  103. ambient[] = {2, 2, 7};
  104. intensity = 2;
  105. size = 1;
  106. innerAngle = 100;
  107. outerAngle = 165;
  108. coneFadeCoef = 4;
  109. position = "Light_1_pos";
  110. direction = "Light_1_dir";
  111. hitpoint = "Light_1_hide";
  112. selection = "Light_1_hide";
  113. activeLight = 1;
  114. dayLight = 1;
  115. drawLight = 0;
  116. useFlare = 1;
  117. flareSize = 2;
  118. flareMaxDistance = 130;
  119. class Attenuation
  120. {
  121. start = 0;
  122. constant = 0;
  123. linear = 0;
  124. quadratic = 0.3;
  125. hardLimitStart = 50;
  126. hardLimitEnd = 65;
  127. };
  128. };
  129. };
  130. class Damage
  131. {
  132. tex[] = {};
  133. mat[] = {};
  134. };
  135. };
  136. class macro_new_vehicle(shield,object_2): macro_new_vehicle(shield,object_1)
  137. {
  138. scope = 2;
  139. scopeCurator = 2;
  140. author = "RD501";
  141. model = "\BlasterWallShield\SW_WallShield2.p3d";
  142. displayName = "501st Wall Energy Shield 2";
  143. };
  144. class macro_new_vehicle(shield,object_3): macro_new_vehicle(shield,object_1)
  145. {
  146. scope = 2;
  147. scopeCurator = 2;
  148. author = "RD501";
  149. model = "\BlasterWallShield\SW_WallShield3.p3d";
  150. displayName = "501st Wall Energy Shield 3";
  151. };
  152. class macro_new_vehicle(shield,object_4): macro_new_vehicle(shield,object_1)
  153. {
  154. scope = 2;
  155. scopeCurator = 2;
  156. author = "RD501";
  157. model = "\BlasterWallShield\SW_WallShield4.p3d";
  158. displayName = "501st Wall Energy Shield 4";
  159. };
  160. class macro_new_vehicle(shield,object_5): macro_new_vehicle(shield,object_1)
  161. {
  162. scope = 2;
  163. scopeCurator = 2;
  164. author = "RD501";
  165. model = "\BlasterWallShield\SW_WallShield5.p3d";
  166. displayName = "501st Wall Energy Shield 5";
  167. };
  168. class macro_new_vehicle(shield,object_6): macro_new_vehicle(shield,object_1)
  169. {
  170. scope = 2;
  171. scopeCurator = 2;
  172. author = "RD501";
  173. model = "\BlasterWallShield\SW_WallShield6.p3d";
  174. displayName = "501st Wall Energy Shield 6";
  175. };
  176. };