summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authormajestic <majesticcoding@gmail.com>2020-06-11 10:36:45 +0200
committermajestic <majesticcoding@gmail.com>2020-06-11 10:36:45 +0200
commit2cc8ecbb90b044fc10829d14dc7e21d46af826e1 (patch)
tree2c384028eee984c3389ae3f87f5b33f07c2d207a /src/peds/Ped.cpp
parentoriginal multiplying rotational cords for minigun (diff)
downloadre3-2cc8ecbb90b044fc10829d14dc7e21d46af826e1.tar
re3-2cc8ecbb90b044fc10829d14dc7e21d46af826e1.tar.gz
re3-2cc8ecbb90b044fc10829d14dc7e21d46af826e1.tar.bz2
re3-2cc8ecbb90b044fc10829d14dc7e21d46af826e1.tar.lz
re3-2cc8ecbb90b044fc10829d14dc7e21d46af826e1.tar.xz
re3-2cc8ecbb90b044fc10829d14dc7e21d46af826e1.tar.zst
re3-2cc8ecbb90b044fc10829d14dc7e21d46af826e1.zip
Diffstat (limited to '')
-rw-r--r--src/peds/Ped.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 0395abff..785050c9 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -13422,13 +13422,7 @@ CPed::Render(void)
CMatrix mgTopMat, localAdjMat;
mgTopMat.Attach(RwFrameGetMatrix(frame));
localAdjMat.SetRotateX(player->m_fGunSpinAngle);
-
- // TODO(Miami): What are those numbers?!
- // localAdjMat.Rotate(flt_691FFC * flt_97F878, flt_691FF8 * flt_97F87C, flt_691FF4 * flt_97F880);
- float rotX = DEGTORAD(-4.469f)* vecTestTemp.x;
- float rotY = DEGTORAD(27.736f) * vecTestTemp.y;
- float rotZ = DEGTORAD(1.064f) * vecTestTemp.z;
- localAdjMat.Rotate(rotX, rotY, rotZ);
+ localAdjMat.Rotate(DEGTORAD(-4.477f)* vecTestTemp.x, DEGTORAD(29.731f) * vecTestTemp.y, DEGTORAD(1.064f) * vecTestTemp.z);
localAdjMat.GetPosition() += CVector(0.829f, -0.001f, 0.226f);
mgTopMat = mgTopMat * localAdjMat;
mgTopMat.UpdateRW();