Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* =============================================
- client.sqf executes cilent side only or gtfo
- Author: richarddanh.com
- ================================================= */
- client_settings = {
- if (local player) then {
- player enableSimulation false; //Freeze player
- _future = time + 5;
- waitUntil {(time >= _future)};
- if !(player hasweapon "ace_safe") then {player addweapon "ace_safe";};
- waituntil {player hasweapon "ace_safe"};
- player selectweapon "ace_safe";
- player setVariable ["ace_sys_weaponselect_safety",[(primaryweapon player),true]];
- ace_sys_tracking_markers_enabled=false;
- setViewDistance 1609;
- setTerrainGrid 50;
- };
- };
- player call client_settings;
- client_execution = {
- if (isplayer player) then
- {
- waituntil {local player};
- onMapSingleClick {_shift};
- ace_sys_eject_fnc_weaponcheck = {};
- player setskill 0;
- player setVariable ["BIS_noCoreConversations", true]; //Disable AI Convos
- enableRadio false; //Disable radio communication
- {player disableAI _x} foreach ["MOVE","ANIM","TARGET","AUTOTARGET"];
- [] call (compile (preprocessFileLineNumbers ("\ca\Modules\MP\data\scripts\MPframework.sqf")));
- };
- };
- player call client_execution;
- //Loadouts
- removeAllWeapons player; //Remove Weapons
- removeAllItems player; //Remove all Items
- player addWeapon "ACE_Earplugs"; //Add Earplugs
- player addWeapon "ItemGPS"; //Add GPS
- player addWeapon "ItemWatch"; //Add Watch
- player addWeapon "ACRE_PRC343"; //Add 343
- player addWeapon "ACRE_PRC148"; //Add 148
- player addWeapon "ACE_Map_Tools"; //Map Tools
- player addWeapon "ACE_GlassesLHD_glasses"; //Glasses
- player addWeapon "ACE_GlassesGasMask_US"; //Mask
- player addWeapon "ACE_Map"; //Map
- player addWeapon "ItemCompass"; //Compass
- player addweapon "NVGoggles"; //Night Vision Goggles
- player addweapon "Binocular"; //Binocular
- clearMagazineCargo (unitBackpack player); //Clear stuff in backpack
- sleep 5; //Server Waits
- [player] execFSM "x\ace\addons\sys_goggles\use_earplug.fsm"; //Wears Earplug
- [player, "ACE_GlassesLHD_glasses"] execFSM "x\ace\addons\sys_goggles\use_glasses.fsm"; //Wear Glasses
- //Respawning
- //player addeventhandler ["respawn","this execVM 'client\loadout_default.sqf'"];
- if (!isServer && isNull player) then {
- waitUntil {!isNull player};
- waituntil {local player};
- player call client_settings;
- player call client_execution;
- player setpos (getmarkerpos "respawn_west");
- };
- sleep 1; //Custom Amount
- titleFadeOut 0.1;
- 2003 CutText ["Initialisation Completed", "BLACK IN", 5];
- diag_log format["Mission Initialisation Completed", time];
- player enablesimulation true; // Unfreeze PLayer
- sleep 5;
- [str ("Template"), str("Chernarus"), str(date select 1) + "." + str(date select 2) + "." + str(date select 0)] spawn BIS_fnc_infoText;
Advertisement
Add Comment
Please, Sign In to add comment