Merge pull request #15 from Am4191LOL/mygithub

Mygithub
This commit is contained in:
_or_75
2026-07-02 14:06:37 +03:00
committed by GitHub
3 changed files with 37 additions and 0 deletions
@@ -6,3 +6,4 @@
#pragma comment(lib,"freetype") #pragma comment(lib,"freetype")
#pragma comment(lib,"FW1FontWrapperRel") #pragma comment(lib,"FW1FontWrapperRel")
#pragma comment(lib,"libprotobuf") #pragma comment(lib,"libprotobuf")
#pragma comment(lib,"VMProtectSDK64")
@@ -117,11 +117,44 @@ auto CL_Bypass::SetDontAttack( CUserCmd* pUserCmd , bool AddSubTIck ) -> void
#endif #endif
} }
auto CL_Bypass::SetJump( CUserCmd* pUserCmd , bool AddSubTIck ) -> void
{
pUserCmd->button_states.buttonstate1 |= IN_JUMP;
pUserCmd->cmd.mutable_base()->mutable_buttons_pb()->set_buttonstate1( pUserCmd->button_states.buttonstate1 );
#if DISABLE_PROTOBUF == 0
if ( AddSubTIck )
AddProcessSubTick( IN_JUMP , true , 0.01f );
#endif
}
auto CL_Bypass::SetDontJump( CUserCmd* pUserCmd , bool AddSubTIck ) -> void
{
pUserCmd->button_states.buttonstate1 &= ~IN_JUMP;
pUserCmd->cmd.mutable_base()->mutable_buttons_pb()->set_buttonstate1( pUserCmd->button_states.buttonstate1 );
#if DISABLE_PROTOBUF == 0
if ( AddSubTIck )
AddProcessSubTick( IN_JUMP , false , 0.01f );
#endif
}
auto CL_Bypass::AddProcessSubTick( const uint64_t Button , const bool Pressed ) -> void auto CL_Bypass::AddProcessSubTick( const uint64_t Button , const bool Pressed ) -> void
{ {
m_InternalSubTickList.emplace_back( Button , Pressed , CalculateWhenValue() ); m_InternalSubTickList.emplace_back( Button , Pressed , CalculateWhenValue() );
} }
auto CL_Bypass::AddProcessSubTick( const uint64_t Button , const bool Pressed , const float When ) -> void
{
m_InternalSubTickList.emplace_back( Button , Pressed , When );
}
auto CL_Bypass::OnCBaseUserCmdPB( CBaseUserCmdPB* pBaseUserCmdPB ) -> void auto CL_Bypass::OnCBaseUserCmdPB( CBaseUserCmdPB* pBaseUserCmdPB ) -> void
{ {
m_Backup = *pBaseUserCmdPB; m_Backup = *pBaseUserCmdPB;
@@ -21,9 +21,12 @@ public:
auto SetViewAngles( QAngle* ViewAngles , CCSGOInput* pInput , CUserCmd* pUserCmd , bool AddSetViewAngles = true , bool OnlyInputHistory = false ) -> void; auto SetViewAngles( QAngle* ViewAngles , CCSGOInput* pInput , CUserCmd* pUserCmd , bool AddSetViewAngles = true , bool OnlyInputHistory = false ) -> void;
auto SetAttack( CUserCmd* pUserCmd , bool AddSubTIck = false ) -> void; auto SetAttack( CUserCmd* pUserCmd , bool AddSubTIck = false ) -> void;
auto SetDontAttack( CUserCmd* pUserCmd , bool AddSubTIck = false ) -> void; auto SetDontAttack( CUserCmd* pUserCmd , bool AddSubTIck = false ) -> void;
auto SetJump( CUserCmd* pUserCmd , bool AddSubTIck = false ) -> void;
auto SetDontJump( CUserCmd* pUserCmd , bool AddSubTIck = false ) -> void;
public: public:
auto AddProcessSubTick( const uint64_t Button , const bool Pressed ) -> void; auto AddProcessSubTick( const uint64_t Button , const bool Pressed ) -> void;
auto AddProcessSubTick( const uint64_t Button , const bool Pressed , const float When ) -> void;
public: public:
auto OnCBaseUserCmdPB( CBaseUserCmdPB* pBaseUserCmdPB ) -> void; auto OnCBaseUserCmdPB( CBaseUserCmdPB* pBaseUserCmdPB ) -> void;