kick no longer jitters

This commit is contained in:
Melbyj1125
2022-03-30 12:12:45 -05:00
parent 2980aa8858
commit 7408467597
5 changed files with 48 additions and 38 deletions

View File

@@ -51,7 +51,7 @@ public class dOffenseKickState : dOffenseBaseState
}
//jitter player upwards because of a weird issue with collider
oSM.moveController.Move(new Vector3(0,.002f,0));
//oSM.moveController.Move(new Vector3(0,.002f,0));
}
//kicking timer

View File

@@ -168,7 +168,7 @@ public class OffenseStateManager : NetworkBehaviour
foreach(GameObject character in playableCharacters){
if(character.transform.root.GetComponent<NetworkObject>() != null && character.transform.root.GetComponent<NetworkObject>().NetworkObjectId == netObjId){
//Apply kick to other player
Debug.Log("Kicking other user");
character.GetComponent<MoveStateManager>().GetHit(direction, 20);
return;