2019-05-30 21:24:47 +02:00
|
|
|
#pragma once
|
|
|
|
|
2020-04-08 16:36:53 +02:00
|
|
|
enum { SKIDMARK_LENGTH = 16 };
|
|
|
|
|
2020-04-08 16:35:23 +02:00
|
|
|
class CSkidmark
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
uint8 m_state;
|
|
|
|
bool m_wasUpdated;
|
|
|
|
bool m_isBloody;
|
|
|
|
bool m_isMuddy;
|
|
|
|
uintptr m_id;
|
|
|
|
int16 m_last;
|
2020-05-31 17:45:26 +02:00
|
|
|
uint32 m_lastUpdate;
|
2020-04-08 16:35:23 +02:00
|
|
|
uint32 m_fadeStart;
|
|
|
|
uint32 m_fadeEnd;
|
2020-04-08 16:36:53 +02:00
|
|
|
CVector m_pos[SKIDMARK_LENGTH];
|
|
|
|
CVector m_side[SKIDMARK_LENGTH];
|
2020-04-08 16:35:23 +02:00
|
|
|
};
|
|
|
|
|
2019-05-30 21:24:47 +02:00
|
|
|
class CSkidmarks
|
|
|
|
{
|
2020-04-08 16:35:23 +02:00
|
|
|
static CSkidmark aSkidmarks[NUMSKIDMARKS];
|
2019-05-30 21:24:47 +02:00
|
|
|
public:
|
2020-04-08 16:35:23 +02:00
|
|
|
|
|
|
|
static void Init(void);
|
|
|
|
static void Shutdown(void);
|
2019-06-25 00:42:23 +02:00
|
|
|
static void Clear(void);
|
2019-10-19 00:23:40 +02:00
|
|
|
static void Update(void);
|
2019-05-30 21:24:47 +02:00
|
|
|
static void Render(void);
|
2020-04-08 16:35:23 +02:00
|
|
|
static void RegisterOne(uintptr id, CVector pos, float fwdX, float fwdY, bool *isMuddy, bool *isBloody);
|
2019-05-30 21:24:47 +02:00
|
|
|
};
|