Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*=============================================
- init_client.sqf executes everything that is needed
- Authors: richarddanh.com
- www.pizzadox.org
- =================================================*/
- #define StartingGear ["ACE_Earplugs","ItemGPS","ItemWatch","ACRE_PRC343","ACRE_PRC148","ACE_Map_Tools","ACE_GlassesLHD_glasses","ACE_GlassesGasMask_US","ItemCompass","NVGoggles","Binocular", "ACE_KeyCuffs", "ACE_MAP"]
- client_execution = {
- if (isplayer player) then
- {
- waituntil {local player};
- //player enableSimulation false;
- 2003 CutText ["Loading...", "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;
- {_unit addweapon _x} foreach StartingGear;
- [_unit] execFSM "x\ace\addons\sys_goggles\use_earplug.fsm";
- //[_unit, "ACE_GlassesLHD_glasses"] execFSM "x\ace\addons\sys_goggles\use_glasses.fsm";
- };
- ace_sys_tracking_markers_enabled = false;
- ace_sys_eject_fnc_weaponcheck = {};
- setViewDistance 1205; //save fpsZ!!!
- setTerrainGrid 25;
- 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 ["", "BLACK IN", 5];
- diag_log format ["Mission Initialisation Completed for: %1 at: %2", player, time];
- //player enablesimulation true;
- player addEventHandler ["Respawn",{
- _unit = _this select 0;
- //removeAllWeapons _unit;
- //removeAllItems _unit;
- //clearMagazineCargo (unitBackpack _unit);
- //[_unit, "ALL"] call ACE_fnc_RemoveGear;
- //{_unit addweapon _x} foreach startinggear;
- [_unit] execFSM "x\ace\addons\sys_goggles\use_earplug.fsm";
- //[_unit, "ACE_GlassesLHD_glasses"] execFSM "x\ace\addons\sys_goggles\use_glasses.fsm";
- }];
- [] spawn {
- sleep 20;
- //0=["<img size='5' color='#ffffff' image='pic\86th_flag.paa'/>",-1,0.3,4,6,0,720] spawn BIS_fnc_dynamicText;
- [str ("Pope Field"), str("North Carolina"), 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");
- };
Add Comment
Please, Sign In to add comment