Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- File: fn_deathScreen.sqf
- Author: Bryan "Tonic" Boardwine
- Description:
- Handles stuff being displayed on the death screen while
- it is currently active.
- */
- private["_medicsOnline","_medicsNear"];
- disableSerialization;
- _medicsOnline = ((findDisplay 7300) displayCtrl 7304);
- _medicsNear = ((findDisplay 7300) displayCtrl 7305);
- waitUntil {
- _nearby = 99999;
- {
- if (side _x == independent && alive _x && _x != player) then
- {
- _distance = (getPosATL life_corpse) distance _x;
- if (_distance < _nearby) then { _nearby = _distance; };
- };
- } forEach playableUnits;
- _medicsOnline ctrlSetText format[localize "STR_Medic_Online",[independent] call life_fnc_playerCount];
- if (_nearby == 99999) then { _medicsNear ctrlSetText format[localize "STR_Medic_NearbyNo",_nearby]; }
- else { _medicsNear ctrlSetText format[localize "STR_Medic_Near",[(round _nearby)] call life_fnc_numberText]; };
- sleep 1;
- (isNull (findDisplay 7300))
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement