From 83237c211f21b83959f234b58f44980423864f02 Mon Sep 17 00:00:00 2001 From: navewindre Date: Mon, 19 Nov 2018 11:48:11 +0100 Subject: ddsd --- internal_rewrite/visual.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'internal_rewrite/visual.hpp') diff --git a/internal_rewrite/visual.hpp b/internal_rewrite/visual.hpp index 7b18fa4..4d0e996 100644 --- a/internal_rewrite/visual.hpp +++ b/internal_rewrite/visual.hpp @@ -5,6 +5,8 @@ #include #include "strings.hpp" #include "IVRenderView.hpp" +#include "context.hpp" + class c_base_player; enum HitFlag_t { @@ -53,6 +55,15 @@ namespace features bool m_local; }; + struct hit_t { + int m_ent; + char m_name[ 32 ]; + matrix3x4 m_matrix[ 128 ]; + vec3_t m_pos; + bool m_dead; + float m_time; + }; + //you should always store the entity index rather than the ptr struct sound_t { float m_time; @@ -76,6 +87,7 @@ namespace features std::vector< shot_t > m_shots; std::vector< sound_t > m_sounds; std::vector< tracer_t > m_tracers; + std::vector< hit_t > m_hits; vec3_t m_stored_pos[ 65 ]{ }; float m_anim_progress[ 65 ]{ }; @@ -104,9 +116,11 @@ namespace features void store_shot( vec3_t pos, bool hit = false ); void draw_shots( ); void reset_local_dmg( ); + void draw_skeletons( ); void on_round_start( ); void draw_sound( ); void update_hit_flags( ); + void store_hit( context::shot_data_t* shot ); void operator()( ); }; } \ No newline at end of file -- cgit v1.2.3