config.cpp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. //Get this addons macro
  2. //get the macro for the air subaddon
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon Y_Wing
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_y_wing_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class RD501_patch_Y_Wing
  13. {
  14. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  15. requiredAddons[]=
  16. {
  17. RD501_patch_vehicles
  18. };
  19. requiredVersion=0.1;
  20. units[]=
  21. {
  22. macro_new_vehicle(Y_wing,MkII)
  23. };
  24. weapons[]=
  25. {
  26. };
  27. };
  28. };
  29. /*#include "../../common/sensor_templates.hpp"
  30. class CfgVehicles
  31. {
  32. class Plane_Base_F;
  33. class swop_ywing_base: Plane_Base_F
  34. {
  35. class Turrets;
  36. };
  37. class swop_ywclones: swop_ywing_base
  38. {
  39. class Turrets:Turrets
  40. {
  41. class MainTurret;
  42. };
  43. class AnimationSources;
  44. class ViewCargo;
  45. class NewTurret;
  46. class ACE_SelfActions;
  47. };
  48. class macro_new_vehicle(Y_wing,MkII):swop_ywclones
  49. {
  50. side=1;
  51. scope=2;
  52. displayName = "Y-Wing";
  53. forceInGarage = 1;
  54. armor=300;
  55. faction = MACRO_QUOTE(macro_faction(republic));
  56. editorSubcategory = macro_editor_cat_air(Republic_vtol)
  57. vehicleClass = macro_editor_vehicle_type_air(Republic)
  58. class UserActions
  59. {
  60. class fRepulsorBrake
  61. {
  62. condition = "";
  63. displayName = "";
  64. displayNameDefault = "";
  65. hideonuse = 1;
  66. onlyForPlayer = 0;
  67. position = "";
  68. priority = 1e+011;
  69. radius = ;
  70. shortcut = "";
  71. statement = """";
  72. textToolTip = "";
  73. userActionID = ;
  74. };
  75. #include "../../common/universal_dmg_report.hpp"
  76. };
  77. #include "common.hpp"
  78. class Sounds;
  79. class SoundsExt;
  80. class pilotCamera
  81. {
  82. class OpticsIn
  83. {
  84. class Wide
  85. {
  86. opticsDisplayName="WFOV";
  87. initAngleX=0;
  88. minAngleX=-10;
  89. maxAngleX=90;
  90. initAngleY=0;
  91. minAngleY=-90;
  92. maxAngleY=90;
  93. initFov=0.425;//"(30 / 120)";
  94. minFov=0.425;//"(30 / 120)";
  95. maxFov=0.425;//"(30 / 120)";
  96. directionStabilized=1;
  97. thermalMode[] = {0,1,2,3,4,5};
  98. visionMode[]=
  99. {
  100. "Normal",
  101. "NVG",
  102. "Ti"
  103. };
  104. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_wide_F.p3d";
  105. opticsPPEffects[]=
  106. {
  107. "OpticsCHAbera2",
  108. "OpticsBlur2"
  109. };
  110. };
  111. class zoomx4: Wide
  112. {
  113. opticsDisplayName="NFOV";
  114. initFov="(0.425/4)";//"(3.75 / 120)";
  115. minFov="(0.425/4)";//"(3.75 / 120)";
  116. maxFov="(0.425/4)";//"(3.75 / 120)";
  117. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  118. };
  119. class zoomX8: Wide
  120. {
  121. opticsDisplayName="NFOV";
  122. initFov="(0.42/8)";//"(.375 / 120)";
  123. minFov="(0.42/8)";//"(.375 / 120)";
  124. maxFov="(0.42/8)";//"(.375 / 120)";
  125. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  126. };
  127. class zoomX20: Wide
  128. {
  129. opticsDisplayName="NFOV";
  130. initFov="(0.42/20)";//"(.375 / 120)";
  131. minFov="(0.42/20)";//"(.375 / 120)";
  132. maxFov="(0.42/20)";//"(.375 / 120)";
  133. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  134. };
  135. class zoomX50: Wide
  136. {
  137. opticsDisplayName="NFOV";
  138. initFov="(0.42/50)";//"(.375 / 120)";
  139. minFov="(0.42/50)";//"(.375 / 120)";
  140. maxFov="(0.42/50)";//"(.375 / 120)";
  141. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  142. };
  143. class zoomX70: Wide
  144. {
  145. opticsDisplayName="NFOV";
  146. initFov="(0.42/70)";//"(.375 / 120)";
  147. minFov="(0.42/70)";//"(.375 / 120)";
  148. maxFov="(0.42/70)";//"(.375 / 120)";
  149. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  150. };
  151. showMiniMapInOptics=1;
  152. showUAVViewInOptics=0;
  153. showSlingLoadManagerInOptics=1;
  154. };
  155. minTurn=-180;
  156. maxTurn=180;
  157. initTurn=0;
  158. minElev=-10;
  159. maxElev=90;
  160. initElev=-10;
  161. maxXRotSpeed=0.30000001;
  162. maxYRotSpeed=0.30000001;
  163. pilotOpticsShowCursor=1;
  164. controllable=1;
  165. };
  166. weapons[] = {
  167. macro_basic_air_weapons,
  168. macro_new_weapon(voltic,y_wing),
  169. macro_new_weapon(wynd,agm),
  170. macro_new_weapon(wynd,lgm),
  171. macro_new_weapon(bomb,SDB),
  172. macro_new_weapon(bomb,LGB),
  173. macro_new_weapon(bomb,cluster),
  174. macro_new_weapon(bomb,cluster_emp),
  175. macro_new_weapon(bomb,carpet_I)
  176. };
  177. magazines[] = {
  178. macro_basic_air_mags,
  179. macro_new_mag(voltic,200),
  180. macro_new_mag(voltic,200),
  181. macro_new_mag(voltic,200),
  182. macro_new_mag(voltic,200),
  183. macro_new_mag(voltic,200),
  184. macro_new_mag(agm,6),
  185. macro_new_mag(agm,6),
  186. macro_new_mag(agm,6),
  187. macro_new_mag(agm,6),
  188. macro_new_mag(agm,6),
  189. macro_new_mag(lgm,4),
  190. macro_new_mag(lgm,4),
  191. macro_new_mag(lgm,4),
  192. macro_new_mag(carpet_I_bomb_mag,20),
  193. macro_new_mag(carpet_I_bomb_mag,20),
  194. macro_new_mag(cluster_bomb,4),
  195. macro_new_mag(cluster_bomb,4),
  196. macro_new_mag(cluster_bomb,4),
  197. macro_new_mag(cluster_emp,2),
  198. macro_new_mag(sdb_bomb,4),
  199. macro_new_mag(sdb_bomb,4),
  200. macro_new_mag(sdb_bomb,4),
  201. macro_new_mag(lgb_bomb,4),
  202. macro_new_mag(lgb_bomb,4),
  203. macro_new_mag(lgb_bomb,4)
  204. };
  205. };
  206. };*/