grapple still has issues

This commit is contained in:
Melbyj1125
2021-12-10 18:05:54 -06:00
parent 45ce1576b5
commit 4c8cbcf82e
5 changed files with 42 additions and 83 deletions

View File

@@ -390,9 +390,9 @@ public class PlayerMovement : NetworkBehaviour
private void UpdateGravity(){
//Gliding
if(pStats.HasGlider && g < 0 && jumpHeld){
if(pStats.HasGlider && g < 0 && Input.GetButton("Jump")){
//Gravity with glider
GravityCalculation(10);
GravityCalculation(6);
//Set temp values to put traction back to normal
if(tempSet == false){
@@ -444,7 +444,7 @@ public class PlayerMovement : NetworkBehaviour
}
//apply gravity if not grounded and coyote timer is less than 0
if(isGrounded == false && curCoyJumpTimer <= 0){
if((isGrounded == false && curCoyJumpTimer <= 0)){
g -= grav * Time.deltaTime;
}