Move #includes before function headers (#6484)

This commit is contained in:
Dedmen Miller 2018-07-30 11:22:14 +02:00 committed by SilentSpike
parent c9ad92e92d
commit 6bd8542eed
136 changed files with 136 additions and 161 deletions

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: PabstMirror * Author: PabstMirror
* Interface to allow external modules to affect the pain level * Interface to allow external modules to affect the pain level
@ -14,7 +15,6 @@
* *
* Public: Yes * Public: Yes
*/ */
#include "script_component.hpp"
params ["_unit", "_desiredPainLevel"]; params ["_unit", "_desiredPainLevel"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: PabstMirror * Author: PabstMirror
* Dev function to watch all medical variables on a unit * Dev function to watch all medical variables on a unit
@ -13,7 +14,6 @@
* *
* Public: Yes * Public: Yes
*/ */
#include "script_component.hpp"
["medical", { ["medical", {

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Zakant * Author: Zakant
* Gets the name of the current medical state of an unit. Unit has to be local to the caller. * Gets the name of the current medical state of an unit. Unit has to be local to the caller.
@ -13,7 +14,6 @@
* *
* Public: Yes * Public: Yes
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Module for adjusting the medical damage settings * Module for adjusting the medical damage settings
@ -16,8 +17,6 @@
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_logic", "_units", "_activated"]; params ["_logic", "_units", "_activated"];
if !(_activated) exitWith {}; if !(_activated) exitWith {};

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Checks if there is a medic available in the unit's group. * Checks if there is a medic available in the unit's group.
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
// Note: Although an unconscious unit cannot call for a medic itself, // Note: Although an unconscious unit cannot call for a medic itself,
// we ignore this here. We need to "notice" the medic that he should // we ignore this here. We need to "notice" the medic that he should

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Makes the unit heal itself. * Makes the unit heal itself.
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
// Player will have to do this manually of course // Player will have to do this manually of course
if ([_this] call EFUNC(common,isPlayer)) exitWith {}; if ([_this] call EFUNC(common,isPlayer)) exitWith {};

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Makes a medic heal the next unit that needs treatment. * Makes a medic heal the next unit that needs treatment.
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
// Can't heal other units when unconscious // Can't heal other units when unconscious
if IS_UNCONSCIOUS(_this) exitWith {}; if IS_UNCONSCIOUS(_this) exitWith {};

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Checks if a unit needs treatment. * Checks if a unit needs treatment.
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
if !(alive _this) exitWith {false}; if !(alive _this) exitWith {false};

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Checks if a unit is currently considered safe enough to treat itself. * Checks if a unit is currently considered safe enough to treat itself.
@ -13,6 +14,5 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
(getSuppression _this == 0) && {CBA_missionTime - (_this getVariable [QGVAR(lastFired), -30]) > 30} (getSuppression _this == 0) && {CBA_missionTime - (_this getVariable [QGVAR(lastFired), -30]) > 30}

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Plays the corresponding treatment animation. * Plays the corresponding treatment animation.
@ -15,7 +16,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit", "_isBandage", "_isSelfTreatment"]; params ["_unit", "_isBandage", "_isSelfTreatment"];
if (vehicle _unit != _unit) exitWith {}; if (vehicle _unit != _unit) exitWith {};

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Sends a request to the units assigned medic to heal it. * Sends a request to the units assigned medic to heal it.
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
private _assignedMedic = _this getVariable QGVAR(assignedMedic); private _assignedMedic = _this getVariable QGVAR(assignedMedic);
private _healQueue = _assignedMedic getVariable [QGVAR(healQueue), []]; private _healQueue = _assignedMedic getVariable [QGVAR(healQueue), []];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Checks if the unit was requested to treat another unit. * Checks if the unit was requested to treat another unit.
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
private _healQueue = _this getVariable [QGVAR(healQueue), []]; private _healQueue = _this getVariable [QGVAR(healQueue), []];
!(_healQueue isEqualTo []) !(_healQueue isEqualTo [])

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Spawn a blood drop. * Spawn a blood drop.
@ -16,8 +17,6 @@
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_type", "_pos"]; params ["_type", "_pos"];
TRACE_2("creating blood",_type,_pos); TRACE_2("creating blood",_type,_pos);

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal, commy2 * Author: Glowbal, commy2
* Handle wounds received event. * Handle wounds received event.
@ -12,7 +13,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit", "", "_damage", "_shooter"]; params ["_unit", "", "_damage", "_shooter"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Check if is bleeding * Check if is bleeding
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* handle bleeding state (state machine) * handle bleeding state (state machine)
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: PabstMirror * Author: PabstMirror
* Loop that cleans up blood * Loop that cleans up blood
@ -10,7 +11,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
(GVAR(bloodDrops) deleteAt 0) params ["", "_deletedBloodDrop"]; (GVAR(bloodDrops) deleteAt 0) params ["", "_deletedBloodDrop"];
deleteVehicle _deletedBloodDrop; deleteVehicle _deletedBloodDrop;

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Sickboy * Author: Sickboy
* Spurt blood on the ground * Spurt blood on the ground
@ -15,7 +16,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
#define MAXIMUM_DROPS 4 #define MAXIMUM_DROPS 4
#define DISTANCE_BETWEEN_DROPS 0.20 #define DISTANCE_BETWEEN_DROPS 0.20

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Get the type of damage based upon the projectile. * Get the type of damage based upon the projectile.
@ -14,8 +15,6 @@
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_typeOfProjectile"]; params ["_typeOfProjectile"];
// --- projectiles // --- projectiles

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Ruthberg * Author: Ruthberg
* Handle incapacitation due to damage and pain * Handle incapacitation due to damage and pain
@ -10,7 +11,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal, commy2 * Author: Glowbal, commy2
* Parse the ACE_Medical_Advanced config for all injury types. * Parse the ACE_Medical_Advanced config for all injury types.
@ -10,7 +11,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
private _injuriesConfigRoot = configFile >> "ACE_Medical_Injuries"; private _injuriesConfigRoot = configFile >> "ACE_Medical_Injuries";

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal, commy2 * Author: Glowbal, commy2
* Handling of the open wounds & injuries upon the handleDamage eventhandler. * Handling of the open wounds & injuries upon the handleDamage eventhandler.
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit", "_bodyPart", "_damage", "_typeOfDamage"]; params ["_unit", "_bodyPart", "_damage", "_typeOfDamage"];
TRACE_5("start",_unit,_bodyPart,_damage,_typeOfDamage); TRACE_5("start",_unit,_bodyPart,_damage,_typeOfDamage);

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal, commy2 * Author: Glowbal, commy2
* Handling of the open wounds & injuries upon the handleDamage eventhandler. * Handling of the open wounds & injuries upon the handleDamage eventhandler.
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit", "_bodyPart", "_damage", "_typeOfDamage"]; params ["_unit", "_bodyPart", "_damage", "_typeOfDamage"];
TRACE_5("start",_unit,_bodyPart,_damage,_typeOfDamage); TRACE_5("start",_unit,_bodyPart,_damage,_typeOfDamage);

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: commy2 * Author: commy2
* Damages a body part of a local unit. Does not kill the unit. * Damages a body part of a local unit. Does not kill the unit.
@ -21,7 +22,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit", "_selection", "_damage"]; params ["_unit", "_selection", "_damage"];
TRACE_3("damageBodyPart",_unit,_selection,_damage); TRACE_3("damageBodyPart",_unit,_selection,_damage);

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: commy2 * Author: commy2
* Main HandleDamage EH function for soldiers. * Main HandleDamage EH function for soldiers.
@ -10,7 +11,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
// for travis // for travis
#define HIT_STRUCTURAL QGVAR($#structural) #define HIT_STRUCTURAL QGVAR($#structural)

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: commy2 * Author: commy2
* Forces a unit to limp or not. * Forces a unit to limp or not.
@ -14,7 +15,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params [["_unit", objNull, [objNull]], ["_isLimping", true, [false]]]; params [["_unit", objNull, [objNull]], ["_isLimping", true, [false]]];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: commy2 * Author: commy2
* Set structural damage of an object without modifying the individual hit points. * Set structural damage of an object without modifying the individual hit points.
@ -14,7 +15,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params [["_unit", objNull, [objNull]], ["_damage", 0, [0]]]; params [["_unit", objNull, [objNull]], ["_damage", 0, [0]]];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: commy2 * Author: commy2
* Force local unit into ragdoll / unconsciousness animation. * Force local unit into ragdoll / unconsciousness animation.
@ -14,7 +15,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params [["_unit", objNull, [objNull]], ["_isUnconscious", true, [false]]]; params [["_unit", objNull, [objNull]], ["_isUnconscious", true, [false]]];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: commy2 * Author: commy2
* Damages a body part of a local unit. Does not kill the unit. * Damages a body part of a local unit. Does not kill the unit.
@ -17,7 +18,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit", "_updateHead", "_updateBody", "_updateArms", "_updateLegs"]; params ["_unit", "_updateHead", "_updateBody", "_updateArms", "_updateLegs"];
TRACE_5("updateBodyPartVisuals",_unit,_updateHead,_updateBody,_updateArms,_updateLegs); TRACE_5("updateBodyPartVisuals",_unit,_updateHead,_updateBody,_updateArms,_updateLegs);

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Handles the bleeding effect. * Handles the bleeding effect.
@ -9,7 +10,6 @@
* Return Value: * Return Value:
* None * None
*/ */
#include "script_component.hpp"
params ["_enable", "_bloodloss"]; params ["_enable", "_bloodloss"];
if (isNull findDisplay 46) exitWith {}; if (isNull findDisplay 46) exitWith {};

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Handles the blood volume effect. * Handles the blood volume effect.
@ -9,7 +10,6 @@
* Return Value: * Return Value:
* None * None
*/ */
#include "script_component.hpp"
params ["_enable", "_intensity"]; params ["_enable", "_intensity"];
if ((!_enable) || {_intensity == 0}) exitWith { if ((!_enable) || {_intensity == 0}) exitWith {

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Handles the hear beat sound. * Handles the hear beat sound.
@ -8,7 +9,6 @@
* Return Value: * Return Value:
* None * None
*/ */
#include "script_component.hpp"
params ["_heartRate"]; params ["_heartRate"];
if (_heartRate == 0) exitWith { if (_heartRate == 0) exitWith {

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Creates the incapacitation effect. * Creates the incapacitation effect.
@ -8,7 +9,6 @@
* Return Value: * Return Value:
* None * None
*/ */
#include "script_component.hpp"
GVAR(ppIncapacitationBlur) ppEffectEnable true; GVAR(ppIncapacitationBlur) ppEffectEnable true;
GVAR(ppIncapacitationGlare) ppEffectEnable true; GVAR(ppIncapacitationGlare) ppEffectEnable true;

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Triggers the pain effect (single flash). * Triggers the pain effect (single flash).
@ -9,7 +10,6 @@
* Return Value: * Return Value:
* None * None
*/ */
#include "script_component.hpp"
params ["_enable", "_intensity"]; params ["_enable", "_intensity"];
if (!_enable || {_intensity == 0}) exitWith { if (!_enable || {_intensity == 0}) exitWith {

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Handles the unconscious effect. * Handles the unconscious effect.
@ -9,7 +10,6 @@
* Return Value: * Return Value:
* None * None
*/ */
#include "script_component.hpp"
params ["_enable", "_mode"]; params ["_enable", "_mode"];
switch (_mode) do { switch (_mode) do {

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Handles any visual effects of medical. * Handles any visual effects of medical.
@ -9,7 +10,6 @@
* Return Value: * Return Value:
* None * None
*/ */
#include "script_component.hpp"
if (EGVAR(common,OldIsCamera) || {!alive ACE_player}) exitWith { if (EGVAR(common,OldIsCamera) || {!alive ACE_player}) exitWith {
[false, 0] call FUNC(effectUnconscious); [false, 0] call FUNC(effectUnconscious);

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Initializes visual effects of medical. * Initializes visual effects of medical.
@ -8,7 +9,6 @@
* Return Value: * Return Value:
* None * None
*/ */
#include "script_component.hpp"
params [["_justPain", false]]; params [["_justPain", false]];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: commy2 * Author: commy2
* Play random injured sound for a unit. The sound is broadcasted across MP. * Play random injured sound for a unit. The sound is broadcasted across MP.
@ -16,7 +17,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
#define TIME_OUT_HIT 1 #define TIME_OUT_HIT 1
#define TIME_OUT_MOAN 5 #define TIME_OUT_MOAN 5

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Check if ACE_player can Open the medical menu * Check if ACE_player can Open the medical menu
@ -14,7 +15,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_caller", "_target"]; params ["_caller", "_target"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Collect treatment actions from medical config * Collect treatment actions from medical config
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
GVAR(actions) = []; GVAR(actions) = [];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Creates actions for the given treatments and adds them to the interaction menu. * Creates actions for the given treatments and adds them to the interaction menu.
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
private _actionsConfig = configFile >> QEGVAR(medical_treatment,actions); private _actionsConfig = configFile >> QEGVAR(medical_treatment,actions);
private _actionPaths = ["ACE_Head", "ACE_Torso", "ACE_ArmLeft", "ACE_ArmRight", "ACE_LegLeft", "ACE_LegRight"]; private _actionPaths = ["ACE_Head", "ACE_Torso", "ACE_ArmLeft", "ACE_ArmRight", "ACE_LegLeft", "ACE_LegRight"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Displays the patient information for given unit. * Displays the patient information for given unit.
@ -15,8 +16,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
#define MAX_DISTANCE 10 #define MAX_DISTANCE 10
params ["_target", ["_show", 0], ["_selectionN", 0]]; params ["_target", ["_show", 0], ["_selectionN", 0]];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Display triage card for a unit * Display triage card for a unit
@ -15,8 +16,6 @@
* Public: Yes * Public: Yes
*/ */
#include "script_component.hpp"
params ["_target", ["_show", true]]; params ["_target", ["_show", true]];
GVAR(TriageCardTarget) = [objNull, _target] select _show; GVAR(TriageCardTarget) = [objNull, _target] select _show;

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Grab available treatment options for given category * Grab available treatment options for given category
@ -15,7 +16,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_player", "_target", "_name"]; params ["_player", "_target", "_name"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Display the available treatment options in category * Display the available treatment options in category
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
#define START_IDC 20 #define START_IDC 20
#define END_IDC 27 #define END_IDC 27

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Handle the triage card display * Handle the triage card display
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
disableSerialization; disableSerialization;

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: esteldunedain * Author: esteldunedain
* Modify the visuals of a medical action point. * Modify the visuals of a medical action point.
@ -14,7 +15,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_target", "_player", "_partIndex", "_actionData"]; params ["_target", "_player", "_partIndex", "_actionData"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Module for adjusting the medical menu settings * Module for adjusting the medical menu settings
@ -16,8 +17,6 @@
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_logic", "", "_activated"]; params ["_logic", "", "_activated"];
if !(_activated) exitWith {}; if !(_activated) exitWith {};

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: joko // Jonas * Author: joko // Jonas
* Handle medical menu closed * Handle medical menu closed
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
if (EGVAR(interact_menu,menuBackground)==1) then {[QGVAR(id), false] call EFUNC(common,blurScreen);}; if (EGVAR(interact_menu,menuBackground)==1) then {[QGVAR(id), false] call EFUNC(common,blurScreen);};
if (EGVAR(interact_menu,menuBackground)==2) then {(uiNamespace getVariable [QEGVAR(interact_menu,menuBackground), displayNull]) closeDisplay 0;}; if (EGVAR(interact_menu,menuBackground)==2) then {(uiNamespace getVariable [QEGVAR(interact_menu,menuBackground), displayNull]) closeDisplay 0;};

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Handle medical menu opened * Handle medical menu opened
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
#define MAX_DISTANCE 10 #define MAX_DISTANCE 10
params ["_display"]; params ["_display"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Open the medical menu for target * Open the medical menu for target
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_interactionTarget"]; params ["_interactionTarget"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Set the triage status of object * Set the triage status of object
@ -14,7 +15,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_target", "_status"]; params ["_target", "_status"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Update the activity log * Update the activity log
@ -14,7 +15,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_display", "_logs"]; params ["_display", "_logs"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Update the body image on the menu * Update the body image on the menu
@ -16,7 +17,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_selectionBloodLoss", "_selectionDamage", "_selectionTourniquet", "_display"]; params ["_selectionBloodLoss", "_selectionDamage", "_selectionTourniquet", "_display"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Update the category icons * Update the category icons
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
#define START_IDC 111 #define START_IDC 111
#define END_IDC 118 #define END_IDC 118

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Update the treatment information list * Update the treatment information list
@ -15,7 +16,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_display", "_genericMessages", "_allInjuryTexts"]; params ["_display", "_genericMessages", "_allInjuryTexts"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Update the quick view log * Update the quick view log
@ -14,7 +15,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_display", "_logs"]; params ["_display", "_logs"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Update all UI information in the medical menu * Update all UI information in the medical menu
@ -14,7 +15,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_target", "_display"]; params ["_target", "_display"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Checks if the cardiac arrest timer ran out. * Checks if the cardiac arrest timer ran out.
@ -10,7 +11,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];
private _startTime = _unit getVariable [QGVAR(cardiacArrestStart), CBA_missionTime]; private _startTime = _unit getVariable [QGVAR(cardiacArrestStart), CBA_missionTime];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Condition for an execution caused death. * Condition for an execution caused death.
@ -10,7 +11,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];
(GVAR(fatalInjuryCondition) < 2) && {!(_unit getVariable [QGVAR(deathBlocked), false])} (GVAR(fatalInjuryCondition) < 2) && {!(_unit getVariable [QGVAR(deathBlocked), false])}

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Handles a unit entering cardiac arrest. * Handles a unit entering cardiac arrest.
@ -10,7 +11,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Raises the transition to the next state instantly when fatally injured. * Raises the transition to the next state instantly when fatally injured.
@ -10,7 +11,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];
[QEGVAR(medical,FatalInjuryInstantTransition), _unit] call CBA_fnc_localEvent; [QEGVAR(medical,FatalInjuryInstantTransition), _unit] call CBA_fnc_localEvent;

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Handles a unit entering cardiac arrest. * Handles a unit entering cardiac arrest.
@ -10,7 +11,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Gives the unit a second chance and prevents death for 1 second. * Gives the unit a second chance and prevents death for 1 second.
@ -10,7 +11,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];
_unit setVariable [QEGVAR(medical,deathBlocked), true]; _unit setVariable [QEGVAR(medical,deathBlocked), true];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: BaerMitUmlaut * Author: BaerMitUmlaut
* Adds a heart rate adjustment that will take effect over time. * Adds a heart rate adjustment that will take effect over time.
@ -11,7 +12,6 @@
* Return Value: * Return Value:
* None * None
*/ */
#include "script_component.hpp"
params ["_unit", "_change", "_timeToMaxEffect", "_maxTimeInSystem"]; params ["_unit", "_change", "_timeToMaxEffect", "_maxTimeInSystem"];
private _adjustments = _unit getVariable [VAR_HEART_RATE_ADJ,[]]; private _adjustments = _unit getVariable [VAR_HEART_RATE_ADJ,[]];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Calculate the total blood loss of a unit. * Calculate the total blood loss of a unit.
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Calculate the blood pressure of a unit. * Calculate the blood pressure of a unit.
@ -15,8 +16,6 @@
* Public: No * Public: No
*/ */
#include "script_component.hpp"
// Value is taken because with cardic output and resistance at default values, it will put blood pressure High at 120. // Value is taken because with cardic output and resistance at default values, it will put blood pressure High at 120.
#define MODIFIER_BP_HIGH 13.7142792 #define MODIFIER_BP_HIGH 13.7142792

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Calculates the blood volume change and decreases the IVs given to the unit. * Calculates the blood volume change and decreases the IVs given to the unit.
@ -15,7 +16,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit", "_deltaT", "_syncValues"]; params ["_unit", "_deltaT", "_syncValues"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Get the cardiac output from the Heart, based on current Heart Rate and Blood Volume. * Get the cardiac output from the Heart, based on current Heart Rate and Blood Volume.
@ -14,8 +15,6 @@
* Public: No * Public: No
*/ */
#include "script_component.hpp"
/* /*
Cardiac output (Q or or CO ) is the volume of blood being pumped by the heart, in particular by a left or right ventricle in the CBA_missionTime interval of one second. CO may be measured in many ways, for example dm3/min (1 dm3 equals 1 litre). Cardiac output (Q or or CO ) is the volume of blood being pumped by the heart, in particular by a left or right ventricle in the CBA_missionTime interval of one second. CO may be measured in many ways, for example dm3/min (1 dm3 equals 1 litre).
Source: http://en.wikipedia.org/wiki/Cardiac_output Source: http://en.wikipedia.org/wiki/Cardiac_output

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Ruthberg * Author: Ruthberg
* Check if a unit has stable vitals (required to become conscious) * Check if a unit has stable vitals (required to become conscious)
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: KoffeinFlummi, commy2 * Author: KoffeinFlummi, commy2
* Initializes unit variables. * Initializes unit variables.
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: PabstMirror * Author: PabstMirror
* Returns if a target is being carried. (from ace_dragging) * Returns if a target is being carried. (from ace_dragging)
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_target"]; params ["_target"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: PabstMirror * Author: PabstMirror
* Returns if a target is being dragged. (from ace_dragging) * Returns if a target is being dragged. (from ace_dragging)
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_target"]; params ["_target"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Check if a unit is in a stable condition * Check if a unit is in a stable condition
@ -14,8 +15,6 @@
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];
(alive _unit (alive _unit

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Triggers a unit into the Cardiac Arrest state from CMS. Will put the unit in an unconscious state and run a countdown timer until unit dies. * Triggers a unit into the Cardiac Arrest state from CMS. Will put the unit in an unconscious state and run a countdown timer until unit dies.
@ -15,8 +16,6 @@
* Public: yes * Public: yes
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];
if IN_CRDC_ARRST(_unit) exitWith {}; if IN_CRDC_ARRST(_unit) exitWith {};

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: commy2 * Author: commy2
* Kills a local unit. * Kills a local unit.
@ -14,7 +15,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit", ["_reason", "unknown"]]; params ["_unit", ["_reason", "unknown"]];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Sets a unit in the unconscious state. * Sets a unit in the unconscious state.
@ -15,7 +16,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit", "_knockOut"]; params ["_unit", "_knockOut"];
TRACE_2("setUnconsciousStatemachine",_unit,_knockOut); TRACE_2("setUnconsciousStatemachine",_unit,_knockOut);

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Action for checking the blood pressure of the patient * Action for checking the blood pressure of the patient
@ -12,7 +13,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_caller", "_target", "_bodyPart"]; params ["_caller", "_target", "_bodyPart"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Local callback for checking the blood pressure of a patient * Local callback for checking the blood pressure of a patient
@ -12,7 +13,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_caller", "_target", "_bodyPart"]; params ["_caller", "_target", "_bodyPart"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Action for checking the pulse or heart rate of the patient * Action for checking the pulse or heart rate of the patient
@ -12,7 +13,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_caller", "_target", "_bodyPart"]; params ["_caller", "_target", "_bodyPart"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Local callback for checking the pulse of a patient * Local callback for checking the pulse of a patient
@ -12,7 +13,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_caller", "_target", "_bodyPart"]; params ["_caller", "_target", "_bodyPart"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Action for checking the response status of the patient * Action for checking the response status of the patient
@ -14,7 +15,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_caller", "_target"]; params ["_caller", "_target"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Action for diagnosing in basic medical * Action for diagnosing in basic medical
@ -11,7 +12,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_caller", "_target"]; params ["_caller", "_target"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Action for loading an unconscious or dead unit in the nearest vehicle, or _vehicle if given. * Action for loading an unconscious or dead unit in the nearest vehicle, or _vehicle if given.
@ -15,7 +16,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_caller", "_target", ["_vehicle", objNull]]; params ["_caller", "_target", ["_vehicle", objNull]];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Replace a (dead) body by a body bag * Replace a (dead) body by a body bag
@ -14,7 +15,6 @@
* *
* Public: Yes * Public: Yes
*/ */
#include "script_component.hpp"
params ["_caller", "_target"]; params ["_caller", "_target"];
TRACE_2("params",_caller,_target); TRACE_2("params",_caller,_target);

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Action for unloading an unconscious or dead unit from a vechile * Action for unloading an unconscious or dead unit from a vechile
@ -15,7 +16,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_caller", "_target", ["_drag", false]]; params ["_caller", "_target", ["_drag", false]];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: 654wak654 * Author: 654wak654
* Adds child actions to the "load patient" action for near vehicles. * Adds child actions to the "load patient" action for near vehicles.
@ -13,7 +14,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_target"]; params ["_target"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Add an entry to the specified log * Add an entry to the specified log
@ -16,7 +17,6 @@
* *
* Public: Yes * Public: Yes
*/ */
#include "script_component.hpp"
params ["_unit", "_type", "_message", "_arguments"]; params ["_unit", "_type", "_message", "_arguments"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Add an entry to the triage card * Add an entry to the triage card
@ -14,7 +15,6 @@
* *
* Public: Yes * Public: Yes
*/ */
#include "script_component.hpp"
params ["_unit", "_newItem"]; params ["_unit", "_newItem"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal, esteldunedain * Author: Glowbal, esteldunedain
* Loop that cleans up player bodies that were replaced by bodybags * Loop that cleans up player bodies that were replaced by bodybags
@ -14,8 +15,6 @@
* Public: No * Public: No
*/ */
#include "script_component.hpp"
{ {
TRACE_2("body",_x,isPlayer _x); TRACE_2("body",_x,isPlayer _x);
if ((!isNull _x) && {!isPlayer _x}) then {deleteVehicle _x}; if ((!isNull _x) && {!isPlayer _x}) then {deleteVehicle _x};

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Zakant * Author: Zakant
* Calculate the blood lost and blood volume for a unit. Used from CPR to simulate a heart rate while in cardiac arrest. * Calculate the blood lost and blood volume for a unit. Used from CPR to simulate a heart rate while in cardiac arrest.
@ -10,7 +11,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params["_unit"]; params["_unit"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Check if caller can access targets medical equipment, based upon accessLevel. * Check if caller can access targets medical equipment, based upon accessLevel.
@ -15,8 +16,6 @@
* Public: Yes * Public: Yes
*/ */
#include "script_component.hpp"
params ["_caller", "_target"]; params ["_caller", "_target"];
private _accessLevel = _target getVariable [QGVAR(allowSharedEquipmentAccess), -1]; private _accessLevel = _target getVariable [QGVAR(allowSharedEquipmentAccess), -1];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Check if the treatment action can be performed. * Check if the treatment action can be performed.
@ -16,7 +17,6 @@
* *
* Public: Yes * Public: Yes
*/ */
#include "script_component.hpp"
params ["_caller", "_target", "_bodyPart", "_className"]; params ["_caller", "_target", "_bodyPart", "_className"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Cached Check if the treatment action can be performed. * Cached Check if the treatment action can be performed.
@ -17,8 +18,6 @@
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["", "_target", "_selection", "_classname"]; params ["", "_target", "_selection", "_classname"];
// parameters, function, namespace, uid // parameters, function, namespace, uid

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: KoffeinFlummi, commy2 * Author: KoffeinFlummi, commy2
* Replaces vanilla items with ACE ones. * Replaces vanilla items with ACE ones.
@ -10,7 +11,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_unit"]; params ["_unit"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Display triage card for a unit * Display triage card for a unit
@ -14,8 +15,6 @@
* Public: Yes * Public: Yes
*/ */
#include "script_component.hpp"
params ["_show"]; params ["_show"];
disableSerialization; disableSerialization;

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Get the triage status and information from a unit * Get the triage status and information from a unit
@ -13,8 +14,6 @@
* Public: Yes * Public: Yes
*/ */
#include "script_component.hpp"
private ["_unit","_return","_status"]; private ["_unit","_return","_status"];
params ["_unit"]; params ["_unit"];
_status = _unit getVariable [QEGVAR(medical,triageLevel), -1]; _status = _unit getVariable [QEGVAR(medical,triageLevel), -1];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Handles the bandage of a patient. * Handles the bandage of a patient.
@ -15,7 +16,6 @@
* *
* Public: No * Public: No
*/ */
#include "script_component.hpp"
params ["_target", "_impact", "_part", "_injuryIndex", "_injury", "_bandage"]; params ["_target", "_impact", "_part", "_injuryIndex", "_injury", "_bandage"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Check if the item is present between the patient and the medic * Check if the item is present between the patient and the medic
@ -15,7 +16,6 @@
* *
* Public: Yes * Public: Yes
*/ */
#include "script_component.hpp"
params ["_medic", "_patient", "_item"]; params ["_medic", "_patient", "_item"];

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/* /*
* Author: Glowbal * Author: Glowbal
* Check if all items are present between the patient and the medic. * Check if all items are present between the patient and the medic.
@ -15,7 +16,6 @@
* *
* Public: Yes * Public: Yes
*/ */
#include "script_component.hpp"
params ["_medic", "_patient", "_items"]; params ["_medic", "_patient", "_items"];

Some files were not shown because too many files have changed in this diff Show More