diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-02-17 15:44:31 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-02-17 15:44:31 +0700 |
| commit | 2c44d2e60bb83d333b7d80c935f9578b4f11522a (patch) | |
| tree | c0ffa1fbdfbfd3eb095046b5c9da7e76eef80ce6 /src/GameTick.cpp | |
| parent | 18e53fb4b9d77a457c6a9aebc38c5dd0f1519689 (diff) | |
| download | blackshades-2c44d2e60bb83d333b7d80c935f9578b4f11522a.tar.gz | |
Make laser always and only availble in 3rd person
This breaks configuration backward compatibility.
Diffstat (limited to 'src/GameTick.cpp')
| -rw-r--r-- | src/GameTick.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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 |
