Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DCON_fnc_Jump = {
- if ((vehicle player == player) && (isTouchingGround player) && (player getvariable["DCON_Jump_Ready",true])) then {
- player setvariable ["DCON_Jump_Ready",false];
- [player,""] remoteexec ['switchMove'];
- _height = 2.5;
- _speed = 1;
- 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'];
- waitUntil {!isTouchingGround player};
- sleep 0.2;
- player setvariable ["DCON_Jump_Ready",true];
- };
- if !((isTouchingGround player) && (player getvariable["DCON_Jump_Ready",true])) then {
- waitUntil {(animationState player == "AovrPercMstpSrasWrflDf")};
- player switchMove "";
- };
- };
- waituntil {!isnull (finddisplay 46)};
- (findDisplay 46) displayRemoveEventHandler ["KeyDown",DCON_Jump_Event];
- DCON_Jump_Event = (findDisplay 46) displayAddEventHandler ["KeyDown",{
- if(_this select 1 == 47) then {
- [] spawn DCON_fnc_Jump;
- };
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement