mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-14 04:24:08 +00:00
Weapon flags changed from bit fields to bit mask (R* vision)
This commit is contained in:
parent
688e277e89
commit
c9c447e7a9
8 changed files with 116 additions and 133 deletions
|
@ -78,7 +78,7 @@ CShotInfo::AddShot(CEntity *sourceEntity, eWeaponType weapon, CVector startPos,
|
|||
gaShotInfo[slot].m_areaAffected.z += CShotInfo::ms_afRandTable[CGeneral::GetRandomNumber() % ARRAY_SIZE(ms_afRandTable)];
|
||||
}
|
||||
gaShotInfo[slot].m_areaAffected.Normalise();
|
||||
if (weaponInfo->m_bRandSpeed)
|
||||
if (weaponInfo->IsFlagSet(WEAPONFLAG_RAND_SPEED))
|
||||
gaShotInfo[slot].m_areaAffected *= CShotInfo::ms_afRandTable[CGeneral::GetRandomNumber() % ARRAY_SIZE(ms_afRandTable)] + weaponInfo->m_fSpeed;
|
||||
else
|
||||
gaShotInfo[slot].m_areaAffected *= weaponInfo->m_fSpeed;
|
||||
|
@ -119,10 +119,10 @@ CShotInfo::Update()
|
|||
shot.m_inUse = false;
|
||||
}
|
||||
|
||||
if (weaponInfo->m_bSlowsDown)
|
||||
if (weaponInfo->IsFlagSet(WEAPONFLAG_SLOWS_DOWN))
|
||||
shot.m_areaAffected *= pow(0.96, CTimer::GetTimeStep()); // FRAMERATE
|
||||
|
||||
if (weaponInfo->m_bExpands)
|
||||
if (weaponInfo->IsFlagSet(WEAPONFLAG_EXPANDS))
|
||||
shot.m_radius += 0.075f * CTimer::GetTimeStep();
|
||||
|
||||
shot.m_startPos += CTimer::GetTimeStep() * shot.m_areaAffected;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue