diff options
| author | navewindre <boneyaard@gmail.com> | 2018-11-19 11:48:11 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-11-19 11:48:11 +0100 |
| commit | 83237c211f21b83959f234b58f44980423864f02 (patch) | |
| tree | 921c28e290dc9301b3766823dfe826265ffbc12f /internal_rewrite/visual.hpp | |
| parent | ee88bdeca83ebf6aff4b2bebf2c1f93eb2bf9541 (diff) | |
ddsd
Diffstat (limited to 'internal_rewrite/visual.hpp')
| -rw-r--r-- | internal_rewrite/visual.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
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 <unordered_map>
#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 |
