config.cpp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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="Tempest Light Infantry Transport (CIS)"
  41. crew = "SWOP_CIS_droid_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(APC)
  53. vehicleClass = macro_editor_vehicle_type(APC)
  54. class EventHandlers :DefaultEventhandlers {};
  55. #include "sounds.hpp"
  56. };
  57. class macro_new_vehicle(light_infantry_transport,Rep_MkII):macro_new_vehicle(light_infantry_transport,CIS_MkII)
  58. {
  59. side=1;
  60. scope=2;
  61. forceInGarage = 1;
  62. displayName="Tempest Light Infantry Transport (Republic)"
  63. crew = "SWOP_Clonetrooper_P1";
  64. faction = macro_republic_faction
  65. editorSubcategory = macro_editor_cat(APC)
  66. vehicleClass = macro_editor_vehicle_type(APC)
  67. hiddenSelectionsTextures[] =
  68. {
  69. macro_vehicle_textures\Tempest\Rep_Temp_Ext.paa,
  70. "",
  71. "a3\static_f_jets\aaa_system_01\data\aaa_system_01_co.paa",
  72. macro_vehicle_textures\Tempest\REP_Temp_Cover.paa
  73. };
  74. };
  75. };