From 2c44d2e60bb83d333b7d80c935f9578b4f11522a Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Thu, 17 Feb 2022 15:44:31 +0700 Subject: Make laser always and only availble in 3rd person This breaks configuration backward compatibility. --- src/GameTick.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/GameTick.cpp') diff --git a/src/GameTick.cpp b/src/GameTick.cpp index f72a1c4..3c44bdb 100644 --- a/src/GameTick.cpp +++ b/src/GameTick.cpp @@ -780,10 +780,9 @@ void renderLaser(Game* game) break; case handgun1: case handgun2: - coeff = thirdperson ? 0.35f : 0.65f; aim = DoRotation(joints[righthand].position - - joints[head].position * coeff - - joints[neck].position * (1.0 - coeff), + - joints[head].position * 0.35f + - joints[neck].position * 0.65f, 0.0f, player.playerrotation - 0.9f, 0.0f); coeff = -0.15f; break; @@ -2174,7 +2173,7 @@ void Game::Tick() } } - if (lasersight && !zoom) + if (thirdperson && !zoom) renderLaser(this); //Snow -- cgit 1.4.1