Skip to content

Commit

Permalink
Implement fix to force disable autoaim.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnill committed Oct 8, 2017
1 parent 2b532d2 commit ec1a268
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions T4MP/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,12 @@ int __stdcall load_history(void* thisptr, char* hist_file)
*player_2_joined = 0;
}

if (!strcmp("$\\Data\\History\\Options.hst", hist_file))
{
DWORD data_area = *(DWORD*)(ret + 0x04);
*(BYTE*)(data_area) = 0; // turn autoaim off.
}

return ret;
}
DMPlayer* TurokEngine::GetDMPlayer(int index)
Expand Down

0 comments on commit ec1a268

Please sign in to comment.