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
* Interface to allow external modules to affect the pain level
@ -14,7 +15,6 @@
*
* Public: Yes
*/
#include "script_component.hpp"
params ["_unit", "_desiredPainLevel"];

View File

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

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Zakant
* 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
*/
#include "script_component.hpp"
params ["_unit"];

View File

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

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Checks if there is a medic available in the unit's group.
@ -13,7 +14,6 @@
*
* Public: No
*/
#include "script_component.hpp"
// Note: Although an unconscious unit cannot call for a medic itself,
// 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
* Makes the unit heal itself.
@ -13,7 +14,6 @@
*
* Public: No
*/
#include "script_component.hpp"
// Player will have to do this manually of course
if ([_this] call EFUNC(common,isPlayer)) exitWith {};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: commy2
* Damages a body part of a local unit. Does not kill the unit.
@ -17,7 +18,6 @@
*
* Public: No
*/
#include "script_component.hpp"
params ["_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
* Handles the bleeding effect.
@ -9,7 +10,6 @@
* Return Value:
* None
*/
#include "script_component.hpp"
params ["_enable", "_bloodloss"];
if (isNull findDisplay 46) exitWith {};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Creates actions for the given treatments and adds them to the interaction menu.
@ -13,7 +14,6 @@
*
* Public: No
*/
#include "script_component.hpp"
private _actionsConfig = configFile >> QEGVAR(medical_treatment,actions);
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
* Displays the patient information for given unit.
@ -15,8 +16,6 @@
*
* Public: No
*/
#include "script_component.hpp"
#define MAX_DISTANCE 10
params ["_target", ["_show", 0], ["_selectionN", 0]];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: joko // Jonas
* Handle medical menu closed
@ -13,7 +14,6 @@
*
* 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)==2) then {(uiNamespace getVariable [QEGVAR(interact_menu,menuBackground), displayNull]) closeDisplay 0;};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Glowbal
* Calculate the blood pressure of a unit.
@ -15,8 +16,6 @@
* 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.
#define MODIFIER_BP_HIGH 13.7142792

View File

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

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Glowbal
* Get the cardiac output from the Heart, based on current Heart Rate and Blood Volume.
@ -14,8 +15,6 @@
* 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).
Source: http://en.wikipedia.org/wiki/Cardiac_output

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* 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.
@ -15,8 +16,6 @@
* Public: yes
*/
#include "script_component.hpp"
params ["_unit"];
if IN_CRDC_ARRST(_unit) exitWith {};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Zakant
* 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
*/
#include "script_component.hpp"
params["_unit"];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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