little cleanup
This commit is contained in:
parent
66d83c6470
commit
c661485ef7
@ -1,12 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include "common.h"
|
|
||||||
|
|
||||||
struct CBulletTrace
|
|
||||||
{
|
|
||||||
CVector m_vecInf;
|
|
||||||
CVector m_vecSup;
|
|
||||||
bool m_bInUse;
|
|
||||||
uint8 m_bFramesInUse;
|
|
||||||
uint8 m_bLifeTime;
|
|
||||||
};
|
|
@ -1,7 +0,0 @@
|
|||||||
#include "common.h"
|
|
||||||
#include "patcher.h"
|
|
||||||
#include "BulletTraces.h"
|
|
||||||
|
|
||||||
CBulletTrace (&CBulletTraces::aTraces)[16] = *(CBulletTrace(*)[16])*(uintptr*)0x72B1B8;
|
|
||||||
|
|
||||||
WRAPPER void CBulletTraces::Init(void) { EAXJMP(0x518DE0); }
|
|
@ -1,11 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include "BulletTrace.h"
|
|
||||||
|
|
||||||
class CBulletTraces
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
static CBulletTrace(&aTraces)[16];
|
|
||||||
|
|
||||||
static void Init(void);
|
|
||||||
};
|
|
@ -2,7 +2,7 @@
|
|||||||
#include "patcher.h"
|
#include "patcher.h"
|
||||||
#include "AnimBlendAssociation.h"
|
#include "AnimBlendAssociation.h"
|
||||||
#include "Boat.h"
|
#include "Boat.h"
|
||||||
#include "BulletTraces.h"
|
#include "SpecialFX.h"
|
||||||
#include "CarCtrl.h"
|
#include "CarCtrl.h"
|
||||||
#include "CivilianPed.h"
|
#include "CivilianPed.h"
|
||||||
#include "Clock.h"
|
#include "Clock.h"
|
||||||
@ -268,8 +268,8 @@ void CReplay::RecordThisFrame(void)
|
|||||||
tBulletTracePacket* bt = (tBulletTracePacket*)&Record.m_pBase[Record.m_nOffset];
|
tBulletTracePacket* bt = (tBulletTracePacket*)&Record.m_pBase[Record.m_nOffset];
|
||||||
bt->type = REPLAYPACKET_BULLET_TRACES;
|
bt->type = REPLAYPACKET_BULLET_TRACES;
|
||||||
bt->index = i;
|
bt->index = i;
|
||||||
bt->frames = CBulletTraces::aTraces[i].m_bFramesInUse;
|
bt->frames = CBulletTraces::aTraces[i].m_framesInUse;
|
||||||
bt->lifetime = CBulletTraces::aTraces[i].m_bLifeTime;
|
bt->lifetime = CBulletTraces::aTraces[i].m_lifeTime;
|
||||||
bt->inf = CBulletTraces::aTraces[i].m_vecInf;
|
bt->inf = CBulletTraces::aTraces[i].m_vecInf;
|
||||||
bt->sup = CBulletTraces::aTraces[i].m_vecSup;
|
bt->sup = CBulletTraces::aTraces[i].m_vecSup;
|
||||||
Record.m_nOffset += sizeof(*bt);
|
Record.m_nOffset += sizeof(*bt);
|
||||||
@ -857,8 +857,8 @@ bool CReplay::PlayBackThisFrameInterpolation(CAddressInReplayBuffer *buffer, flo
|
|||||||
{
|
{
|
||||||
tBulletTracePacket* pb = (tBulletTracePacket*)&ptr[offset];
|
tBulletTracePacket* pb = (tBulletTracePacket*)&ptr[offset];
|
||||||
CBulletTraces::aTraces[pb->index].m_bInUse = true;
|
CBulletTraces::aTraces[pb->index].m_bInUse = true;
|
||||||
CBulletTraces::aTraces[pb->index].m_bFramesInUse = pb->frames;
|
CBulletTraces::aTraces[pb->index].m_framesInUse = pb->frames;
|
||||||
CBulletTraces::aTraces[pb->index].m_bLifeTime = pb->lifetime;
|
CBulletTraces::aTraces[pb->index].m_lifeTime = pb->lifetime;
|
||||||
CBulletTraces::aTraces[pb->index].m_vecInf = pb->inf;
|
CBulletTraces::aTraces[pb->index].m_vecInf = pb->inf;
|
||||||
CBulletTraces::aTraces[pb->index].m_vecSup = pb->sup;
|
CBulletTraces::aTraces[pb->index].m_vecSup = pb->sup;
|
||||||
buffer->m_nOffset += sizeof(tBulletTracePacket);
|
buffer->m_nOffset += sizeof(tBulletTracePacket);
|
||||||
|
@ -5,3 +5,8 @@
|
|||||||
WRAPPER void CSpecialFX::Render(void) { EAXJMP(0x518DC0); }
|
WRAPPER void CSpecialFX::Render(void) { EAXJMP(0x518DC0); }
|
||||||
|
|
||||||
WRAPPER void CMotionBlurStreaks::RegisterStreak(int32 id, uint8 r, uint8 g, uint8 b, CVector p1, CVector p2) { EAXJMP(0x519460); }
|
WRAPPER void CMotionBlurStreaks::RegisterStreak(int32 id, uint8 r, uint8 g, uint8 b, CVector p1, CVector p2) { EAXJMP(0x519460); }
|
||||||
|
|
||||||
|
|
||||||
|
CBulletTrace (&CBulletTraces::aTraces)[16] = *(CBulletTrace(*)[16])*(uintptr*)0x72B1B8;
|
||||||
|
|
||||||
|
WRAPPER void CBulletTraces::Init(void) { EAXJMP(0x518DE0); }
|
||||||
|
@ -11,3 +11,20 @@ class CMotionBlurStreaks
|
|||||||
public:
|
public:
|
||||||
static void RegisterStreak(int32 id, uint8 r, uint8 g, uint8 b, CVector p1, CVector p2);
|
static void RegisterStreak(int32 id, uint8 r, uint8 g, uint8 b, CVector p1, CVector p2);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct CBulletTrace
|
||||||
|
{
|
||||||
|
CVector m_vecInf;
|
||||||
|
CVector m_vecSup;
|
||||||
|
bool m_bInUse;
|
||||||
|
uint8 m_framesInUse;
|
||||||
|
uint8 m_lifeTime;
|
||||||
|
};
|
||||||
|
|
||||||
|
class CBulletTraces
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
static CBulletTrace (&aTraces)[16];
|
||||||
|
|
||||||
|
static void Init(void);
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user