config.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #define COMPONENT E5_C
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(e5_c)
  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. "SWOP_E5C",
  19. macro_new_weapon(e5,C)
  20. };
  21. };
  22. };
  23. class Mode_FullAuto;
  24. class cfgWeapons
  25. {
  26. class SWOP_BlasterRifle_Base;
  27. class SWOP_E5C: SWOP_BlasterRifle_Base
  28. {
  29. displayName="E5 C Heavy Blaster";
  30. class FullAuto:Mode_FullAuto
  31. {
  32. dispersion = E5_C_accuracy
  33. reloadTime = E5_C_reloadtime_auto
  34. };
  35. class GunParticles;
  36. };
  37. class macro_new_weapon(e5,C): SWOP_E5C
  38. {
  39. dlc = "rd501";
  40. author = "RD501";
  41. scope = 2;
  42. displayname = "CIS E5C-A Blaster Rifle";
  43. baseweapon = "E5C-A Blaster Rifle";
  44. canShootInWater = 1;
  45. magazines[] = {macro_new_mag(20mw,90)};
  46. descriptionShort = "E5C Rifle";
  47. selectionFireAnim = "muzzleFlash";
  48. magazines[]={macro_new_mag(E5c_aqua,90)};
  49. class GunParticles : GunParticles
  50. { class SecondEffect
  51. {
  52. effectName = "ShotUnderwater";
  53. positionName = "barrel";
  54. directionName = "Tip";
  55. };
  56. };
  57. };
  58. };