Skip to content

Commit

Permalink
adds Doxapram
Browse files Browse the repository at this point in the history
  • Loading branch information
Cplhardcore committed Dec 19, 2024
1 parent b7b0deb commit 2a5c578
Show file tree
Hide file tree
Showing 8 changed files with 159 additions and 20 deletions.
3 changes: 2 additions & 1 deletion addons/gui/functions/fnc_updateMedications.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ disableSerialization;
"kat_adenosineIV",
"kat_atropineIV",
"kat_alteplase",
"ACE_salineIV_250"
"ACE_salineIV_250",
"kat_doxapram"
];

private _medicationsFound = {
Expand Down
31 changes: 29 additions & 2 deletions addons/pharma/ACE_Medical_Treatment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ class ACE_ADDON(Medical_Treatment) {
incompatibleMedication[] = {};
viscosityChange = 0;
onOverDose = "";
respiratoryRate = 0.1;
};
class BubbleWrap {
painReduce = 0.05;
Expand Down Expand Up @@ -589,7 +590,7 @@ class ACE_ADDON(Medical_Treatment) {
dose = 1;
viscosityChange = 10;
opioidEffect = 0.18;
respiratoryRate = -0.3;
respiratoryRate = -0.2;
};
class syringe_ketamine_5ml_3 {
painReduce = 0.8;
Expand All @@ -602,7 +603,7 @@ class ACE_ADDON(Medical_Treatment) {
viscosityChange = 10;
onOverDose = "";
opioidEffect = 0.21;
respiratoryRate = -0.4;
respiratoryRate = -0.3;
};
class syringe_nalbuphine_5ml_1 {
painReduce = 0.5;
Expand Down Expand Up @@ -792,6 +793,26 @@ class ACE_ADDON(Medical_Treatment) {
dose = 3;
viscosityChange = 0;
};
class syringe_doxapram_5ml_1 {
painReduce = 0;
hrIncreaseLow[] = {-3, -10};
hrIncreaseNormal[] = {-5, -10};
hrIncreaseHigh[] = {-5, -15};
timeInSystem = 180;
timeTillMaxEffect = 15;
dose = 1;
viscosityChange = 0;
};
class syringe_doxapram_5ml_3 {
painReduce = 0;
hrIncreaseLow[] = {-3, -10};
hrIncreaseNormal[] = {-5, -15};
hrIncreaseHigh[] = {-5, -20};
timeInSystem = 180;
timeTillMaxEffect = 15;
dose = 3;
viscosityChange = 0;
};
class syringe_alteplase_5ml_3 {
painReduce = 0;
hrIncreaseLow[] = {-4, -10};
Expand Down Expand Up @@ -1021,5 +1042,11 @@ class ACE_ADDON(Medical_Treatment) {
incompatibleMedication[] = {};
onOverDose = "";
};
class syringe_doxapram {
maxDose = 3;
maxDoseDeviation = 2;
incompatibleMedication[] = {};
onOverDose = "";
};
};
};
52 changes: 35 additions & 17 deletions addons/pharma/ACE_Medical_Treatment_Actions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,25 @@ class ACE_Medical_Treatment_Actions {
callbackSuccess = QFUNC(medication);
sounds[] = {};
};
class syringe_lidocaine_10ml_1: syringe_TXA_10ml_1 {
class syringe_doxapram_5ml_1: syringe_EACA_5ml_1 {
displayName = CSTRING(push_doxapram_IV_1);
displayNameProgress = CSTRING(pushing_doxapram_IV_1);
allowedSelections[] = {"Body", "LeftArm", "RightArm", "LeftLeg", "RightLeg"};
allowSelfTreatment = 1;
medicRequired = QGVAR(medLvl_doxapram);
treatmentTime = QGVAR(treatmentTime_doxapram);
items[] = {"kat_syringe_doxapram_5ml_1"};
callbackSuccess = QFUNC(medication);
sounds[] = {};
};
class syringe_doxapram_5ml_3: syringe_doxapram_5ml_1 {
displayName = CSTRING(push_doxapram_IV_3);
displayNameProgress = CSTRING(pushing_doxapram_IV_3);
items[] = {"kat_syringe_doxapram_5ml_3"};
callbackSuccess = QFUNC(medication);
sounds[] = {};
};
class syringe_lidocaine_10ml_1: syringe_TXA_10ml_1 {
displayName = CSTRING(inject_lidocaine_IM_1);
displayNameProgress = CSTRING(injecting_lidocaine_IM_1);
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
Expand Down Expand Up @@ -937,20 +955,20 @@ class ACE_Medical_Treatment_Actions {
callbackSuccess = QFUNC(medication);
sounds[] = {};
};
//class CheckVein: CheckPulse {
// displayName = CSTRING(CheckVein_DisplayName);
// displayNameProgress = CSTRING(CheckVein_DisplayNameProgress);
// allowedSelections[] = {"LeftArm", "RightArm", "Left Leg", "Right leg"};
// treatmentLocations = 0;
// medicRequired = QGVAR(CheckVein_MedLevel);
// treatmentTime = QGVAR(CheckVein_TreatmentTime);
// category = "examine";
// consumeItem = 0;
// condition = "";
// callbackProgress = "";
// callbackStart = "";
// callbackFailure = "";
// callbackSuccess = QFUNC(treatmentAdvanced_CheckVein);
// litter[] = {};
//};
class CheckVein: CheckPulse {
displayName = CSTRING(CheckVein_DisplayName);
displayNameProgress = CSTRING(CheckVein_DisplayNameProgress);
allowedSelections[] = {"LeftArm", "RightArm", "Left Leg", "Right leg"};
treatmentLocations = 0;
medicRequired = QGVAR(CheckVein_MedLevel);
treatmentTime = QGVAR(CheckVein_TreatmentTime);
category = "examine";
consumeItem = 0;
condition = "";
callbackProgress = "";
callbackStart = "";
callbackFailure = "";
callbackSuccess = QFUNC(treatmentAdvanced_CheckVein);
litter[] = {};
};
};
33 changes: 33 additions & 0 deletions addons/pharma/CfgWeapons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,17 @@ class CfgWeapons {
mass = 0.5;
};
};
class kat_doxapram: ACE_ItemCore {
scope = 2;
displayName = CSTRING(Doxapram_Display);
picture = QPATHTOF(ui\icon_Doxapram.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
descriptionShort = CSTRING(Doxapram_DescShort);
ACE_isMedicalItem = 1;
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 0.5;
};
};
class kat_coag_sense: ACE_ItemCore {
scope = 2;
author = "Miss Heda";
Expand Down Expand Up @@ -828,4 +839,26 @@ class CfgWeapons {
mass = 1;
};
};
class kat_syringe_doxapram_5ml_1: ACE_ItemCore {
scope = 1;
displayName = CSTRING(Syringe_doxapram_5_1_Display);
picture = QPATHTOF(ui\syringe_item.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
descriptionShort = CSTRING(Syringe_doxapram_5_1_DescShort);
ACE_isMedicalItem = 1;
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 1;
};
};
class kat_syringe_doxapram_5ml_3: ACE_ItemCore {
scope = 1;
displayName = CSTRING(Syringe_doxapram_5_3_Display);
picture = QPATHTOF(ui\syringe_item.paa);
model = "\A3\Structures_F_EPA\Items\Medical\Painkillers_F.p3d";
descriptionShort = CSTRING(Syringe_doxapram_5_3_DescShort);
ACE_isMedicalItem = 1;
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 1;
};
};
};
1 change: 1 addition & 0 deletions addons/pharma/XEH_PREP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ PREP(treatmentAdvanced_CWMP);
PREP(treatmentAdvanced_CWMPOverdoseLocal);
PREP(treatmentAdvanced_Dialysis);
PREP(treatmentAdvanced_DialysisLocal);
PREP(treatmentAdvanced_DoxapramOverdoseLocal);
PREP(treatmentAdvanced_EACALocal);
PREP(treatmentAdvanced_EACAOverdoseLocal);
PREP(treatmentAdvanced_EpinephrineOverdoseLocal);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "..\script_component.hpp"
/*
* Author: Cplhardcore
* Handles the overdose effects of Doxapram
*
* Arguments:
* 0: Patient <OBJECT>
*
* Return Value:
* None
*
* Example:
* [player] call kat_pharma_fnc_treatmentAdvanced_DoxapramOverdoseLocal;
*
* Public: No
*/
params ["_patient"];
42 changes: 42 additions & 0 deletions addons/pharma/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4758,5 +4758,47 @@
<Key ID="STR_KAT_Pharma_Transfuse_Ringers_Lactate">
<English>Transfuse Ringers Lactate</English>
</Key>
<Key ID="STR_KAT_Pharma_SubCategory_AdenosineIV">
<English>Doxapram</English>
</Key>
<Key ID="STR_KAT_Pharma_medLvl_Doxapram">
<English>Medical level required for Doxapram</English>
</Key>
<Key ID="STR_KAT_Pharma_treatmentTime_Doxapram">
<English>Treatment time for Doxapram</English>
</Key>
<Key ID="STR_KAT_Pharma_Doxapram_DescShort">
<English>Doxapram</English>
</Key>
<Key ID="STR_KAT_Pharma_Doxapram_Display">
<English>Doxapram</English>
</Key>
<Key ID="STR_KAT_Pharma_Take_Doxapram">
<English>Push Doxapram</English>
</Key>
<Key ID="STR_KAT_Pharma_push_Doxapram_IV_1">
<English>Push 0.5mg Doxapram</English>
</Key>
<Key ID="STR_KAT_Pharma_push_Doxapram_IV_3">
<English>Push 1mg Doxapram</English>
</Key>
<Key ID="STR_KAT_Pharma_pushing_Doxapram_IV_1">
<English>Pushing 0.5mg Doxapram</English>
</Key>
<Key ID="STR_KAT_Pharma_pushing_Doxapram_IV_3">
<English>Pushing 1mg Doxapram</English>
</Key>
<Key ID="STR_KAT_Pharma_Syringe_Doxapram_5_1_Display">
<English>5ml Syringe/0.5mg Doxapram</English>
</Key>
<Key ID="STR_KAT_Pharma_Syringe_Doxapram_5_1_DescShort">
<English>5ml Syringe loaded with 0.5 mg of Doxapram</English>
</Key>
<Key ID="STR_KAT_Pharma_Syringe_Doxapram_5_3_Display">
<English>5ml Syringe/1mg Doxapram</English>
</Key>
<Key ID="STR_KAT_Pharma_Syringe_Doxapram_5_3_DescShort">
<English>5ml Syringe loaded with 1mg of Doxapram</English>
</Key>
</Package>
</Project>
Binary file added addons/pharma/ui/icon_Doxapram.paa
Binary file not shown.

0 comments on commit 2a5c578

Please sign in to comment.