mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-11 10:40:34 +00:00
CBike done
This commit is contained in:
parent
db9057f5a8
commit
5711159e68
8 changed files with 654 additions and 75 deletions
|
@ -387,7 +387,7 @@ CWeapon::Fire(CEntity *shooter, CVector *fireSource)
|
|||
}
|
||||
|
||||
bool
|
||||
CWeapon::FireFromCar(CVehicle *shooter, bool left)
|
||||
CWeapon::FireFromCar(CVehicle *shooter, bool left, bool right)
|
||||
{
|
||||
ASSERT(shooter!=nil);
|
||||
|
||||
|
@ -397,7 +397,7 @@ CWeapon::FireFromCar(CVehicle *shooter, bool left)
|
|||
if ( m_nAmmoInClip <= 0 )
|
||||
return false;
|
||||
|
||||
if ( FireInstantHitFromCar(shooter, left) )
|
||||
if ( FireInstantHitFromCar(shooter, left, right) )
|
||||
{
|
||||
DMAudio.PlayOneShot(shooter->m_audioEntityId, SOUND_WEAPON_SHOT_FIRED, 0.0f);
|
||||
|
||||
|
@ -2021,8 +2021,9 @@ CWeapon::FireM16_1stPerson(CEntity *shooter)
|
|||
}
|
||||
|
||||
bool
|
||||
CWeapon::FireInstantHitFromCar(CVehicle *shooter, bool left)
|
||||
CWeapon::FireInstantHitFromCar(CVehicle *shooter, bool left, bool right)
|
||||
{
|
||||
// TODO(MIAMI): bikes
|
||||
CWeaponInfo *info = GetInfo();
|
||||
|
||||
CVehicleModelInfo *modelInfo = shooter->GetModelInfo();
|
||||
|
|
|
@ -37,7 +37,7 @@ public:
|
|||
void Shutdown();
|
||||
|
||||
bool Fire (CEntity *shooter, CVector *fireSource);
|
||||
bool FireFromCar (CVehicle *shooter, bool left);
|
||||
bool FireFromCar (CVehicle *shooter, bool left, bool right);
|
||||
bool FireMelee (CEntity *shooter, CVector &fireSource);
|
||||
bool FireInstantHit(CEntity *shooter, CVector *fireSource);
|
||||
|
||||
|
@ -52,7 +52,7 @@ public:
|
|||
bool FireAreaEffect (CEntity *shooter, CVector *fireSource);
|
||||
bool FireSniper (CEntity *shooter);
|
||||
bool FireM16_1stPerson (CEntity *shooter);
|
||||
bool FireInstantHitFromCar(CVehicle *shooter, bool left);
|
||||
bool FireInstantHitFromCar(CVehicle *shooter, bool left, bool right);
|
||||
|
||||
static void DoDoomAiming (CEntity *shooter, CVector *source, CVector *target);
|
||||
static void DoTankDoomAiming (CEntity *shooter, CEntity *driver, CVector *source, CVector *target);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue