Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- span class="re5"> client_execution = {
- if (isplayer player) then
- {
- waituntil {local player};
- player enableSimulation false;
- 2003 CutText ["Initialising...", "BLACK"];
- //calculate time
- _future = time + 5;
- waitUntil {(time >= _future)};
- defaultloadoutinit = [player] spawn {
- _unit = _this select 0;
- removeAllWeapons _unit;
- removeAllItems _unit;
- clearMagazineCargo (unitBackpack _unit);
- [_unit, "ALL"] call ACE_fnc_RemoveGear;
- {player addweapon _x} foreach startinggear;
- };
- ace_sys_tracking_markers_enabled = false;
- ace_sys_eject_fnc_weaponcheck = {};
- setViewDistance 1609;
- setTerrainGrid 50;
- onMapSingleClick {_shift};
- player setskill 0;
- player setVariable ["BIS_noCoreConversations", true];
- enableRadio false;
- {player disableAI _x} foreach ["MOVE","ANIM","TARGET","AUTOTARGET"];
- [] call (compile (preprocessFileLineNumbers ("\ca\Modules\MP\data\scripts\MPframework.sqf")));
- waitUntil { scriptDone defaultloadoutinit };
- titleFadeOut 0.1;
- 2003 CutText ["Initialisation Completed", "BLACK IN", 5];
- diag_log format ["Mission Initialisation Completed for: %1 at: %2", player, time];
- player enablesimulation true;
- [] spawn {
- sleep 5;
- [str ("Template"), str("Chernarus"), str(date select 1) + "." + str(date select 2) + "." + str(date select 0)] spawn BIS_fnc_infoText;
- };
- };
- };
- player call client_execution;
- if (!isServer && isNull player) then {
- waitUntil {!isNull player};
- waituntil {local player};
- player call client_execution;
- player setpos (getmarkerpos "respawn_west");
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement