diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-07-01 01:48:31 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-07-01 01:48:31 +0200 |
commit | 3dec4a04230e3060a1c4f9a0c7bc698436f892d9 (patch) | |
tree | 92e6bfba49d11f7f41c7daa4ea593eb6c128555a /src/render | |
parent | More CPed (diff) | |
parent | Merge pull request #81 from Nick007J/master (diff) | |
download | re3-3dec4a04230e3060a1c4f9a0c7bc698436f892d9.tar re3-3dec4a04230e3060a1c4f9a0c7bc698436f892d9.tar.gz re3-3dec4a04230e3060a1c4f9a0c7bc698436f892d9.tar.bz2 re3-3dec4a04230e3060a1c4f9a0c7bc698436f892d9.tar.lz re3-3dec4a04230e3060a1c4f9a0c7bc698436f892d9.tar.xz re3-3dec4a04230e3060a1c4f9a0c7bc698436f892d9.tar.zst re3-3dec4a04230e3060a1c4f9a0c7bc698436f892d9.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); +}; |