mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-26 19:14:15 +01:00
fix
This commit is contained in:
parent
f7f4e44c34
commit
1d8484ed7d
@ -70,6 +70,7 @@ bool CBulletInfo::AddBullet(CEntity* pSource, eWeaponType type, CVector vecPosit
|
|||||||
gaBulletInfo[i].m_vecSpeed = vecSpeed;
|
gaBulletInfo[i].m_vecSpeed = vecSpeed;
|
||||||
gaBulletInfo[i].m_fTimer = CTimer::GetTimeInMilliseconds() + BULLET_LIFETIME;
|
gaBulletInfo[i].m_fTimer = CTimer::GetTimeInMilliseconds() + BULLET_LIFETIME;
|
||||||
gaBulletInfo[i].m_bInUse = true;
|
gaBulletInfo[i].m_bInUse = true;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CBulletInfo::Update(void)
|
void CBulletInfo::Update(void)
|
||||||
@ -138,7 +139,7 @@ void CBulletInfo::Update(void)
|
|||||||
else if (pHitEntity->IsVehicle()) {
|
else if (pHitEntity->IsVehicle()) {
|
||||||
CVehicle* pVehicle = (CVehicle*)pHitEntity;
|
CVehicle* pVehicle = (CVehicle*)pHitEntity;
|
||||||
pVehicle->InflictDamage(pBullet->m_pSource, pBullet->m_eWeaponType, pBullet->m_nDamage);
|
pVehicle->InflictDamage(pBullet->m_pSource, pBullet->m_eWeaponType, pBullet->m_nDamage);
|
||||||
if (pBullet->m_eWeaponType == WEAPONTYPE_FLAMETHROWER) // how?
|
if (pBullet->m_eWeaponType == WEAPONTYPE_FLAMETHROWER) // huh?
|
||||||
gFireManager.StartFire(pVehicle, pBullet->m_pSource, 0.8f, true);
|
gFireManager.StartFire(pVehicle, pBullet->m_pSource, 0.8f, true);
|
||||||
else {
|
else {
|
||||||
for (int j = 0; j < NUM_VEHICLE_SPARKS; j++)
|
for (int j = 0; j < NUM_VEHICLE_SPARKS; j++)
|
||||||
@ -266,3 +267,10 @@ bool CBulletInfo::TestForSniperBullet(float x1, float x2, float y1, float y2, fl
|
|||||||
return minP <= maxP;
|
return minP <= maxP;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STARTPATCHES
|
||||||
|
InjectHook(0x558220, &CBulletInfo::Initialise, PATCH_JUMP);
|
||||||
|
InjectHook(0x558450, &CBulletInfo::Shutdown, PATCH_JUMP);
|
||||||
|
InjectHook(0x558470, &CBulletInfo::AddBullet, PATCH_JUMP);
|
||||||
|
InjectHook(0x558550, &CBulletInfo::Update, PATCH_JUMP);
|
||||||
|
ENDPATCHES
|
Loading…
Reference in New Issue
Block a user