Advertisement
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","ACE_Map","ItemCompass","NVGoggles","Binocular"]
- 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;
- {_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 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 ["Somewhere in the UN Base", "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 5;
- [str ("Finale"), str("UN Base Chernarus"), str(date select 1) + "." + str(date select 2) + "." + str(date select 0)] spawn BIS_fnc_infoText;
- };
- };
- };
- player call client_execution;
- ai_movement = {
- boxer switchMove "";
- boxer switchMove "AmovPercMstpSnonWnonDnon_idle68boxing";
- workout1 switchMove "AmovPercMstpSnonWnonDnon_idle69drepy";
- workout2 switchMove "AmovPercMstpSnonWnonDnon_idle69drepy";
- workout3 switchMove "AmovPercMstpSnonWnonDnon_idle69drepy";
- workout4 switchMove "AmovPercMstpSnonWnonDnon_idle69drepy";
- workout5 switchMove "AmovPercMstpSnonWnonDnon_idle69drepy";
- workout6 switchMove "AmovPercMstpSnonWnonDnon_idle69drepy";
- workout7 switchMove "AmovPercMstpSnonWnonDnon_idle69drepy";
- workout8 switchMove "AmovPercMstpSnonWnonDnon_idle69drepy";
- workout9 switchMove "AmovPercMstpSnonWnonDnon_idle56kliky";
- workout10 switchMove "AmovPercMstpSnonWnonDnon_idle72lehSedy";
- soldier16 playmove "amovpsitmstpsraswrfldnon_smoking";
- soldier17 playmove "amovpsitmstpsraswrfldnon_smoking";
- man321_1_1 playMove "ActsPercMstpSnonWnonDnon_talking02";
- man321_1_1 disableAI "ANIM";
- man322_1_1 playMove "ActsPercMstpSnonWnonDnon_talking01";
- man322_1_1 disableAI "ANIM";
- man321_1 playMove "ActsPercMstpSnonWnonDnon_talking02";
- man321_1 disableAI "ANIM";
- man322_1 playMove "ActsPercMstpSnonWnonDnon_talking01";
- man322_1 disableAI "ANIM";
- };
- player call ai_movement;
- if (!isServer && isNull player) then {
- waitUntil {!isNull player};
- waituntil {local player};
- player call client_execution;
- player call ai_movement;
- player setpos (getmarkerpos "respawn_west");
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement