Skip to content

Commit

Permalink
Merge pull request dklollol#113 from dklollol/dev
Browse files Browse the repository at this point in the history
Pushing 3.2.0 to master
  • Loading branch information
BlackHawkPL authored Nov 5, 2016
2 parents a55b500 + b2f543e commit efaa9eb
Show file tree
Hide file tree
Showing 86 changed files with 2,817 additions and 2,018 deletions.
2 changes: 2 additions & 0 deletions core/description.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
disabledAI = 1; //disabledAI does so not slotted units do not spawn as ai
respawnButton = 1; //Disables the respawn button
respawnDialog = 0; //Disables the score screen while respawning
respawnTemplates[] = {"Base"}; //Disables respawn countdown
enableDebugConsole = 1; //Only for logged-in admins

class Extended_PreInit_EventHandlers {

Expand Down
38 changes: 19 additions & 19 deletions core/dia/endscreen/dia_endscreen.sqf
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
disableUserInput true;

createDialog "DIA_ENDSCREEN";
_dia = 300;
_bg = 3000;
_endTitle = 3001;
_left = 3002;
_right = 3003;

_scenario = _this select 0;
_timeLimt = _this select 1;
_teams = _this select 2;
params ["_scenario", "_timeLimit", "_teams"];

{

_x enableSimulation false;

} forEach vehicles;

[] spawn {

sleep 4;
{

_x enableSimulation false;
removeAllWeapons _x;

} forEach allPlayers;
};

_leftText = "";
_rightText = "";
_textSide = 0;
{

_name = _x select 0;
_side = _x select 1;
_type = _x select 2;
_start = _x select 3;
_current = _x select 4;
_disabled = _x select 5;
_destroyed = _x select 6;

_x params ["_name", "_side", "_type", "_start", "_current", "_disabled", "_destroyed"];

_temp = format ["%1<br />Casualties: %2 out of %3<br />", _name, (_start - _current), _start];

Expand Down Expand Up @@ -73,17 +74,17 @@ _textSide = 0;

_endTitleText = _scenario;

if (_timeLimt != 0) then {
if (_timeLimit != 0) then {

_time = ceil(time / 60);

if (_time >= _timeLimt) then {
if (_time >= _timeLimit) then {

_time = _timeLimt;
_time = _timeLimit;

};

_timeLimitText = format ["Mission duration: %1 out of %2 minutes", _time, _timeLimt];
_timeLimitText = format ["Mission duration: %1 out of %2 minutes", _time, _timeLimit];

_endTitleText = format ["%1<br />%2", _scenario, _timeLimitText];

Expand All @@ -100,6 +101,5 @@ for "_x" from 1 to 120 do {

};

sleep (15);
disableUserInput false;
sleep (10);
endMission "END1";
Loading

0 comments on commit efaa9eb

Please sign in to comment.