config.cpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. class cfgPatches
  2. {
  3. class RD501_ACE_Medical
  4. {
  5. requiredAddons[] = {};
  6. units[]={};
  7. weapons[]={"RD501_Painkiller"};
  8. };
  9. };
  10. class CfgWeapons
  11. {
  12. class ACE_ItemCore;
  13. class CBA_MiscItem_ItemInfo;
  14. class RD501_Painkiller: ACE_ItemCore
  15. {
  16. scope = 2;
  17. displayName = "Painkiller Autoinjector";
  18. picture = "\z\ace\addons\medical_treatment\ui\morphine_ca.paa";
  19. model = "\z\ace\addons\medical_treatment\data\morphine.p3d";
  20. descriptionShort = "Drink some water and Rest";
  21. descriptionUse = "Inbuilt Clone Armor injector for easy pain relief";
  22. class ItemInfo: CBA_MiscItem_ItemInfo
  23. {
  24. mass = 0.1;
  25. };
  26. };
  27. };
  28. class ACE_Medical_Treatment
  29. {
  30. class Morphine;
  31. class Medication
  32. {
  33. class RD501_Painkiller: Morphine
  34. {
  35. painReduce = 0.3;
  36. hrIncreaseLow[] = {-2,-4};
  37. hrIncreaseNormal[] = {-2,-6};
  38. hrIncreaseHigh[] = {-2,-7};
  39. timeInSystem = 600;
  40. timeTillMaxEffect = 30;
  41. maxDose = 10;
  42. incompatibleMedication[] = {};
  43. viscosityChange = -2;
  44. };
  45. };
  46. };
  47. class ACE_Medical_Treatment_Actions
  48. {
  49. class Morphine;
  50. class RD501_Painkiller:Morphine
  51. {
  52. displayName = "Painkiller Autoinjector";
  53. displayNameProgress = "Injecting Painkillers";
  54. allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
  55. items[] = {"RD501_Painkiller"};
  56. treatmentTime = 1;
  57. };
  58. };