config.cpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 = "Nanobot Charge";
  32. descriptionShort = "No, you can't eat that!";
  33. picture = "\RD501_Weapons\Consumables\data\nanobot_charge_ico.paa";
  34. author = "RD501";
  35. class ItemInfo: CBA_MiscItem_ItemInfo
  36. {
  37. mass = 1;
  38. };
  39. };
  40. };
  41. class ACE_Medical_Treatment
  42. {
  43. class Morphine;
  44. class Medication
  45. {
  46. class RD501_Painkiller: Morphine
  47. {
  48. painReduce = 0.3;
  49. hrIncreaseLow[] = {-2,-4};
  50. hrIncreaseNormal[] = {-2,-6};
  51. hrIncreaseHigh[] = {-2,-7};
  52. timeInSystem = 600;
  53. timeTillMaxEffect = 30;
  54. maxDose = 10;
  55. incompatibleMedication[] = {};
  56. viscosityChange = -2;
  57. };
  58. };
  59. };
  60. class ACE_Medical_Treatment_Actions
  61. {
  62. class Morphine;
  63. class RD501_Painkiller:Morphine
  64. {
  65. displayName = "Painkiller Autoinjector";
  66. displayNameProgress = "Injecting Painkillers";
  67. allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
  68. items[] = {"RD501_Painkiller"};
  69. treatmentTime = 1;
  70. };
  71. };