summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/WeaponEffects.cpp15
-rw-r--r--src/render/WeaponEffects.h13
2 files changed, 21 insertions, 7 deletions
diff --git a/src/render/WeaponEffects.cpp b/src/render/WeaponEffects.cpp
index e062da07..11fb3d2e 100644
--- a/src/render/WeaponEffects.cpp
+++ b/src/render/WeaponEffects.cpp
@@ -6,7 +6,20 @@ WRAPPER void CWeaponEffects::Render(void) { EAXJMP(0x564D70); }
CWeaponEffects &gCrossHair = *(CWeaponEffects*)0x6503BC;
-void CWeaponEffects::ClearCrosshair()
+void
+CWeaponEffects::ClearCrossHair()
{
gCrossHair.m_bCrosshair = false;
}
+
+void
+CWeaponEffects::MarkTarget(CVector pos, uint8 red, uint8 green, uint8 blue, uint8 alpha, float size)
+{
+ gCrossHair.m_bCrosshair = true;
+ gCrossHair.m_vecPos = pos;
+ gCrossHair.m_red = red;
+ gCrossHair.m_green = green;
+ gCrossHair.m_blue = blue;
+ gCrossHair.m_alpha = alpha;
+ gCrossHair.m_size = size;
+}
diff --git a/src/render/WeaponEffects.h b/src/render/WeaponEffects.h
index 7176c26d..6edcd60b 100644
--- a/src/render/WeaponEffects.h
+++ b/src/render/WeaponEffects.h
@@ -6,16 +6,17 @@ 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;
+ uint8 m_red;
+ uint8 m_green;
+ uint8 m_blue;
+ uint8 m_alpha;
+ float m_size;
int32 field_24;
RwTexture *m_pTexture;
RwRaster *m_pRaster;
public:
static void Render(void);
- static void ClearCrosshair();
+ static void ClearCrossHair();
+ static void MarkTarget(CVector, uint8, uint8, uint8, uint8, float);
};