mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-16 02:30:32 +00:00
PlayerInfo functions reordered into original order, FindPlayer... functions moved to PlayerInfo, improved CVector <-> RwV3d conversion, small fixes
This commit is contained in:
parent
2903ebe296
commit
cfda5eb148
30 changed files with 449 additions and 482 deletions
|
@ -1597,7 +1597,7 @@ CBike::PreRender(void)
|
|||
CVector forkAxis(0.0f, Sin(DEGTORAD(mi->m_bikeSteerAngle)), -Cos(DEGTORAD(mi->m_bikeSteerAngle)));
|
||||
forkAxis.Normalise(); // as if that's not already the case
|
||||
CQuaternion quat;
|
||||
quat.Set((RwV3d*)&forkAxis, -m_fWheelAngle);
|
||||
quat.Set(&forkAxis, -m_fWheelAngle);
|
||||
quat.Get(rot.m_attachment);
|
||||
rot.Update();
|
||||
|
||||
|
|
|
@ -443,7 +443,7 @@ CBoat::ProcessControl(void)
|
|||
CVector wakePos = GetPosition() + sternPos;
|
||||
// no actual particles for player...
|
||||
}else if(IsVisible() && ((CTimer::GetFrameCounter() + m_randomSeed) & 1) &&
|
||||
CVisibilityPlugins::GetDistanceSquaredFromCamera((RwV3d*)&propellerWorld) < SQR(70.0f * TheCamera.GenerationDistMultiplier)){
|
||||
CVisibilityPlugins::GetDistanceSquaredFromCamera(&propellerWorld) < SQR(70.0f * TheCamera.GenerationDistMultiplier)){
|
||||
jetDir.z = 0.015f;
|
||||
jetDir.x *= 3.5f;
|
||||
jetDir.y *= 3.5f;
|
||||
|
@ -613,7 +613,7 @@ CBoat::ProcessControl(void)
|
|||
splashDir.z += 0.0003f*m_nDeltaVolumeUnderWater;
|
||||
CWaterLevel::GetWaterLevel(splashPos, &waterLevel, true);
|
||||
if(splashPos.z-waterLevel < 3.0f &&
|
||||
CVisibilityPlugins::GetDistanceSquaredFromCamera((RwV3d*)&splashPos) < SQR(70.0f * TheCamera.GenerationDistMultiplier)){
|
||||
CVisibilityPlugins::GetDistanceSquaredFromCamera(&splashPos) < SQR(70.0f * TheCamera.GenerationDistMultiplier)){
|
||||
splashPos.z = waterLevel + 0.1f;
|
||||
CParticle::AddParticle(PARTICLE_CAR_SPLASH, splashPos, 0.75f*splashDir, nil, splashSize+0.1f, splashColor,
|
||||
CGeneral::GetRandomNumberInRange(0.0f, 10.0f), CGeneral::GetRandomNumberInRange(0.0f, 90.0f),
|
||||
|
@ -670,7 +670,7 @@ CBoat::ProcessControl(void)
|
|||
splashDir.z += 0.0003f*m_nDeltaVolumeUnderWater;
|
||||
CWaterLevel::GetWaterLevel(splashPos, &waterLevel, true);
|
||||
if(splashPos.z-waterLevel < 3.0f &&
|
||||
CVisibilityPlugins::GetDistanceSquaredFromCamera((RwV3d*)&splashPos) < SQR(70.0f * TheCamera.GenerationDistMultiplier)){
|
||||
CVisibilityPlugins::GetDistanceSquaredFromCamera(&splashPos) < SQR(70.0f * TheCamera.GenerationDistMultiplier)){
|
||||
splashPos.z = waterLevel + 0.1f;
|
||||
CParticle::AddParticle(PARTICLE_CAR_SPLASH, splashPos, 0.75f*splashDir, nil, splashSize+0.1f, splashColor,
|
||||
CGeneral::GetRandomNumberInRange(0.0f, 10.0f), CGeneral::GetRandomNumberInRange(0.0f, 90.0f),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue