idk just make this proper checksdoes somebody know how to fix weave's dt on supremacy? It crashed because GetUserCMD(g_cl.m_cmd->m_command_number + 1), usercmd being null.
if (g_cl) {
if (g_cl.m_cmd) {
GetUserCMD(g_cl.m_cmd->m_command_number + 1)
}
}
idk just make this proper checks
if it crashing too, throw GetUserCMD sourceC++:if (g_cl) { if (g_cl.m_cmd) { GetUserCMD(g_cl.m_cmd->m_command_number + 1) } }
__forceinline CUserCmd* GetUserCmd( int sequence_number ) {
return util::get_method< CUserCmd*( __thiscall* )( decltype( this ), int, int ) >( this, GETUSERCMD )( this, -1, sequence_number );
}
CRASH HERE:
auto next_command_number = g_cl.m_cmd->m_command_number + 1;
auto user_cmd = g_csgo.m_input->GetUserCmd( next_command_number );
memcpy( user_cmd, g_cl.m_cmd, sizeof( CUserCmd ) );
user_cmd->m_command_number = next_command_number;
1. Are you sure, that your GETUSERCMD index is right?C++:__forceinline CUserCmd* GetUserCmd( int sequence_number ) { return util::get_method< CUserCmd*( __thiscall* )( decltype( this ), int, int ) >( this, GETUSERCMD )( this, -1, sequence_number ); } CRASH HERE: auto next_command_number = g_cl.m_cmd->m_command_number + 1; auto user_cmd = g_csgo.m_input->GetUserCmd( next_command_number ); memcpy( user_cmd, g_cl.m_cmd, sizeof( CUserCmd ) ); user_cmd->m_command_number = next_command_number;
I don't think it's about getusercmd. where the crash is, next_command_number is set to -(random numbers) even tho command number was 3k when i debugged it.1. Are you sure, that your GETUSERCMD index is right?
2. Maybe, your input class is outdated (If you are porting shit from legacy to live CS:GO).
Stop pasting this shit, paste deathmesis one
Проект предоставляет различный материал, относящийся к сфере киберспорта, программирования, ПО для игр, а также позволяет его участникам общаться на многие другие темы. Почта для жалоб: admin@yougame.biz