Advertisement
PiZZADOX

Sample clientinit.sqf

May 29th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. if (isplayer player) then {
  2. removeallweapons player;
  3. 2003 CutText ["Initialising, Please Wait...", "BLACK"];
  4. player enablesimulation false;
  5. player addEventHandler ["respawn", {
  6. onMapSingleClick {_shift};
  7. 0 fadeRadio 0;
  8. player setskill 0;
  9. player setVariable ["BIS_noCoreConversations", true];
  10. {player disableAI _x} foreach ["MOVE","ANIM","TARGET","AUTOTARGET"];
  11. enableEngineArtillery false;
  12. enableRadio false;
  13. }];
  14. onMapSingleClick {_shift};
  15. 0 fadeRadio 0;
  16. player setskill 0;
  17. player setVariable ["BIS_noCoreConversations", true];
  18. {player disableAI _x} foreach ["MOVE","ANIM","TARGET","AUTOTARGET"];
  19. enableEngineArtillery false;
  20. enableRadio false;
  21. };
  22.  
  23. //LOAD OTHER ONLY CLIENT THINGS HERE
  24.  
  25. if (isplayer player) then {
  26. titleFadeOut 0.1;
  27. 2003 CutText ["Initialisation Completed", "BLACK IN", 5];
  28. player enablesimulation true;
  29. leaFunction = compile preprocessFileLineNumbers "lea\loadout-init.sqf";
  30. call leaFunction;
  31. };
  32.  
  33. [] spawn {
  34. while {true} do {
  35. waituntil {!isNil "mcc_actionInedx"};
  36. [mcc_actionInedx] call CBA_fnc_removePlayerAction;
  37. };
  38. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement