mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-21 18:04:27 -05:00
Merge branch 'sprintActual2Melby'
This commit is contained in:
@@ -172,7 +172,7 @@ public class dGrapplingHook : NetworkBehaviour
|
||||
|
||||
//WILL NEED ADJUSTMENT OR REMOVAL IN THE FUTURE
|
||||
//ungrapple on jump
|
||||
if(playerMovement.GetJumpPressed() && !playerMovement.isGrounded && isGrappled){
|
||||
if(playerMovement.jumpHeld && !playerMovement.isGrounded && isGrappled){
|
||||
release = true;
|
||||
isGrappled = false;
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ public class dKickController : NetworkBehaviour
|
||||
isKicking = true;
|
||||
isDiveKicking = true;
|
||||
leg.SetActive(true);
|
||||
legRotation = -90;
|
||||
}
|
||||
//otherwise do ground kick for .3 seconds
|
||||
else if ((Input.GetKeyDown(KeyCode.F) || Input.GetAxis("Kick") != 0) && isKicking == false && pMove.isSliding==false){
|
||||
@@ -70,7 +71,6 @@ public class dKickController : NetworkBehaviour
|
||||
isKicking = false;
|
||||
legRotation = 0;
|
||||
leg.transform.eulerAngles = new Vector3(legRotation, leg.transform.eulerAngles.y, leg.transform.eulerAngles.z);
|
||||
legHitbox.GetComponent<Collider>().isTrigger = false;
|
||||
leg.SetActive(false);
|
||||
|
||||
}
|
||||
|
||||
@@ -45,14 +45,12 @@ public class dWallRun : NetworkBehaviour
|
||||
return !isPlayergrounded() && verticalAxis > 0 && VerticalCheck();
|
||||
}
|
||||
|
||||
bool VerticalCheck()
|
||||
{
|
||||
bool VerticalCheck(){
|
||||
return !Physics.Raycast(transform.position, Vector3.down, minimumHeight);
|
||||
}
|
||||
|
||||
|
||||
void Start()
|
||||
{
|
||||
void Start(){
|
||||
playerMovementController = GetComponent<dPlayerMovement>();
|
||||
|
||||
directions = new Vector3[]{
|
||||
@@ -65,15 +63,14 @@ public class dWallRun : NetworkBehaviour
|
||||
}
|
||||
|
||||
|
||||
public void WallRunRoutine()
|
||||
{
|
||||
public void WallRunRoutine(){
|
||||
//if (!IsLocalPlayer) { return; }
|
||||
|
||||
isWallRunning = false;
|
||||
|
||||
hits = new RaycastHit[directions.Length];
|
||||
|
||||
if(playerMovementController.GetJumpPressed())
|
||||
if(playerMovementController.jumpHeld)
|
||||
{
|
||||
jumping = true;
|
||||
}
|
||||
@@ -173,7 +170,7 @@ public class dWallRun : NetworkBehaviour
|
||||
moveToSet.y = 0;
|
||||
//
|
||||
|
||||
playerMovementController.SetPlayerVelocity(moveToSet);
|
||||
playerMovementController.vel = moveToSet;
|
||||
if(!isWallRunning){
|
||||
firstAttach = true;
|
||||
isWallRunning = true;
|
||||
|
||||
Reference in New Issue
Block a user