2019-05-30 19:24:47 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-04-08 14:36:53 +00:00
|
|
|
enum { SKIDMARK_LENGTH = 16 };
|
|
|
|
|
2020-05-31 15:05:49 +00:00
|
|
|
enum eSkidmarkType
|
|
|
|
{
|
|
|
|
SKIDMARK_NORMAL,
|
|
|
|
SKIDMARK_MUDDY,
|
|
|
|
SKIDMARK_SANDY,
|
|
|
|
SKIDMARK_BLOODY
|
|
|
|
};
|
|
|
|
|
2020-04-08 14:35:23 +00:00
|
|
|
class CSkidmark
|
|
|
|
{
|
|
|
|
public:
|
2020-05-31 15:05:49 +00:00
|
|
|
CVector m_pos[SKIDMARK_LENGTH];
|
|
|
|
float m_sideX[SKIDMARK_LENGTH];
|
|
|
|
float m_sideY[SKIDMARK_LENGTH];
|
2020-04-08 14:35:23 +00:00
|
|
|
uintptr m_id;
|
2020-05-31 15:05:49 +00:00
|
|
|
uint32 m_lastUpdate;
|
2020-04-08 14:35:23 +00:00
|
|
|
uint32 m_fadeStart;
|
|
|
|
uint32 m_fadeEnd;
|
2020-05-31 15:05:49 +00:00
|
|
|
uint32 m_type;
|
|
|
|
int16 m_last;
|
|
|
|
uint8 m_state;
|
|
|
|
bool m_wasUpdated;
|
2020-04-08 14:35:23 +00:00
|
|
|
};
|
|
|
|
|
2019-05-30 19:24:47 +00:00
|
|
|
class CSkidmarks
|
|
|
|
{
|
2020-04-08 14:35:23 +00:00
|
|
|
static CSkidmark aSkidmarks[NUMSKIDMARKS];
|
2019-05-30 19:24:47 +00:00
|
|
|
public:
|
2020-04-08 14:35:23 +00:00
|
|
|
|
|
|
|
static void Init(void);
|
|
|
|
static void Shutdown(void);
|
2019-06-24 22:42:23 +00:00
|
|
|
static void Clear(void);
|
2019-10-18 22:23:40 +00:00
|
|
|
static void Update(void);
|
2019-05-30 19:24:47 +00:00
|
|
|
static void Render(void);
|
2020-05-31 15:05:49 +00:00
|
|
|
static void RegisterOne(uintptr id, const CVector &pos, float fwdX, float fwdY, eSkidmarkType type, bool *isBloody);
|
|
|
|
static void RegisterOne(uintptr id, const CVector &pos, float fwdX, float fwdY, bool *isMuddy, bool *isBloody);
|
2019-05-30 19:24:47 +00:00
|
|
|
};
|