diff options
author | aap <aap@papnet.eu> | 2019-06-30 22:55:48 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-30 22:55:48 +0200 |
commit | c661485ef74cb7dacca119c794b7b3a831549d15 (patch) | |
tree | d78bed07f2dabfef7a1185a8705d563e623ad6f8 /src/render | |
parent | Merge pull request #80 from ShFil119/special (diff) | |
download | re3-c661485ef74cb7dacca119c794b7b3a831549d15.tar re3-c661485ef74cb7dacca119c794b7b3a831549d15.tar.gz re3-c661485ef74cb7dacca119c794b7b3a831549d15.tar.bz2 re3-c661485ef74cb7dacca119c794b7b3a831549d15.tar.lz re3-c661485ef74cb7dacca119c794b7b3a831549d15.tar.xz re3-c661485ef74cb7dacca119c794b7b3a831549d15.tar.zst re3-c661485ef74cb7dacca119c794b7b3a831549d15.zip |
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/SpecialFX.cpp | 5 | ||||
-rw-r--r-- | src/render/SpecialFX.h | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/render/SpecialFX.cpp b/src/render/SpecialFX.cpp index 32923b12..a0731b1c 100644 --- a/src/render/SpecialFX.cpp +++ b/src/render/SpecialFX.cpp @@ -5,3 +5,8 @@ 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); } + + +CBulletTrace (&CBulletTraces::aTraces)[16] = *(CBulletTrace(*)[16])*(uintptr*)0x72B1B8; + +WRAPPER void CBulletTraces::Init(void) { EAXJMP(0x518DE0); } diff --git a/src/render/SpecialFX.h b/src/render/SpecialFX.h index 1a1a4c1e..1035b315 100644 --- a/src/render/SpecialFX.h +++ b/src/render/SpecialFX.h @@ -11,3 +11,20 @@ class CMotionBlurStreaks public: 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); +}; |