diff options
| author | JustSomePwner <crotchyalt@gmail.com> | 2018-08-30 14:01:54 +0200 |
|---|---|---|
| committer | JustSomePwner <crotchyalt@gmail.com> | 2018-08-30 14:01:54 +0200 |
| commit | 7ccb819f867493f8ec202ea3b39c94c198c64584 (patch) | |
| tree | 94622e61af0ff359e3d6689cf274d74f60b2492a /gmod/prediction.hpp | |
| parent | 564d979b79e8a5aaa5014eba0ecd36c61575934f (diff) | |
first
Diffstat (limited to 'gmod/prediction.hpp')
| -rw-r--r-- | gmod/prediction.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gmod/prediction.hpp b/gmod/prediction.hpp new file mode 100644 index 0000000..ca0fb93 --- /dev/null +++ b/gmod/prediction.hpp @@ -0,0 +1,27 @@ +#pragma once
+#include "util.hpp"
+
+class user_cmd_t;
+class c_base_player;
+
+NAMESPACE_REGION( features )
+
+class c_prediction {
+ user_cmd_t* m_ucmd{ };
+ int m_predicted_flags{ };
+
+ void run( user_cmd_t* ucmd );
+public:
+ void operator()( user_cmd_t* ucmd ) {
+ m_ucmd = ucmd;
+ run( m_ucmd );
+ }
+
+ int get_predicted_flags( ) const {
+ return m_predicted_flags;
+ }
+
+ void predict_player( c_base_player* player );
+};
+
+END_REGION
\ No newline at end of file |
