config.cpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #include "../../RD501_main/config_macros.hpp"
  2. class cfgPatches
  3. {
  4. class RD501_ACE_Medical
  5. {
  6. requiredAddons[] = {};
  7. units[]={};
  8. weapons[]={"RD501_Painkiller"};
  9. };
  10. };
  11. class CfgWeapons
  12. {
  13. class ACE_ItemCore;
  14. class CBA_MiscItem_ItemInfo;
  15. class RD501_Painkiller: ACE_ItemCore
  16. {
  17. scope = 2;
  18. displayName = "Painkiller Autoinjector";
  19. picture = "\z\ace\addons\medical_treatment\ui\morphine_ca.paa";
  20. model = "\z\ace\addons\medical_treatment\data\morphine.p3d";
  21. descriptionShort = "Painkillers";
  22. descriptionUse = "Inbuilt Clone Armor injector for easy pain relief";
  23. class ItemInfo: CBA_MiscItem_ItemInfo
  24. {
  25. mass = 0.1;
  26. };
  27. };
  28. class MCC_bacon;
  29. class macro_new_weapon(fortify,nanobots): MCC_bacon
  30. {
  31. displayName = "RD501 Nanobot Charge";
  32. descriptionShort = "No, you can't eat that!";
  33. picture = "\RD501_Weapons\Consumables\data\nanobot_charge_ico.paa";
  34. author = "RD501";
  35. mass = 1;
  36. };
  37. };
  38. class ACE_Medical_Treatment
  39. {
  40. class Morphine;
  41. class Medication
  42. {
  43. class RD501_Painkiller: Morphine
  44. {
  45. painReduce = 0.3;
  46. hrIncreaseLow[] = {-2,-4};
  47. hrIncreaseNormal[] = {-2,-6};
  48. hrIncreaseHigh[] = {-2,-7};
  49. timeInSystem = 600;
  50. timeTillMaxEffect = 30;
  51. maxDose = 10;
  52. incompatibleMedication[] = {};
  53. viscosityChange = -2;
  54. };
  55. };
  56. };
  57. class ACE_Medical_Treatment_Actions
  58. {
  59. class Morphine;
  60. class RD501_Painkiller:Morphine
  61. {
  62. displayName = "Painkiller Autoinjector";
  63. displayNameProgress = "Injecting Painkillers";
  64. allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
  65. items[] = {"RD501_Painkiller"};
  66. treatmentTime = 1;
  67. };
  68. };