mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-29 20:52:10 +01:00
Weapon Switching/Pickup/Throwing
+ weapon switching works + weapon pickup works + weapon throwing works ntba weapon in correct position ntba weapon switch/pickup/throw animation
This commit is contained in:
@@ -110,12 +110,12 @@ public class ProcedualAnimationController : NetworkBehaviour
|
||||
{
|
||||
if (isLocalPlayer)
|
||||
{
|
||||
//Play the animation
|
||||
gunAnimator.Play("Shoot");
|
||||
//Add force for the recoil
|
||||
//currentCameraRecoilX -= weightedPerlinNoise(cameraRecoilX, 1f, Time.time, 1);
|
||||
//playerMouseLook = Mathf.SmoothDamp(playerMouseLook.fullPitch, playerMouseLook.fullPitch - weightedPerlinNoise(cameraRecoilX, 1f, Time.time, 1),ref f,0.01f);
|
||||
CmdRecoil();
|
||||
//Play the animation
|
||||
gunAnimator.Play("Shoot");
|
||||
//Add force for the recoil
|
||||
//currentCameraRecoilX -= weightedPerlinNoise(cameraRecoilX, 1f, Time.time, 1);
|
||||
//playerMouseLook = Mathf.SmoothDamp(playerMouseLook.fullPitch, playerMouseLook.fullPitch - weightedPerlinNoise(cameraRecoilX, 1f, Time.time, 1),ref f,0.01f);
|
||||
CmdRecoil();
|
||||
}
|
||||
}
|
||||
[Command]
|
||||
|
||||
Reference in New Issue
Block a user