-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MATCHED: versions of other islands & pbos.
- Loading branch information
Showing
546 changed files
with
6,421 additions
and
1,221 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
adv_missiontemplate.chernarus/functions/client/internal/fn_privateDebug.sqf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
if !(getPlayerUID player in ["76561197985568467"]) exitWith {false}; | ||
|
||
if !(missionNamespace getVariable ["adv_var_adminCommandsApplied",false]) then { | ||
[] call adv_fnc_adminCommands; | ||
}; | ||
|
||
private _handle = ["ace_unconscious", { | ||
_this spawn { | ||
params ["_unit","_state"]; | ||
|
||
if !(_unit isEqualTo player) exitWith {}; | ||
if !(getPlayerUID player in ["76561197985568467"]) exitWith {}; | ||
|
||
_unit setVariable ["adv_var_belboIsUnconscious",_state]; | ||
|
||
if (_state) then { | ||
|
||
while { (_unit getVariable "adv_var_belboIsUnconscious") } do { | ||
hint ""; | ||
|
||
private _RS = _unit getVariable ["ace_medical_inReviveState",false]; | ||
private _CA = _unit getVariable ["ace_medical_inCardiacArrest",false]; | ||
private _BV = _unit getVariable ["ace_medical_bloodVolume",100]; | ||
private _HR = _unit getVariable ["ace_medical_heartRate",60]; | ||
private _PN = _unit getVariable ["ace_medical_pain",0]; | ||
|
||
private _RT = "N/A"; | ||
if (_RS) then { | ||
private _RST = _unit getVariable ["ace_medical_reviveStartTime",nil]; | ||
private _maxRT = missionNamespace getVariable ["ace_medical_maxReviveTime",600]; | ||
_RT = floor ((_maxRT+_RST)-CBA_missionTime); | ||
}; | ||
|
||
private _BL = 0; | ||
private _CT = "N/A"; | ||
if (isClass(configFile >> "CfgPatches" >> "adv_aceCPR")) then { | ||
_BL = [_unit, _unit] call adv_aceCPR_fnc_getBloodLoss; | ||
|
||
if (_RS) then { | ||
private _maxRevTime = missionNamespace getVariable ["ace_medical_maxReviveTime",900]; | ||
private _startTime = _unit getVariable ["ace_medical_reviveStartTime",0]; | ||
private _cprMaxTime = missionNamespace getVariable ["adv_aceCPR_maxTime",900]; | ||
private _timeLeft = _startTime + ( _maxRevTime min _cprMaxTime ); | ||
_CT = abs ( (round (cba_missionTime - _timeLeft)) min 0 ); | ||
}; | ||
}; | ||
|
||
private _format = ["Hey Belbo! Es sieht schlecht aus: | ||
\n Dein Revive State ist %1. | ||
\n Dein Cardiac Arrest State ist %2. | ||
\n Dein Blood Volume liegt bei %3%4. | ||
\n Deine Herzrate liegt bei %5 bpm. | ||
\n Du bist noch %6 Sekunden im Revive State. | ||
\n Dir bleiben noch %7 Sekunden für CPR. | ||
\n Dein Bloodloss beträgt %8. | ||
\n Du hast Schmerzen in Höhe von %9." | ||
,_RS,_CA,round _BV,"%",round _HR,_RT,_CT,_BL,_PN]; | ||
|
||
hint format _format; | ||
|
||
sleep 5; | ||
hint ""; | ||
|
||
}; | ||
|
||
}; | ||
}; | ||
}] call CBA_fnc_addEventHandler; | ||
|
||
_handle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.