aboutsummaryrefslogtreecommitdiff
path: root/src/GameTick.cpp
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-02-17 11:23:33 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-02-17 11:28:07 +0700
commit2149e0da4f91002095f34174baaf1c1118d99a52 (patch)
treeb0b2a09e9743557260b4531c4840f77cea3cc94c /src/GameTick.cpp
parent20aa002424b27724ffd149b74540b5bcc4cbc655 (diff)
downloadblackshades-2149e0da4f91002095f34174baaf1c1118d99a52.tar.gz
Fix shotgun laser aim2.4.8
Diffstat (limited to 'src/GameTick.cpp')
-rw-r--r--src/GameTick.cpp7
1 files changed, 1 insertions, 6 deletions
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;