Not needed anymore since BI Revive

This commit is contained in:
Christian 2018-04-03 15:58:03 +02:00
parent f64a675319
commit 275ce189b3
4 changed files with 0 additions and 145 deletions

View File

@ -41,8 +41,6 @@ if ( !isNil "greuh_options_profile" ) then {
[] call compile preprocessFileLineNumbers "GREUH\GREUH_config.sqf";
[] call compile preprocessFileLineNumbers "GREUH\scripts\GREUH_version.sqf";
execVM "GREUH\scripts\GREUH_actionmanager.sqf";
execVM "GREUH\scripts\GREUH_revive_camera.sqf";
execVM "GREUH\scripts\GREUH_medic_listener.sqf";
if ( GREUH_allow_mapmarkers ) then { execVM "GREUH\scripts\GREUH_playermarkers.sqf"; };
if ( GREUH_allow_platoonview ) then { execVM "GREUH\scripts\GREUH_platoonoverlay.sqf"; };
if ( GREUH_allow_platoonview ) then { execVM "GREUH\scripts\GREUH_cache_units.sqf"; };

View File

@ -1,14 +0,0 @@
public_medic_message = [];
while { true } do {
waitUntil {
sleep 0.3;
count public_medic_message != 0;
};
_unit = (public_medic_message select 0);
if (_unit != player) then {
_unit sidechat (public_medic_message select 1);
};
public_medic_message = [];
};

View File

@ -1,66 +0,0 @@
revive_ui = compile preprocessFileLineNumbers "GREUH\scripts\GREUH_revive_ui.sqf";
closeDialog 0;
closeDialog 0;
closeDialog 0;
sleep 1;
while { true } do {
waitUntil { ( player getVariable "GREUH_isUnconscious") == 1 };
_camobj = player;
_pos = positionCameraToWorld [0,0,-0.2];
_destpos = [getpos player select 0, getpos player select 1, (getpos player select 2) + 150];
_cam = "camera" camCreate _pos;
_cam cameraEffect ["internal", "BACK"];
_cam camSetFOV 1.0;
showCinemaBorder false;
if ( (date select 3) < 4 || (date select 3) >= 20 ) then { camUseNVG true; } else { camUseNVG false; };
_cam camSetTarget _camobj;
_dialog = createDialog "blackscreen";
0 fadesound 0;
[] spawn {
sleep 3.5;
3 fadesound 1;
titleText [ "" ,"BLACK IN",3];
};
"filmGrain" ppEffectAdjust [0.3, 2, 4, 0.5, 0.5, true];
"filmGrain" ppEffectCommit 0;
"filmGrain" ppEffectEnable TRUE;
"colorCorrections" ppEffectAdjust [1, 1.6, -0.35, [1, 1, 1, 0], [1, 1, 1, 0], [0.75, 0.25, 0, 1.0]];
"colorCorrections" ppEffectCommit 0;
"colorCorrections" ppEffectEnable TRUE;
_randomsound1 = ceil (random 6);
_randomsound2 = ceil (random 3);
_deathsound = format ["A3\sounds_f\characters\human-sfx\P0%1\Hit_Max_%2.wss",_randomsound1,_randomsound2];
playSound3D [_deathsound, player, false, getPos player, 1, 1, 0];
_cam camCommit 0;
_cam camSetPos _destpos;
_cam camCommit 900;
waitUntil { ((player getVariable "GREUH_isUnconscious") == 0) || ((player getVariable "FAR_isUnconscious") == 1) };
closeDialog 0;
waitUntil {!dialog};
if ((player getVariable "GREUH_isUnconscious") != 0) then {
[] spawn revive_ui;
waitUntil {dialog};
};
waitUntil { ( player getVariable "FAR_isUnconscious" ) == 0 || !alive player || !dialog };
player setVariable ["GREUH_isUnconscious", 0, true];
closeDialog 5566;
"colorCorrections" ppEffectEnable FALSE;
"filmGrain" ppEffectEnable FALSE;
_cam cameraEffect ["Terminate", "BACK"];
camDestroy _cam;
camUseNVG false;
};

View File

@ -1,63 +0,0 @@
_dialog = createDialog "GREUH_respawn";
waitUntil { dialog };
_labelwidth = -1;
_labelpos = [];
_tick = 0;
replace_ai = 0;
while { dialog && alive player } do {
if ( !isNil "public_bleedout_message" && !isNil "public_bleedout_timer") then {
if (_labelwidth == -1) then { _labelwidth = (ctrlPosition ((findDisplay 5566) displayCtrl 6699)) select 2 };
_labelpos = [ctrlPosition ((findDisplay 5566) displayCtrl 6699) select 0, ctrlPosition ((findDisplay 5566) displayCtrl 6699) select 1,_labelwidth * (public_bleedout_timer / FAR_BleedOut), ctrlPosition ((findDisplay 5566) displayCtrl 6699) select 3];
((findDisplay 5566) displayCtrl 6699) ctrlSetPosition _labelpos;
ctrlSetText [5567,public_bleedout_message];
if (public_bleedout_timer <= 30) then {
((findDisplay 5566) displayCtrl 5567) ctrlSetTextColor [1, 0, 0, 1];
if ( public_bleedout_timer % 2 == 0 ) then {
((findDisplay 5566) displayCtrl 6698) ctrlSetTextColor [1, 0, 0, 1];
} else {
((findDisplay 5566) displayCtrl 6698) ctrlSetTextColor [1, 1, 1, 1];
}
} else {
((findDisplay 5566) displayCtrl 5567) ctrlSetTextColor [1, 1, 1, 1];
};
((findDisplay 5566) displayCtrl 6699) ctrlCommit 0.5;
((findDisplay 5566) displayCtrl 6698) ctrlCommit 0.5;
};
if ( _tick % 10 == 0 ) then {
[ 10000 ] call BIS_fnc_bloodEffect;
};
_tick = _tick + 1;
_nearby_ais = [ units group player, { !(isPlayer _x) && (_x distance player < 100) } ] call BIS_fnc_conditionalSelect;
if ( count _nearby_ais > 0 ) then {
_nearby_ai = ( [ _nearby_ais , [] , { _x distance player } , 'ASCEND' ] call BIS_fnc_sortBy ) select 0;
((findDisplay 5566) displayCtrl 678) ctrlEnable true;
((findDisplay 5566) displayCtrl 678) ctrlShow true;
if ( replace_ai > 0 && (alive _nearby_ai) ) then {
cutText [ "","BLACK IN", 3 ];
GRLIB_replace_ai = true;
player setVariable ["FAR_isUnconscious", 0, true];
_ai_pos = getposATL _nearby_ai;
_ai_dir = getDir _nearby_ai;
_ai_damage = damage _nearby_ai;
deleteVehicle _nearby_ai;
player setPosATL _ai_pos;
player setDir _ai_dir;
player setDamage _ai_damage;
};
} else {
replace_ai = 0;
((findDisplay 5566) displayCtrl 678) ctrlEnable false;
((findDisplay 5566) displayCtrl 678) ctrlShow false;
};
sleep 0.25;
};