Skip to content

Commit

Permalink
fix start position
Browse files Browse the repository at this point in the history
  • Loading branch information
McDiod committed May 2, 2017
1 parent 34ce43d commit 2674347
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 20 deletions.
8 changes: 7 additions & 1 deletion functions/init/fn_initMission.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ wita_missionParam_RESPAWNTIME = "RESPAWNTIME" call BIS_fnc_getParamValue;
_bluforPos = [_indepPos] call wita_setup_fnc_blufor;
[] call wita_setup_fnc_createCustomLocations;

missionNamespace setVariable ["WITA_INDEPPOS",_indepPos,true];
missionNamespace setVariable ["WITA_BLUFORPOS",_bluforPos,true];

_carsHandle = [] spawn wita_civs_fnc_cars;
_heliHandle = [] spawn wita_civs_fnc_helicopters;
_boatHandle = [] spawn wita_civs_fnc_boats;
Expand All @@ -29,7 +32,10 @@ wita_missionParam_RESPAWNTIME = "RESPAWNTIME" call BIS_fnc_getParamValue;

if (hasInterface) then {
[{missionNamespace getVariable ["WITA_GAMESTARTED",false] && !isNull player}, {[] call wita_setup_fnc_addKilledEH}, []] call CBA_fnc_waitUntilAndExecute;
if (didJIP && {[] call wita_common_fnc_isAgent} && {[] call wita_common_fnc_isAgent}) then {
if (didJIP && {missionNamespace getVariable ["WITA_GAMESTARTED",false]}) then {
if (playerSide == INDEPENDENT) then {[player,WITA_INDEPPOS] call wita_common_fnc_teleport} else {[player,WITA_BLUFORPOS] call wita_common_fnc_teleport};
};
if (didJIP && {[] call wita_common_fnc_isAgent}) then {
[player] remoteExec ["wita_mission_fnc_agentMarker",2,false];
};
};
Expand Down
4 changes: 2 additions & 2 deletions node_modules/grad-scoreboard/functions/fn_loadScoreboard.sqf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions node_modules/grad-scoreboard/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tvt-wita2016",
"description": "Where is the agent?",
"version": "0.1.1",
"version": "0.2.0",
"contributors": [
{
"name": "XiviD"
Expand Down

0 comments on commit 2674347

Please sign in to comment.