diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-07 21:28:51 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-07 21:28:51 +0200 |
commit | 4c86469cc91ce1b1cb767e35a0bf8358d9800ac8 (patch) | |
tree | c0835ff0e74fd35c51f142349bb8580630471b19 /src/render | |
parent | More scripts (diff) | |
parent | Merge pull request #111 from gennariarmando/master (diff) | |
download | re3-4c86469cc91ce1b1cb767e35a0bf8358d9800ac8.tar re3-4c86469cc91ce1b1cb767e35a0bf8358d9800ac8.tar.gz re3-4c86469cc91ce1b1cb767e35a0bf8358d9800ac8.tar.bz2 re3-4c86469cc91ce1b1cb767e35a0bf8358d9800ac8.tar.lz re3-4c86469cc91ce1b1cb767e35a0bf8358d9800ac8.tar.xz re3-4c86469cc91ce1b1cb767e35a0bf8358d9800ac8.tar.zst re3-4c86469cc91ce1b1cb767e35a0bf8358d9800ac8.zip |
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/WeaponEffects.cpp | 7 | ||||
-rw-r--r-- | src/render/WeaponEffects.h | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/render/WeaponEffects.cpp b/src/render/WeaponEffects.cpp index a1a6d25a..e062da07 100644 --- a/src/render/WeaponEffects.cpp +++ b/src/render/WeaponEffects.cpp @@ -3,3 +3,10 @@ #include "WeaponEffects.h" WRAPPER void CWeaponEffects::Render(void) { EAXJMP(0x564D70); } + +CWeaponEffects &gCrossHair = *(CWeaponEffects*)0x6503BC; + +void CWeaponEffects::ClearCrosshair() +{ + gCrossHair.m_bCrosshair = false; +} diff --git a/src/render/WeaponEffects.h b/src/render/WeaponEffects.h index 63c8fd7d..7176c26d 100644 --- a/src/render/WeaponEffects.h +++ b/src/render/WeaponEffects.h @@ -3,5 +3,19 @@ class CWeaponEffects { public: + bool m_bCrosshair; + int8 gap_1[3]; + CVector m_vecPos; + int8 field_16; + int8 field_17; + int8 field_18; + int8 field_19; + float field_20; + int32 field_24; + RwTexture *m_pTexture; + RwRaster *m_pRaster; + +public: static void Render(void); + static void ClearCrosshair(); }; |