From 2149e0da4f91002095f34174baaf1c1118d99a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Thu, 17 Feb 2022 11:23:33 +0700 Subject: Fix shotgun laser aim --- src/GameTick.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/GameTick.cpp') diff --git a/src/GameTick.cpp b/src/GameTick.cpp index 28d3ef3..7ecab8e 100644 --- a/src/GameTick.cpp +++ b/src/GameTick.cpp @@ -755,17 +755,12 @@ void renderLaser(Game* game) auto& rotation = player.playerrotation; switch (player.whichgun) { case assaultrifle: + case shotgun: aim = DoRotation(joints[lefthand].position - joints[righthand].position, 0.0f, rotation - 2.5f, 0.0f); coeff = 0.15f; break; - case shotgun: - aim = DoRotation(joints[lefthand].position - - joints[righthand].position, - 0.0f, rotation + 4.0f, 0.0f); - coeff = 0.4f; - break; case handgun1: case handgun2: coeff = thirdperson ? 0.35f : 0.65f; -- cgit v1.2.3