config.cpp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 light_infantry_transport
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_lit_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(light_infantry_transport)
  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(light_infantry_transport,CIS_MkII),
  23. macro_new_vehicle(light_infantry_transport,Rep_MkII)
  24. };
  25. weapons[]=
  26. {
  27. };
  28. };
  29. };
  30. #include "../../common/sensor_templates.hpp"
  31. class DefaultEventhandlers ;
  32. class CfgVehicles
  33. {
  34. #include "inheritance.hpp"
  35. class macro_new_vehicle(light_infantry_transport,CIS_MkII):O_Truck_03_covered_F
  36. {
  37. scope=2;
  38. scopeCurator=2;
  39. forceInGarage = 1;
  40. displayName="CIS Tempest"
  41. crew=macro_new_unit_class(opfor,B1_crew)
  42. hiddenSelections[] = {"Camo1", "Camo2", "Camo3", "Camo4"};
  43. textureList[] = {};
  44. hiddenSelectionsTextures[] =
  45. {
  46. macro_vehicle_textures\Tempest\CIS_Tempest_Ext.paa,
  47. "",
  48. "a3\static_f_jets\aaa_system_01\data\aaa_system_01_co.paa",
  49. macro_vehicle_textures\Tempest\CIS_Tempest_Cover.paa
  50. };
  51. faction = macro_cis_faction
  52. editorSubcategory = macro_editor_cat(Transport)
  53. vehicleClass = macro_editor_vehicle_type(Transport)
  54. class EventHandlers
  55. {
  56. init = "[_this select 0] execVM 'RD501_Vehicles\_init_functions\wheel_dmg.sqf';";
  57. };
  58. #include "sounds.hpp"
  59. };
  60. class macro_new_vehicle(light_infantry_transport,Rep_MkII):macro_new_vehicle(light_infantry_transport,CIS_MkII)
  61. {
  62. side=1;
  63. scope=2;
  64. forceInGarage = 1;
  65. displayName="Republic Tempest"
  66. crew = "SWOP_Clonetrooper_P1";
  67. faction = macro_republic_faction
  68. editorSubcategory = macro_editor_cat(Transport)
  69. vehicleClass = macro_editor_vehicle_type(Transport)
  70. class EventHandlers
  71. {
  72. init = "[_this select 0] execVM 'RD501_Vehicles\_init_functions\wheel_dmg.sqf';";
  73. };
  74. hiddenSelectionsTextures[] =
  75. {
  76. macro_vehicle_textures\Tempest\Rep_Temp_Ext.paa,
  77. "",
  78. "a3\static_f_jets\aaa_system_01\data\aaa_system_01_co.paa",
  79. macro_vehicle_textures\Tempest\REP_Temp_Cover.paa
  80. };
  81. };
  82. };