mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-23 19:04:32 -05:00
Changed Player Stats and altered kick hit box
This commit is contained in:
@@ -87,7 +87,6 @@ public class PlayerMovement : NetworkBehaviour
|
||||
private Blink blink;
|
||||
|
||||
private GrapplingHook grapple;
|
||||
|
||||
|
||||
//Animation controller
|
||||
Animator animator;
|
||||
@@ -252,7 +251,7 @@ public class PlayerMovement : NetworkBehaviour
|
||||
//Apply Impact for when force needs to be applied without ragdolling
|
||||
public void AddImpact(Vector3 dir, float force)
|
||||
{
|
||||
//if (!IsLocalPlayer) { return; }
|
||||
if (!IsLocalPlayer) { return; }
|
||||
|
||||
//Normalize direction multiply by force and add it to the impact
|
||||
dir.Normalize();
|
||||
@@ -269,7 +268,7 @@ public class PlayerMovement : NetworkBehaviour
|
||||
if (Input.GetAxis("Jump") != 0 && !jumpHeld && curJumpNum < pStats.JumpNum && !isSliding)
|
||||
{
|
||||
if(wallRun.IsWallRunning()){
|
||||
AddImpact((wallRun.GetWallJumpDirection()), pStats.JumpPow * 10f);
|
||||
AddImpact((wallRun.GetWallJumpDirection()), pStats.JumpPow * 8f);
|
||||
g = pStats.JumpPow;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user