Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. //Created by Wyatt 6/8/16 under Creative Commons Attribution-ShareAlike 3.0 United States
  2. // This code detects every keypress that happens ingame to allow for custom functions. Functions may be defined for execution near the bottom.
  3.  
  4. if ((speed player > 8) && (vehicle player isEqualTo player) && (isTouchingGround player) && (getfatigue player < 0.80) && (player getvariable["ANIM_jump_ready",true])) then {
  5. player setvariable ["ANIM_jump_ready",false];
  6. [player,""] remoteexec ['switchMove'];
  7.  
  8. _height = 5-((load player)*4.25);
  9. _speed = 0.5;
  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. player setFatigue (getfatigue player + 0.2);
  14.  
  15. waitUntil {!isTouchingGround player};
  16. sleep 0.1;
  17.  
  18. player setvariable ["ANIM_jump_ready",true];
  19. };
  20.  
  21. if !((isTouchingGround player) && (player getvariable["ANIM_jump_ready",true])) then {
  22. waitUntil {(animationState player isEqualTo "AovrPercMstpSrasWrflDf")};
  23. player switchMove "";
  24. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement