Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <array>
- /*
- namespace sdk
- {
- class CUserCmd;
- class CBaseEntity;
- class CBaseWeapon;
- class tickrecord_t {
- public:
- float _lowerbody_yaw;
- float _yaw;
- float _simulation_time;
- int _tickbase;
- int _flags;
- float _pitch;
- Vector _velocity;
- tickrecord_t() {}
- tickrecord_t(CBaseEntity* entity) {
- _lowerbody_yaw = entity->GetLowerBodyYaw();
- _yaw = entity->GetEyeAngles().y;
- _simulation_time = entity->GetSimTime();
- _tickbase = entity->GetTickBase();
- _flags = entity->GetFlags();
- _velocity = entity->GetVelocity();
- }
- tickrecord_t(CBaseEntity* entity, float yaw) {
- _lowerbody_yaw = entity->GetLowerBodyYaw();
- _yaw = yaw;
- _simulation_time = entity->GetSimTime();
- _tickbase = entity->GetTickBase();
- _flags = entity->GetFlags();
- _velocity = entity->GetVelocity();
- }
- };
- }
- struct Info
- {
- Info() {}
- sdk::CAnimationLayer backup_layer, prev_layer;
- Vector last_lby, inverse, inverse_right, inverse_left, lby, back, left, right, backtrack;
- float stored_simtime, last_move_time, pre_anim_lby;
- int last_ammo;
- bool breaking_lby, reset_state, could_be_faking;
- std::vector<float> unresolved_yaw, lby_deltas;
- bool lby_changed;
- bool could_be_slowmo;
- bool is_moving;
- bool is_jumping;
- bool is_crouching;
- bool lby_updated;
- bool using_fake_angles;
- float last_moving_lby;
- float stored_lby;
- float next_lby_update_time;
- int stored_missed;
- };
- class CResolver
- {
- public:
- Info player_info[65];
- float lby_delta(sdk::CBaseEntity* entity);
- bool lby_delta_found(sdk::CBaseEntity* entity);
- void record(sdk::CBaseEntity * entity, float new_yaw);
- void resolve(sdk::CBaseEntity* entity);
- void lby_update_checks(sdk::CBaseEntity*, sdk::tickrecord_t, sdk::tickrecord_t);
- bool lowerBodyYawUpdated(sdk::CBaseEntity* entity);
- bool IsBreakingLBY120(sdk::CBaseEntity* entity);
- bool IsResolvableByLBY(sdk::CBaseEntity* entity);
- bool playerStoppedMoving(sdk::CBaseEntity* entity);
- void perform_delta_checks(sdk::CBaseEntity* entity, sdk::tickrecord_t _previous, sdk::tickrecord_t _current);
- float moving_lby(sdk::CBaseEntity* entity);
- bool can_backtrack(sdk::CBaseEntity* entity);
- bool breaking_lby(sdk::CBaseEntity* entity);
- void reset(int idx)
- {
- backtrack1[idx] = false;
- unresolved[idx] = false;
- }
- };
- extern CResolver* resolver;*/
- namespace sdk
- {
- class CUserCmd;
- class CBaseEntity;
- class CBaseWeapon;
- }
- struct STickRecord {
- bool operator==(STickRecord &other) {
- return other.m_flSimulationTime == m_flSimulationTime;
- }
- float m_flVelocity = 0.f;
- Vector m_vecVelocity = Vector(0, 0, 0);
- float m_flSimulationTime = 0.f;
- float m_flLowerBodyYawTarget = 0.f;
- QAngle m_angEyeAngles = QAngle(0, 0, 0);
- std::array<float, 24> m_flPoseParameter = {};
- float m_flCurTime = 0.f;
- int m_nFlags = 0;
- int m_iLayerCount = 0;
- sdk::CAnimationLayer animationLayer[15];
- };
- struct Info
- {
- Info() {}
- sdk::CAnimationLayer backup_layer, prev_layer;
- Vector last_lby, inverse, inverse_right, inverse_left, lby, back, left, right, backtrack;
- float stored_simtime, last_move_time, pre_anim_lby;
- int last_ammo;
- bool breaking_lby, reset_state, could_be_faking;
- std::vector<float> unresolved_yaw, lby_deltas;
- bool lby_changed;
- bool could_be_slowmo;
- bool is_moving;
- bool is_jumping;
- bool is_crouching;
- bool lby_updated;
- bool using_fake_angles;
- float last_moving_lby;
- float stored_lby;
- float next_lby_update_time;
- int stored_missed;
- };
- class CResolver
- {
- public:
- Info player_info[65];
- void record(sdk::CBaseEntity * entity, float new_yaw);
- bool breaking_lby(sdk::CBaseEntity * entity);
- void Experimental(sdk::CBaseEntity * entity);
- void Default(sdk::CBaseEntity * entity);
- void Nospread(sdk::CBaseEntity* player, int entID);
- void resolve(sdk::CBaseEntity* entity);
- };
- extern CResolver* resolver;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement