summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormajestic <majesticcoding@gmail.com>2020-06-11 09:59:23 +0200
committermajestic <majesticcoding@gmail.com>2020-06-11 09:59:23 +0200
commit94e3c3005448fef54b73e6eea3912532e2dfdd47 (patch)
tree53434e2dcc35117c43309338da324e52bd1af458
parentminigun rotation fix (diff)
downloadre3-94e3c3005448fef54b73e6eea3912532e2dfdd47.tar
re3-94e3c3005448fef54b73e6eea3912532e2dfdd47.tar.gz
re3-94e3c3005448fef54b73e6eea3912532e2dfdd47.tar.bz2
re3-94e3c3005448fef54b73e6eea3912532e2dfdd47.tar.lz
re3-94e3c3005448fef54b73e6eea3912532e2dfdd47.tar.xz
re3-94e3c3005448fef54b73e6eea3912532e2dfdd47.tar.zst
re3-94e3c3005448fef54b73e6eea3912532e2dfdd47.zip
-rw-r--r--src/peds/Ped.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 16029a4f..0395abff 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -13389,6 +13389,8 @@ CPed::PossiblyFindBetterPosToSeekCar(CVector *pos, CVehicle *veh)
return true;
}
+extern CVector vecTestTemp(-1.0f, -1.0f, -1.0f);
+
// --MIAMI: Done except comment
void
CPed::Render(void)
@@ -13423,7 +13425,10 @@ CPed::Render(void)
// TODO(Miami): What are those numbers?!
// localAdjMat.Rotate(flt_691FFC * flt_97F878, flt_691FF8 * flt_97F87C, flt_691FF4 * flt_97F880);
- localAdjMat.Rotate(0.078f, -0.519f, -0.0185f);
+ 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.GetPosition() += CVector(0.829f, -0.001f, 0.226f);
mgTopMat = mgTopMat * localAdjMat;
mgTopMat.UpdateRW();