mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-27 08:15:39 +00:00
final step
This commit is contained in:
parent
7a3e1ef19a
commit
ca1d899413
2 changed files with 12 additions and 20 deletions
|
@ -824,7 +824,7 @@ C3dMarkers::PlaceMarker(uint32 identifier, uint16 type, CVector &pos, float size
|
||||||
} else {
|
} else {
|
||||||
pMarker->m_fStdSize = size;
|
pMarker->m_fStdSize = size;
|
||||||
}
|
}
|
||||||
} else if (type == MARKERTYPE_CYLINDER) {
|
} else {
|
||||||
if (dist < size + 12.0f) {
|
if (dist < size + 12.0f) {
|
||||||
if (dist > size + 1.0f)
|
if (dist > size + 1.0f)
|
||||||
pMarker->m_Color.alpha = (1.0f - (size + 12.0f - dist) * 0.7f / 11.0f) * (float)a;
|
pMarker->m_Color.alpha = (1.0f - (size + 12.0f - dist) * 0.7f / 11.0f) * (float)a;
|
||||||
|
@ -837,15 +837,9 @@ C3dMarkers::PlaceMarker(uint32 identifier, uint16 type, CVector &pos, float size
|
||||||
float someSin = Sin(TWOPI * (float)((pMarker->m_nPulsePeriod - 1) & (CTimer::GetTimeInMilliseconds() - pMarker->m_nStartTime)) / (float)pMarker->m_nPulsePeriod);
|
float someSin = Sin(TWOPI * (float)((pMarker->m_nPulsePeriod - 1) & (CTimer::GetTimeInMilliseconds() - pMarker->m_nStartTime)) / (float)pMarker->m_nPulsePeriod);
|
||||||
pMarker->m_fSize = pMarker->m_fStdSize - pulseFraction * pMarker->m_fStdSize * someSin;
|
pMarker->m_fSize = pMarker->m_fStdSize - pulseFraction * pMarker->m_fStdSize * someSin;
|
||||||
|
|
||||||
if (type == MARKERTYPE_ARROW) {
|
if (type == MARKERTYPE_ARROW)
|
||||||
pos.z += 0.25f * pMarker->m_fStdSize * someSin;
|
pos.z += 0.25f * pMarker->m_fStdSize * someSin;
|
||||||
} else if (type == MARKERTYPE_0) {
|
if (pMarker->m_nRotateRate != 0) {
|
||||||
if (someSin > 0.0f)
|
|
||||||
pMarker->m_Color.alpha = (float)a * 0.7f * someSin + a;
|
|
||||||
else
|
|
||||||
pMarker->m_Color.alpha = (float)a * 0.4f * someSin + a;
|
|
||||||
}
|
|
||||||
if (pMarker->m_nRotateRate) {
|
|
||||||
RwV3d pos = pMarker->m_Matrix.m_matrix.pos;
|
RwV3d pos = pMarker->m_Matrix.m_matrix.pos;
|
||||||
pMarker->m_Matrix.RotateZ(DEGTORAD(pMarker->m_nRotateRate * CTimer::GetTimeStep()));
|
pMarker->m_Matrix.RotateZ(DEGTORAD(pMarker->m_nRotateRate * CTimer::GetTimeStep()));
|
||||||
pMarker->m_Matrix.GetPosition() = pos;
|
pMarker->m_Matrix.GetPosition() = pos;
|
||||||
|
@ -869,7 +863,7 @@ C3dMarkers::PlaceMarker(uint32 identifier, uint16 type, CVector &pos, float size
|
||||||
pMarker->DeleteMarkerObject();
|
pMarker->DeleteMarkerObject();
|
||||||
|
|
||||||
pMarker->AddMarker(identifier, type, size, r, g, b, a, pulsePeriod, pulseFraction, rotateRate);
|
pMarker->AddMarker(identifier, type, size, r, g, b, a, pulsePeriod, pulseFraction, rotateRate);
|
||||||
if (type == MARKERTYPE_CYLINDER || type == MARKERTYPE_0 || type == MARKERTYPE_2) {
|
if (type == MARKERTYPE_CYLINDER) {
|
||||||
if ((playerPos - pos).MagnitudeSqr() < sq(100.f) && CColStore::HasCollisionLoaded(CVector2D(pos))) {
|
if ((playerPos - pos).MagnitudeSqr() < sq(100.f) && CColStore::HasCollisionLoaded(CVector2D(pos))) {
|
||||||
float z = CWorld::FindGroundZFor3DCoord(pos.x, pos.y, pos.z + 1.0f, nil);
|
float z = CWorld::FindGroundZFor3DCoord(pos.x, pos.y, pos.z + 1.0f, nil);
|
||||||
if (z != 0.0f)
|
if (z != 0.0f)
|
||||||
|
@ -880,10 +874,6 @@ C3dMarkers::PlaceMarker(uint32 identifier, uint16 type, CVector &pos, float size
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pMarker->m_Matrix.SetTranslate(pos.x, pos.y, pos.z);
|
pMarker->m_Matrix.SetTranslate(pos.x, pos.y, pos.z);
|
||||||
if (type == MARKERTYPE_2) {
|
|
||||||
pMarker->m_Matrix.RotateX(PI);
|
|
||||||
pMarker->m_Matrix.GetPosition() = pos;
|
|
||||||
}
|
|
||||||
pMarker->m_Matrix.UpdateRW();
|
pMarker->m_Matrix.UpdateRW();
|
||||||
if (type == MARKERTYPE_ARROW) {
|
if (type == MARKERTYPE_ARROW) {
|
||||||
if (dist < 25.0f) {
|
if (dist < 25.0f) {
|
||||||
|
@ -894,7 +884,7 @@ C3dMarkers::PlaceMarker(uint32 identifier, uint16 type, CVector &pos, float size
|
||||||
} else {
|
} else {
|
||||||
pMarker->m_fStdSize = size;
|
pMarker->m_fStdSize = size;
|
||||||
}
|
}
|
||||||
} else if (type == MARKERTYPE_CYLINDER) {
|
} else {
|
||||||
if (dist < size + 12.0f) {
|
if (dist < size + 12.0f) {
|
||||||
if (dist > size + 1.0f)
|
if (dist > size + 1.0f)
|
||||||
pMarker->m_Color.alpha = (1.0f - (size + 12.0f - dist) * 0.7f / 11.0f) * (float)a;
|
pMarker->m_Color.alpha = (1.0f - (size + 12.0f - dist) * 0.7f / 11.0f) * (float)a;
|
||||||
|
|
|
@ -109,12 +109,13 @@ public:
|
||||||
void Render(); //done
|
void Render(); //done
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//done
|
||||||
class C3dMarkers
|
class C3dMarkers
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static void Init(); //done
|
static void Init(); //done
|
||||||
static void Shutdown(); //done
|
static void Shutdown(); //done
|
||||||
static C3dMarker *PlaceMarker(uint32 id, uint16 type, CVector &pos, float size, uint8 r, uint8 g, uint8 b, uint8 a, uint16 pulsePeriod, float pulseFraction, int16 rotateRate);
|
static C3dMarker *PlaceMarker(uint32 id, uint16 type, CVector &pos, float size, uint8 r, uint8 g, uint8 b, uint8 a, uint16 pulsePeriod, float pulseFraction, int16 rotateRate); //done
|
||||||
static void PlaceMarkerSet(uint32 id, uint16 type, CVector &pos, float size, uint8 r, uint8 g, uint8 b, uint8 a, uint16 pulsePeriod, float pulseFraction, int16 rotateRate); //done
|
static void PlaceMarkerSet(uint32 id, uint16 type, CVector &pos, float size, uint8 r, uint8 g, uint8 b, uint8 a, uint16 pulsePeriod, float pulseFraction, int16 rotateRate); //done
|
||||||
static void Render(); //done
|
static void Render(); //done
|
||||||
static void Update(); //done
|
static void Update(); //done
|
||||||
|
@ -172,7 +173,7 @@ public:
|
||||||
static void Init(void); //done
|
static void Init(void); //done
|
||||||
static void RegisterOne(CVector pos, CVector up, CVector side, CVector front,
|
static void RegisterOne(CVector pos, CVector up, CVector side, CVector front,
|
||||||
uint8 type, uint8 red = 0, uint8 green = 0, uint8 blue = 0); //done
|
uint8 type, uint8 red = 0, uint8 green = 0, uint8 blue = 0); //done
|
||||||
static void Render(void); //looks similad but needs recheck
|
static void Render(void); //looks similad but needs recheck !!!!!!!!!!!!!!!!!
|
||||||
static void RenderOutGeometryBuffer(void); //done
|
static void RenderOutGeometryBuffer(void); //done
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -235,11 +236,12 @@ public:
|
||||||
static void RegisterOne(CVector vecPos, const char *pText, uint8 bRed, uint8 bGreen, uint8 bBlue, float fSize, float fOpacity); //done
|
static void RegisterOne(CVector vecPos, const char *pText, uint8 bRed, uint8 bGreen, uint8 bBlue, float fSize, float fOpacity); //done
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//done
|
||||||
class CSpecialParticleStuff
|
class CSpecialParticleStuff
|
||||||
{
|
{
|
||||||
static uint32 BoatFromStart;
|
static uint32 BoatFromStart;
|
||||||
public:
|
public:
|
||||||
static void CreateFoamAroundObject(CMatrix*, float, float, float, int32);
|
static void CreateFoamAroundObject(CMatrix*, float, float, float, int32); //done, not used
|
||||||
static void StartBoatFoamAnimation();
|
static void StartBoatFoamAnimation(); //done, not used
|
||||||
static void UpdateBoatFoamAnimation(CMatrix*);
|
static void UpdateBoatFoamAnimation(CMatrix*); //done, not used
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue