config.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #define COMPONENT RPS6
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(RPS6)
  7. {
  8. author="RD501";
  9. addonRootClass= macro_patch_name(weapons)
  10. requiredAddons[]=
  11. {
  12. macro_patch_name(weapons)
  13. };
  14. requiredVersion=0.1;
  15. units[]={};
  16. weapons[]={
  17. macro_new_weapon(launcher,RPS6)
  18. };
  19. };
  20. };
  21. class CfgWeapons
  22. { class Launcher_Base_F;
  23. class 3AS_RPS6_HP:Launcher_Base_F
  24. {
  25. class OpticsModes{class optic;};
  26. };
  27. class macro_new_weapon(launcher,RPS6):3AS_RPS6_HP
  28. {
  29. scope=2;
  30. canLock = 2;
  31. airLock=2;
  32. displayName="Republic RPS6 Launcher";
  33. weaponInfoType="RscOptics_titan";
  34. modelOptics="\A3\Weapons_F_Beta\acc\reticle_titan.p3d";
  35. icon = "\RD501_Weapons\Launchers\RPS6\icon.paa";
  36. picture = "\RD501_Weapons\Launchers\RPS6\icon.paa";
  37. nameSound="aalauncher";
  38. magazines[]=
  39. {
  40. macro_new_mag(RPS_AT,1),
  41. macro_new_mag(RPS_AA,1)
  42. };
  43. class OpticsModes
  44. {
  45. class StepScope
  46. {
  47. opticsID=1;
  48. useModelOptics=1;
  49. opticsPPEffects[]=
  50. {
  51. "OpticsCHAbera1",
  52. "OpticsBlur1"
  53. };
  54. opticsFlare=0;
  55. opticsZoomInit =scope_magnification(1); //0.1083;
  56. opticsZoomMax = scope_magnification(1); //0.1083;
  57. opticsZoomMin = scope_magnification(6); //0.1083;
  58. distanceZoomMin=300;
  59. distanceZoomMax=300;
  60. memoryPointCamera="eye";
  61. cameraDir="look";
  62. visionMode[]=
  63. {
  64. "Normal",
  65. "NVG",
  66. "Ti"
  67. };
  68. thermalMode[]={0};
  69. opticsDisablePeripherialVision=1;
  70. discretefov[] = {scope_magnification(1),scope_magnification(3),scope_magnification(6)};
  71. discreteInitIndex=0;
  72. };
  73. };
  74. };
  75. };