Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. DCON_fnc_Jump = {
  2. if ((vehicle player == player) && (isTouchingGround player) && (player getvariable["DCON_Jump_Ready",true])) then {
  3.  
  4. player setvariable ["DCON_Jump_Ready",false];
  5. [player,""] remoteexec ['switchMove'];
  6.  
  7. _height = 2.5;
  8. _speed = 1;
  9.  
  10. player setVelocity [(velocity player select 0)+(sin direction player*_speed),(velocity player select 1)+(cos direction player*_speed),(velocity player select 2)+_height];
  11.  
  12. [player,"AovrPercMrunSrasWrflDf"] remoteexec ['switchMove'];
  13.  
  14. waitUntil {!isTouchingGround player};
  15. sleep 0.2;
  16.  
  17. player setvariable ["DCON_Jump_Ready",true];
  18. };
  19.  
  20. if !((isTouchingGround player) && (player getvariable["DCON_Jump_Ready",true])) then {
  21. waitUntil {(animationState player == "AovrPercMstpSrasWrflDf")};
  22. player switchMove "";
  23. };
  24. };
  25.  
  26. waituntil {!isnull (finddisplay 46)};
  27.  
  28. (findDisplay 46) displayRemoveEventHandler ["KeyDown",DCON_Jump_Event];
  29. DCON_Jump_Event = (findDisplay 46) displayAddEventHandler ["KeyDown",{
  30. if(_this select 1 == 47) then {
  31. [] spawn DCON_fnc_Jump;
  32. };
  33. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement