Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Merge pull request #266 from erorcun/erorcun
Peds & a few fixes
  • Loading branch information
erorcun committed Nov 5, 2019
2 parents 11d071a + d5619fb commit 996bc0293f9ae35f28dbf88b9fabdb33dda3d411
Showing with 387 additions and 28 deletions.
  1. +1 −0 src/core/re3.cpp
  2. +10 −3 src/math/Vector2D.h
  3. +364 −17 src/peds/Ped.cpp
  4. +9 −5 src/peds/Ped.h
  5. +3 −3 src/vehicles/Automobile.cpp
@@ -354,6 +354,7 @@ DebugMenuPopulate(void)
#ifndef MASTER
DebugMenuAddVarBool8("Debug", "Toggle unused fight feature", (int8*)&CPed::bUnusedFightThingOnPlayer, nil);
DebugMenuAddVarBool8("Debug", "Toggle banned particles", (int8*)&CParticle::bEnableBannedParticles, nil);
DebugMenuAddVarBool8("Debug", "Toggle popping heads on headshot", (int8*)&CPed::bPopHeadsOnHeadshot, nil);
#endif

DebugMenuAddCmd("Debug", "Start Credits", CCredits::Start);
@@ -49,9 +49,6 @@ class CVector2D
CVector2D operator+(const CVector2D &rhs) const {
return CVector2D(x+rhs.x, y+rhs.y);
}
CVector2D operator*(float t) const {
return CVector2D(x*t, y*t);
}
CVector2D operator/(float t) const {
return CVector2D(x/t, y/t);
}
@@ -91,3 +88,13 @@ NormalizeXY(float &x, float &y)
}else
x = 1.0f;
}

inline CVector2D operator*(const CVector2D &left, float right)
{
return CVector2D(left.x * right, left.y * right);
}

inline CVector2D operator*(float left, const CVector2D &right)
{
return CVector2D(left * right.x, left * right.y);
}

0 comments on commit 996bc02

Please sign in to comment.