mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-23 02:44:36 -05:00
fixed bumper and boulder
fixed wallrun on regular player prefab
This commit is contained in:
@@ -503,6 +503,7 @@ public class PlayerMovement : NetworkBehaviour
|
||||
|
||||
//Ragdoll Functions
|
||||
public void GetHit(Vector3 dir, float force){
|
||||
if (!IsLocalPlayer) { return; }
|
||||
if(firstHit == false){
|
||||
EnableRagdoll();
|
||||
dir.Normalize();
|
||||
|
||||
@@ -5,7 +5,7 @@ using UnityEngine.Assertions;
|
||||
|
||||
public class PlayerStats : MonoBehaviour
|
||||
{
|
||||
//Maximum possible player speed
|
||||
//Soft cap max speed a player can achieve they can achieve this speed by running
|
||||
[SerializeField] private float maxVel = 30.0f;
|
||||
public float MaxVel{
|
||||
get{ return maxVel; }
|
||||
@@ -26,6 +26,13 @@ public class PlayerStats : MonoBehaviour
|
||||
set{ curVel = value; }
|
||||
}
|
||||
|
||||
//The absolute max speed a player can achieve through boosts or momentum increases will disipate down to soft cap
|
||||
[SerializeField] private float hardCapMaxVel;
|
||||
public float HardCapMaxVel{
|
||||
get{ return hardCapMaxVel; }
|
||||
set{ hardCapMaxVel = value; }
|
||||
}
|
||||
|
||||
//Player Acceleration
|
||||
[SerializeField] private float acc = 0.1f;
|
||||
public float Acc{
|
||||
|
||||
Reference in New Issue
Block a user