forked from KAT-Advanced-Medical/KAM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50bf5ac
commit b7e717f
Showing
9 changed files
with
132 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
class ACE_Medical_Treatment_Actions { | ||
class CheckPulse; | ||
class BasicDiagnostic: CheckPulse { | ||
displayName = CSTRING(basicDiagnostic_display); | ||
displayNameProgress = CSTRING(basicDiagnostic_progress); | ||
treatmentTime = QGVAR(basicDiagnosticTime); | ||
category = "examine"; | ||
medicRequired = 0; | ||
consumeItem = 0; | ||
callbackSuccess = callbackSuccess = QFUNC(basicDiagnostic); | ||
condition = QUOTE(missionNamespace getVariable [ARR_2(QQGVAR(enableBasicDiagnostic),false)]); | ||
items[] = {"kat_basicDiagnostic"}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
class CfgWeapons { | ||
class ACE_ItemCore; | ||
class kat_basicDiagnostic: ACE_ItemCore { | ||
scope = 2; | ||
author = "Mazinski"; | ||
displayName = CSTRING(basicDiagnostic_display); | ||
descriptionShort = CSTRING(basicDiagnostic_description); | ||
picture = QPATHTOF(ui\BPCuff.paa); // FLAG | ||
icon = ""; | ||
class ItemInfo: CBA_MiscItem_ItemInfo { | ||
mass = 8; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#include "script_component.hpp" | ||
|
||
[QGVAR(basicDiagnosticLocal), LINKFUNC(basicDiagnosticLocal)] call CBA_fnc_addEventHandler; | ||
|
||
[QEGVAR(misc,handleRespawn), LINKFUNC(handleRespawn)] call CBA_fnc_addEventHandler; | ||
[QACEGVAR(medical_treatment,fullHealLocalMod), LINKFUNC(fullHealLocal)] call CBA_fnc_addEventHandler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include "..\script_component.hpp" | ||
/* | ||
* Author: Mazinski | ||
* Checks all basic patient vitals (HR/BP/RR) | ||
* | ||
* Arguments: | ||
* 0: Medic <OBJECT> | ||
* 1: Patient <OBJECT> | ||
* | ||
* Return Value: | ||
* None | ||
* | ||
* Example: | ||
* [player, cursorObject] call kat_vitals_fnc_basicDiagnostic | ||
* | ||
* Public: No | ||
*/ | ||
|
||
params ["_medic", "_patient"]; | ||
|
||
[QGVAR(basicDiagnosticLocal), [_medic, _patient], _patient] call CBA_fnc_targetEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include "..\script_component.hpp" | ||
/* | ||
* Author: Mazinski | ||
* Local callback for checking all basic patient vitals (HR/BP/RR) | ||
* | ||
* Arguments: | ||
* 0: Medic <OBJECT> | ||
* 1: Patient <OBJECT> | ||
* | ||
* Return Value: | ||
* None | ||
* | ||
* Example: | ||
* [player, cursorObject] call kat_vitals_fnc_basicDiagnosticLocal | ||
* | ||
* Public: No | ||
*/ | ||
|
||
params ["_medic", "_patient"]; | ||
|
||
private _bloodPressure = GET_BLOOD_PRESSURE(unit) | ||
private _hr = GET_HEART_RATE(_patient); | ||
private _rr = GET_BREATHING_RATE(unit) | ||
|
||
_bloodPressure params ["_bloodPressureLow", "_bloodPressureHigh"]; | ||
_logOutput = format [LLSTRING(BasicDiagnostic_Output), _hr, _bloodPressureHigh, _bloodPressureLow, _rr]; | ||
|
||
[_patient, "quick_view", LSTRING(basicDiagnostic_Log), [_medic call ACEFUNC(common,getName), _logOutput]] call ACEFUNC(medical_treatment,addToLog); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters