summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-08-27 20:27:28 +0300
committerFire-Head <Fire-Head@users.noreply.github.com>2020-08-27 20:27:28 +0300
commit210c7b8785779a621f608540571513efcca1021a (patch)
treef8da58a1324795e7ca027580ea65430721ffda87
parenta38702a7d233fbadb4dfbbf250e7e5653dad3eed (diff)
bike shooting fix + trace temp fix
-rw-r--r--src/render/SpecialFX.h5
-rw-r--r--src/weapons/Weapon.cpp2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/render/SpecialFX.h b/src/render/SpecialFX.h
index 3255c9c1..55ad6cb9 100644
--- a/src/render/SpecialFX.h
+++ b/src/render/SpecialFX.h
@@ -60,7 +60,10 @@ public:
//TODO(MIAMI)
static void AddTrace(CVector *, CVector *, float, unsigned int, unsigned char) {}
- static void AddTrace(CVector *, CVector *, int32 weapontype, class CEntity *shooter) {}
+ static void AddTrace(CVector *a, CVector *b, int32 weapontype, class CEntity *shooter)
+ {
+ AddTrace(a, b); //TODO: temp
+ }
};
enum
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp
index a3918a61..d5705ace 100644
--- a/src/weapons/Weapon.cpp
+++ b/src/weapons/Weapon.cpp
@@ -2412,7 +2412,7 @@ CWeapon::FireInstantHitFromCar(CVehicle *shooter, bool left, bool right)
else if ( right )
target = source + info->m_fRange * shooter->GetRight();
else
- target = source + info->m_fRange * shooter->GetRight();
+ target = source + info->m_fRange * shooter->GetForward();
}
else if ( left )