Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Created by Wyatt 6/8/16 under Creative Commons Attribution-ShareAlike 3.0 United States
- // This code detects every keypress that happens ingame to allow for custom functions. Functions may be defined for execution near the bottom.
- if ((speed player > 8) && (vehicle player isEqualTo player) && (isTouchingGround player) && (getfatigue player < 0.80) && (player getvariable["ANIM_jump_ready",true])) then {
- player setvariable ["ANIM_jump_ready",false];
- [player,""] remoteexec ['switchMove'];
- _height = 5-((load player)*4.25);
- _speed = 0.5;
- player setVelocity [(velocity player select 0)+(sin direction player*_speed),(velocity player select 1)+(cos direction player*_speed),(velocity player select 2)+_height];
- [player,"AovrPercMrunSrasWrflDf"] remoteexec ['switchMove'];
- player setFatigue (getfatigue player + 0.2);
- waitUntil {!isTouchingGround player};
- sleep 0.1;
- player setvariable ["ANIM_jump_ready",true];
- };
- if !((isTouchingGround player) && (player getvariable["ANIM_jump_ready",true])) then {
- waitUntil {(animationState player isEqualTo "AovrPercMstpSrasWrflDf")};
- player switchMove "";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement