Update headers

This commit is contained in:
PabstMirror 2019-03-30 11:07:54 -05:00
parent 7f2ac32180
commit f2b9bf3a17
66 changed files with 145 additions and 57 deletions

View File

@ -19,7 +19,6 @@
*
* Public: yes
*/
// #define DEBUG_MODE_FULL
// only run this after the settings are initialized
if !(EGVAR(common,settingsInitFinished)) exitWith {

View File

@ -5,12 +5,16 @@
*
* Arguments:
* 0: unit <OBJECT>
* 1: caused by <OBJECT>
* 1: bodyPart <String>
* 2: damage <NUMBER>
* 3: shooter <OBJECT>
*
* Return Value:
* None
*
* Example:
* [player, "Body", 0.5, badGuy] call ace_medical_blood_fnc_handleWoundReceived
*
* Public: No
*/

View File

@ -10,7 +10,7 @@
* is Bleeding <BOOL>
*
* Example:
* [UNIT] call ace_medical_blood_fnc_isBleeding
* [player] call ace_medical_blood_fnc_isBleeding
*
* Public: No
*/

View File

@ -10,7 +10,7 @@
* is Bleeding <BOOL>
*
* Example:
* [UNIT] call ace_medical_blood_fnc_onBleeding
* [player] call ace_medical_blood_fnc_onBleeding
*
* Public: No
*/

View File

@ -10,7 +10,7 @@
* Type of damage <STRING>
*
* Example:
* ["bullet"] call ACE_medical_fnc_getTypeOfDamage
* ["bullet"] call ace_medical_damage_fnc_getTypeOfDamage
*
* Public: No
*/

View File

@ -7,7 +7,10 @@
* 0: The Unit <OBJECT>
*
* ReturnValue:
* nothing
* None
*
* Example:
* [player] call ace_medical_damage_fnc_handleIncapacitation
*
* Public: No
*/

View File

@ -9,6 +9,9 @@
* ReturnValue:
* None
*
* Example:
* [] call ace_medical_damage_fnc_parseConfigForInjuries
*
* Public: No
*/

View File

@ -12,6 +12,9 @@
* Return Value:
* None
*
* Example:
* [player, "Body", 0.5, "bullet"] call ace_medical_damage_fnc_woundsHandler
*
* Public: No
*/

View File

@ -12,11 +12,14 @@
* Return Value:
* None
*
* Example:
* [player, "Body", 0.5, "bullet"] call ace_medical_damage_fnc_woundsHandlerSQF
*
* Public: No
*/
params ["_unit", "_bodyPart", "_damage", "_typeOfDamage"];
TRACE_5("start",_unit,_bodyPart,_damage,_typeOfDamage);
TRACE_4("start",_unit,_bodyPart,_damage,_typeOfDamage);
// Convert the selectionName to a number and ensure it is a valid selection.
private _bodyPartN = ALL_BODY_PARTS find toLower _bodyPart;

View File

@ -11,7 +11,7 @@
* None
*
* Example:
* player call ace_medical_engine_fnc_setUnconsciousAnim
* [player, true] call ace_medical_engine_fnc_setUnconsciousAnim
*
* Public: No
*/

View File

@ -9,6 +9,11 @@
*
* Return Value:
* None
*
* Example:
* [false, 0.5] call ace_medical_feedback_fnc_effectBleeding
*
* Public: No
*/
params ["_enable", "_bloodloss"];

View File

@ -9,6 +9,11 @@
*
* Return Value:
* None
*
* Example:
* [false, 0.5] call ace_medical_feedback_fnc_effectBloodVolume
*
* Public: No
*/
params ["_enable", "_intensity"];

View File

@ -8,6 +8,11 @@
*
* Return Value:
* None
*
* Example:
* [120] call ace_medical_feedback_fnc_effectHeartBeat
*
* Public: No
*/
params ["_heartRate"];

View File

@ -8,6 +8,11 @@
*
* Return Value:
* None
*
* Example:
* [] call ace_medical_feedback_fnc_effectIncapacitated
*
* Public: No
*/
GVAR(ppIncapacitationBlur) ppEffectEnable true;

View File

@ -9,6 +9,11 @@
*
* Return Value:
* None
*
* Example:
* [true, 0.5] call ace_medical_feedback_fnc_effectPain
*
* Public: No
*/
params ["_enable", "_intensity"];

View File

@ -9,6 +9,11 @@
*
* Return Value:
* None
*
* Example:
* [true, 0] call ace_medical_feedback_fnc_effectUnconscious
*
* Public: No
*/
params ["_enable", "_mode"];

View File

@ -9,6 +9,11 @@
*
* Return Value:
* None
*
* Example:
* [] call ace_medical_feedback_fnc_handleEffects
*
* Public: No
*/
if (EGVAR(common,OldIsCamera) || {!alive ACE_player}) exitWith {

View File

@ -4,10 +4,15 @@
* Initializes visual effects of medical.
*
* Arguments:
* None
* 0: Just Pain Effects <BOOL>
*
* Return Value:
* None
*
* Example:
* [false] call ace_medical_feedback_fnc_initEffects
*
* Public: No
*/
params [["_justPain", false]];

View File

@ -12,7 +12,7 @@
* Representative RGBA colour <ARRAY>
*
* Example:
* [0.4] call ACE_medical_gui_fnc_bloodLossToRGBA
* [0.4] call ace_medical_gui_fnc_bloodLossToRGBA
*
* Public: No
*/

View File

@ -12,7 +12,7 @@
* Representative RGBA colour <ARRAY>
*
* Example:
* [0.4] call ACE_medical_gui_fnc_damageToRGBA
* [0.4] call ace_medical_gui_fnc_damageToRGBA
*
* Public: No
*/

View File

@ -9,6 +9,9 @@
* Return Value:
* None
*
* Example:
* [player] call ace_medical_statemachine_fnc_conditionCardiacArrestTimer
*
* Public: No
*/

View File

@ -9,6 +9,9 @@
* Return Value:
* None
*
* Example:
* [player] call ace_medical_statemachine_fnc_conditionExecutionDeath
*
* Public: No
*/

View File

@ -10,6 +10,9 @@
* Return Value:
* None
*
* Example:
* [player] call ace_medical_statemachine_fnc_enteredStateCardiacArrest
*
* Public: No
*/

View File

@ -9,6 +9,9 @@
* Return Value:
* None
*
* Example:
* [player] call ace_medical_statemachine_fnc_enteredStateDeath
*
* Public: No
*/

View File

@ -9,6 +9,9 @@
* Return Value:
* None
*
* Example:
* [player] call ace_medical_statemachine_fnc_enteredStateFatalInjury
*
* Public: No
*/

View File

@ -1,7 +1,7 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
*
* Handles the default state
*
* Arguments:
* 0: The Unit <OBJECT>
@ -9,6 +9,9 @@
* Return Value:
* None
*
* Example:
* [player] call ace_medical_statemachine_fnc_handleStateDefault
*
* Public: No
*/

View File

@ -1,7 +1,7 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
*
* Handles the injured state
*
* Arguments:
* 0: The Unit <OBJECT>
@ -9,6 +9,9 @@
* Return Value:
* None
*
* Example:
* [player] call ace_medical_statemachine_fnc_handleStateInjured
*
* Public: No
*/

View File

@ -1,7 +1,7 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
*
* Handles the unconscious state
*
* Arguments:
* 0: The Unit <OBJECT>
@ -9,6 +9,9 @@
* Return Value:
* None
*
* Example:
* [player] call ace_medical_statemachine_fnc_handleStateUnconscious
*
* Public: No
*/

View File

@ -10,6 +10,9 @@
* Return Value:
* None
*
* Example:
* [player] call ace_medical_statemachine_fnc_leftStateCardiacArrest
*
* Public: No
*/

View File

@ -9,6 +9,9 @@
* Return Value:
* None
*
* Example:
* [player] call ace_medical_statemachine_fnc_resetStateDefault
*
* Public: No
*/

View File

@ -9,6 +9,9 @@
* Return Value:
* None
*
* Example:
* [player] call ace_medical_statemachine_fnc_transitionSecondChance
*
* Public: No
*/

View File

@ -8,7 +8,7 @@
* 1: Desired pain level (0 .. 1) <NUMBER>
*
* Return Value:
* nothing
* None
*
* Example:
* [guy, 0.5] call ace_medical_status_fnc_adjustPainLevel

View File

@ -10,7 +10,7 @@
* Total blood loss of unit <NUMBER>
*
* Example:
* [bob] call ACE_medical_fnc_getBloodLoss
* [bob] call ace_medical_status_fnc_getBloodLoss
*
* Public: No
*/

View File

@ -11,7 +11,7 @@
* 1: BloodPressure High <NUMBER>
*
* Example:
* [player] call ace_medical_fnc_getBloodPressure
* [player] call ace_medical_status_fnc_getBloodPressure
*
* Public: No
*/

View File

@ -12,7 +12,7 @@
* Blood volume change (liters per second) <NUMBER>
*
* Example:
* [player, 1, true] call ACE_medical_status_fnc_getBloodVolumeChange
* [player, 1, true] call ace_medical_status_fnc_getBloodVolumeChange
*
* Public: No
*/

View File

@ -10,7 +10,7 @@
* None
*
* Example:
* [bob] call ACE_medical_fnc_init
* [bob] call ace_medical_status_fnc_init
*
* Public: No
*/

View File

@ -10,7 +10,7 @@
* Is in stable condition <BOOL>
*
* Example:
* [player] call ace_medical_fnc_isInStableCondition
* [player] call ace_medical_status_fnc_isInStableCondition
*
* Public: No
*/

View File

@ -11,7 +11,7 @@
* None
*
* Example:
* [bob, kevin] call ACE_medical_treatment_fnc_actionCheckResponse
* [bob, kevin] call ace_medical_treatment_fnc_actionCheckResponse
*
* Public: No
*/

View File

@ -12,7 +12,7 @@
* Vehicle they are loaded into (objNull on failure) <OBJECT>
*
* Example:
* [bob, kevin] call ACE_medical_treatment_treatment_fnc_actionLoadUnit
* [bob, kevin] call ace_medical_treatment_treatment_fnc_actionLoadUnit
*
* Public: No
*/

View File

@ -11,9 +11,9 @@
* body bag (will return objNull when run where target is not local) <OBJECT>
*
* Example:
* [player, cursorTarget] call ACE_medical_treatment_fnc_actionPlaceInBodyBag
* [player, cursorTarget] call ace_medical_treatment_fnc_actionPlaceInBodyBag
*
* Public: Yes
* Public: No
*/
params ["_caller", "_target"];

View File

@ -12,7 +12,7 @@
* None
*
* Example:
* [bob, kevin, false] call ACE_medical_treatment_fnc_actionUnloadUnit
* [bob, kevin, false] call ace_medical_treatment_fnc_actionUnloadUnit
*
* Public: No
*/

View File

@ -13,9 +13,9 @@
* None
*
* Example:
* [bob, "type", "message", [_args]] call ACE_medical_treatment_fnc_addToLog
* [bob, "type", "message", [_args]] call ace_medical_treatment_fnc_addToLog
*
* Public: Yes
* Public: No
*/
params ["_unit", "_type", "_message", "_arguments"];

View File

@ -11,9 +11,9 @@
* None
*
* Example:
* [bob, "bandage"] call ACE_medical_treatment_fnc_addToTriageCard
* [bob, "bandage"] call ace_medical_treatment_fnc_addToTriageCard
*
* Public: Yes
* Public: No
*/
params ["_unit", "_newItem"];

View File

@ -10,7 +10,7 @@
* None
*
* Example:
* call ACE_medical_treatment_fnc_bodyCleanupLoop
* call ace_medical_treatment_fnc_bodyCleanupLoop
*
* Public: No
*/

View File

@ -11,9 +11,9 @@
* Can Treat <BOOL>
*
* Example:
* [bob, target] call ACE_medical_treatment_fnc_canAccessMedicalEquipment
* [bob, target] call ace_medical_treatment_fnc_canAccessMedicalEquipment
*
* Public: Yes
* Public: No
*/
params ["_caller", "_target"];

View File

@ -15,7 +15,7 @@
* Example:
* [player, cursorTarget, "Head", "SurgicalKit"] call ace_medical_treatment_fnc_canTreat
*
* Public: Yes
* Public: No
*/
params ["_caller", "_target", "_bodyPart", "_className"];

View File

@ -13,7 +13,7 @@
* Can Treat <BOOL>
*
* Example:
* [bob, kevin, "selection", "classname"] call ACE_medical_treatment_fnc_canTreatCached
* [bob, kevin, "selection", "classname"] call ace_medical_treatment_fnc_canTreatCached
*
* Public: No
*/

View File

@ -10,9 +10,9 @@
* None
*
* Example:
* [true] call ACE_medical_treatment_fnc_dropDownTriageCard
* [true] call ace_medical_treatment_fnc_dropDownTriageCard
*
* Public: Yes
* Public: No
*/
params ["_show"];

View File

@ -16,7 +16,7 @@
* Example:
* [player] call ace_medical_treatment_fnc_getTriageStatus
*
* Public: Yes
* Public: No
*/
params ["_unit"];

View File

@ -12,9 +12,9 @@
* Has the items <BOOL>
*
* Example:
* [bob, patient, "bandage"] call ACE_medical_treatment_fnc_hasItem
* [bob, patient, "bandage"] call ace_medical_treatment_fnc_hasItem
*
* Public: Yes
* Public: No
*/
params ["_medic", "_patient", "_item"];

View File

@ -12,9 +12,9 @@
* Has the items <BOOL>
*
* Example:
* [bob, patient, ["bandage", "morphine"]] call ACE_medical_treatment_fnc_hasItems
* [bob, patient, ["bandage", "morphine"]] call ace_medical_treatment_fnc_hasItems
*
* Public: Yes
* Public: No
*/
params ["_medic", "_patient", "_items"];

View File

@ -12,7 +12,7 @@
* Example:
* [cursorObject] call ace_medical_treatment_fnc_isMedicalVehicle
*
* Public: Yes
* Public: No
*/
params ["_vehicle"];

View File

@ -10,7 +10,7 @@
* None
*
* Example:
* call ACE_medical_treatment_fnc_litterCleanupLoop
* call ace_medical_treatment_fnc_litterCleanupLoop
*
* Public: No
*/

View File

@ -12,7 +12,7 @@
* None
*
* Example:
* ["litter", [2, 5, 6], bob] call ACE_medical_treatment_fnc_handleCreateLitter
* ["litter", [2, 5, 6], bob] call ace_medical_treatment_fnc_handleCreateLitter
*
* Public: No
*/

View File

@ -14,7 +14,7 @@
* None
*
* Example:
* [bob, "classname", "varname", 5, 6, ["stuff"]] call ACE_medical_treatment_fnc_onMedicationUsage
* [bob, "classname", "varname", 5, 6, ["stuff"]] call ace_medical_treatment_fnc_onMedicationUsage
*
* Public: No
*/

View File

@ -12,7 +12,7 @@
* Return Value:
* Succesful treatment started <BOOL>
*
* Public: Yes
* Public: No
*/
params ["_caller", "_target", "_selectionName", "_className", "_items"];

View File

@ -10,7 +10,7 @@
* Return Value:
* Succesful treatment started <BOOL>
*
* Public: Yes
* Public: No
*/
params ["_caller", "_target"];

View File

@ -13,7 +13,7 @@
* Return Value:
* Succesful treatment started <BOOL>
*
* Public: Yes
* Public: No
*/
params ["_caller", "_target"];

View File

@ -13,7 +13,7 @@
* Return Value:
* Succesful treatment started <BOOL>
*
* Public: Yes
* Public: No
*/
params ["_caller", "_target", "_bodyPart", "_className", "_items"];

View File

@ -11,7 +11,7 @@
* Return Value:
* None
*
* Public: Yes
* Public: No
*/
params ["_target", "_treatmentClassname", "_bodyPart"];

View File

@ -13,7 +13,7 @@
* Return Value:
* Succesful treatment started <BOOL>
*
* Public: Yes
* Public: No
*/
params ["_caller", "_target", "_bodyPart", "_className", "_items"];

View File

@ -11,7 +11,7 @@
* Return Value:
* Succesful treatment started <BOOL>
*
* Public: Yes
* Public: No
*/
#define MORPHINE_PAIN_SUPPRESSION 0.6

View File

@ -14,7 +14,7 @@
* Succesful treatment started <BOOL>
*
* Example:
* [[bob, kevin], 5, 5] call ACE_medical_treatment_fnc_treatmentAdvanced_surgicalKit_onProgress
* [[bob, kevin], 5, 5] call ace_medical_treatment_fnc_treatmentAdvanced_surgicalKit_onProgress
*
* Public: No
*/

View File

@ -11,7 +11,7 @@
* Return Value:
* None
*
* Public: Yes
* Public: No
*/
params ["_caller", "_target", "_bodyPart"];

View File

@ -12,7 +12,7 @@
* 0: success <BOOL>
* 1: Unit <OBJECT>
*
* Public: Yes
* Public: No
*/
params ["_medic", "_patient", "_item"];

View File

@ -13,9 +13,9 @@
* 1: Unit <OBJECT>
*
* Example:
* [unit, patient, ["bandage"]] call ACE_medical_treatment_fnc_useItems
* [unit, patient, ["bandage"]] call ace_medical_treatment_fnc_useItems
*
* Public: Yes
* Public: No
*/
#define HAS_USED_ITEM(itemUsedInfo) (itemUsedInfo select 0)