mirror of
https://github.com/halpz/re3.git
synced 2024-12-28 18:35:29 +00:00
bike shooting fix + trace temp fix
This commit is contained in:
parent
a38702a7d2
commit
210c7b8785
|
@ -60,7 +60,10 @@ public:
|
||||||
|
|
||||||
//TODO(MIAMI)
|
//TODO(MIAMI)
|
||||||
static void AddTrace(CVector *, CVector *, float, unsigned int, unsigned char) {}
|
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
|
enum
|
||||||
|
|
|
@ -2412,7 +2412,7 @@ CWeapon::FireInstantHitFromCar(CVehicle *shooter, bool left, bool right)
|
||||||
else if ( right )
|
else if ( right )
|
||||||
target = source + info->m_fRange * shooter->GetRight();
|
target = source + info->m_fRange * shooter->GetRight();
|
||||||
else
|
else
|
||||||
target = source + info->m_fRange * shooter->GetRight();
|
target = source + info->m_fRange * shooter->GetForward();
|
||||||
|
|
||||||
}
|
}
|
||||||
else if ( left )
|
else if ( left )
|
||||||
|
|
Loading…
Reference in a new issue