Skip to content

Commit

Permalink
Move #includes before function headers (#6484)
Browse files Browse the repository at this point in the history
  • Loading branch information
dedmen authored and kymckay committed Jul 30, 2018
1 parent c9ad92e commit 6bd8542
Show file tree
Hide file tree
Showing 136 changed files with 136 additions and 161 deletions.
2 changes: 1 addition & 1 deletion addons/medical/functions/fnc_adjustPainLevel.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: PabstMirror
* Interface to allow external modules to affect the pain level
Expand All @@ -14,7 +15,6 @@
*
* Public: Yes
*/
#include "script_component.hpp"

params ["_unit", "_desiredPainLevel"];

Expand Down
2 changes: 1 addition & 1 deletion addons/medical/functions/fnc_dev_watchMedicalStats.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: PabstMirror
* Dev function to watch all medical variables on a unit
Expand All @@ -13,7 +14,6 @@
*
* Public: Yes
*/
#include "script_component.hpp"

["medical", {

Expand Down
2 changes: 1 addition & 1 deletion addons/medical/functions/fnc_getUnitState.sqf
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -13,7 +14,6 @@
*
* Public: Yes
*/
#include "script_component.hpp"

params ["_unit"];

Expand Down
3 changes: 1 addition & 2 deletions addons/medical/functions/fnc_moduleMedicalSettings.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Glowbal
* Module for adjusting the medical damage settings
Expand All @@ -16,8 +17,6 @@
* Public: No
*/

#include "script_component.hpp"

params ["_logic", "_units", "_activated"];

if !(_activated) exitWith {};
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_ai/functions/fnc_canRequestMedic.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Checks if there is a medic available in the unit's group.
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_ai/functions/fnc_healSelf.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Makes the unit heal itself.
Expand All @@ -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 {};
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_ai/functions/fnc_healUnit.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Makes a medic heal the next unit that needs treatment.
Expand All @@ -13,7 +14,6 @@
*
* Public: No
*/
#include "script_component.hpp"

// Can't heal other units when unconscious
if IS_UNCONSCIOUS(_this) exitWith {};
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_ai/functions/fnc_isInjured.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Checks if a unit needs treatment.
Expand All @@ -13,7 +14,6 @@
*
* Public: No
*/
#include "script_component.hpp"

if !(alive _this) exitWith {false};

Expand Down
2 changes: 1 addition & 1 deletion addons/medical_ai/functions/fnc_isSafe.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Checks if a unit is currently considered safe enough to treat itself.
Expand All @@ -13,6 +14,5 @@
*
* Public: No
*/
#include "script_component.hpp"

(getSuppression _this == 0) && {CBA_missionTime - (_this getVariable [QGVAR(lastFired), -30]) > 30}
2 changes: 1 addition & 1 deletion addons/medical_ai/functions/fnc_playTreatmentAnim.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Plays the corresponding treatment animation.
Expand All @@ -15,7 +16,6 @@
*
* Public: No
*/
#include "script_component.hpp"
params ["_unit", "_isBandage", "_isSelfTreatment"];

if (vehicle _unit != _unit) exitWith {};
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_ai/functions/fnc_requestMedic.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Sends a request to the units assigned medic to heal it.
Expand All @@ -13,7 +14,6 @@
*
* Public: No
*/
#include "script_component.hpp"

private _assignedMedic = _this getVariable QGVAR(assignedMedic);
private _healQueue = _assignedMedic getVariable [QGVAR(healQueue), []];
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_ai/functions/fnc_wasRequested.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Checks if the unit was requested to treat another unit.
Expand All @@ -13,7 +14,6 @@
*
* Public: No
*/
#include "script_component.hpp"

private _healQueue = _this getVariable [QGVAR(healQueue), []];
!(_healQueue isEqualTo [])
3 changes: 1 addition & 2 deletions addons/medical_blood/functions/fnc_createBlood.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Glowbal
* Spawn a blood drop.
Expand All @@ -16,8 +17,6 @@
* Public: No
*/

#include "script_component.hpp"

params ["_type", "_pos"];
TRACE_2("creating blood",_type,_pos);

Expand Down
2 changes: 1 addition & 1 deletion addons/medical_blood/functions/fnc_handleWoundReceived.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Glowbal, commy2
* Handle wounds received event.
Expand All @@ -12,7 +13,6 @@
*
* Public: No
*/
#include "script_component.hpp"

params ["_unit", "", "_damage", "_shooter"];

Expand Down
2 changes: 1 addition & 1 deletion addons/medical_blood/functions/fnc_isBleeding.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Glowbal
* Check if is bleeding
Expand All @@ -13,7 +14,6 @@
*
* Public: No
*/
#include "script_component.hpp"

params ["_unit"];

Expand Down
2 changes: 1 addition & 1 deletion addons/medical_blood/functions/fnc_onBleeding.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Glowbal
* handle bleeding state (state machine)
Expand All @@ -13,7 +14,6 @@
*
* Public: No
*/
#include "script_component.hpp"

params ["_unit"];

Expand Down
2 changes: 1 addition & 1 deletion addons/medical_blood/functions/fnc_serverCleanupBlood.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: PabstMirror
* Loop that cleans up blood
Expand All @@ -10,7 +11,6 @@
*
* Public: No
*/
#include "script_component.hpp"

(GVAR(bloodDrops) deleteAt 0) params ["", "_deletedBloodDrop"];
deleteVehicle _deletedBloodDrop;
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_blood/functions/fnc_spurt.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Sickboy
* Spurt blood on the ground
Expand All @@ -15,7 +16,6 @@
*
* Public: No
*/
#include "script_component.hpp"

#define MAXIMUM_DROPS 4
#define DISTANCE_BETWEEN_DROPS 0.20
Expand Down
3 changes: 1 addition & 2 deletions addons/medical_damage/functions/fnc_getTypeOfDamage.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Glowbal
* Get the type of damage based upon the projectile.
Expand All @@ -14,8 +15,6 @@
* Public: No
*/

#include "script_component.hpp"

params ["_typeOfProjectile"];

// --- projectiles
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Ruthberg
* Handle incapacitation due to damage and pain
Expand All @@ -10,7 +11,6 @@
*
* Public: No
*/
#include "script_component.hpp"

params ["_unit"];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Glowbal, commy2
* Parse the ACE_Medical_Advanced config for all injury types.
Expand All @@ -10,7 +11,6 @@
*
* Public: No
*/
#include "script_component.hpp"

private _injuriesConfigRoot = configFile >> "ACE_Medical_Injuries";

Expand Down
2 changes: 1 addition & 1 deletion addons/medical_damage/functions/fnc_woundsHandler.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Glowbal, commy2
* Handling of the open wounds & injuries upon the handleDamage eventhandler.
Expand All @@ -13,7 +14,6 @@
*
* Public: No
*/
#include "script_component.hpp"

params ["_unit", "_bodyPart", "_damage", "_typeOfDamage"];
TRACE_5("start",_unit,_bodyPart,_damage,_typeOfDamage);
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_damage/functions/fnc_woundsHandlerSQF.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: Glowbal, commy2
* Handling of the open wounds & injuries upon the handleDamage eventhandler.
Expand All @@ -13,7 +14,6 @@
*
* Public: No
*/
#include "script_component.hpp"

params ["_unit", "_bodyPart", "_damage", "_typeOfDamage"];
TRACE_5("start",_unit,_bodyPart,_damage,_typeOfDamage);
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_engine/functions/fnc_damageBodyPart.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: commy2
* Damages a body part of a local unit. Does not kill the unit.
Expand All @@ -21,7 +22,6 @@
*
* Public: No
*/
#include "script_component.hpp"

params ["_unit", "_selection", "_damage"];
TRACE_3("damageBodyPart",_unit,_selection,_damage);
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_engine/functions/fnc_handleDamage.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: commy2
* Main HandleDamage EH function for soldiers.
Expand All @@ -10,7 +11,6 @@
*
* Public: No
*/
#include "script_component.hpp"

// for travis
#define HIT_STRUCTURAL QGVAR($#structural)
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_engine/functions/fnc_setLimping.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: commy2
* Forces a unit to limp or not.
Expand All @@ -14,7 +15,6 @@
*
* Public: No
*/
#include "script_component.hpp"

params [["_unit", objNull, [objNull]], ["_isLimping", true, [false]]];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: commy2
* Set structural damage of an object without modifying the individual hit points.
Expand All @@ -14,7 +15,6 @@
*
* Public: No
*/
#include "script_component.hpp"

params [["_unit", objNull, [objNull]], ["_damage", 0, [0]]];

Expand Down
2 changes: 1 addition & 1 deletion addons/medical_engine/functions/fnc_setUnconsciousAnim.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: commy2
* Force local unit into ragdoll / unconsciousness animation.
Expand All @@ -14,7 +15,6 @@
*
* Public: No
*/
#include "script_component.hpp"

params [["_unit", objNull, [objNull]], ["_isUnconscious", true, [false]]];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: commy2
* Damages a body part of a local unit. Does not kill the unit.
Expand All @@ -17,7 +18,6 @@
*
* Public: No
*/
#include "script_component.hpp"

params ["_unit", "_updateHead", "_updateBody", "_updateArms", "_updateLegs"];
TRACE_5("updateBodyPartVisuals",_unit,_updateHead,_updateBody,_updateArms,_updateLegs);
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_feedback/functions/fnc_effectBleeding.sqf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Handles the bleeding effect.
Expand All @@ -9,7 +10,6 @@
* Return Value:
* None
*/
#include "script_component.hpp"
params ["_enable", "_bloodloss"];
if (isNull findDisplay 46) exitWith {};

Expand Down
Loading

0 comments on commit 6bd8542

Please sign in to comment.