config.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #define COMPONENT E5
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(e5)
  7. {
  8. author=DANKAUTHORS;
  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(e5,c)
  18. macro_new_weapon(e5,aqua)
  19. };
  20. };
  21. };
  22. class Mode_FullAuto;
  23. class cfgWeapons
  24. {
  25. class SWOP_BlasterRifle_Base;
  26. class SWOP_E5:SWOP_BlasterRifle_Base
  27. {
  28. class GunParticles;
  29. };
  30. class macro_new_weapon(e5,aqua): SWOP_E5
  31. {
  32. dlc = "rd501";
  33. author = "RD501";
  34. scope = 2;
  35. displayname = "E5-A Blaster Rifle";
  36. baseweapon = "E5-A Blaster Rifle";
  37. canShootInWater = 1;
  38. //magazines[] = {"RD501_Aqua_E5_Mag","RD501_Aqua_E5_Mag","RD501_Aqua_E5_Mag","RD501_Aqua_E5_Mag","RD501_Aqua_E5_Mag","RD501_Aqua_E5_Mag","RD501_Aqua_E5_Mag"};
  39. descriptionShort = "Submersible E5 Rifle";
  40. selectionFireAnim = "muzzleFlash";
  41. magazines[]={macro_new_mag(E5_aqua,60)};
  42. class GunParticles : GunParticles
  43. { class SecondEffect
  44. {
  45. effectName = "ShotUnderwater";
  46. positionName = "barrel";
  47. directionName = "Tip";
  48. };
  49. };
  50. };
  51. };