Hi, I'm making an fov changer for WoW because I find the default fov to be uncomfortable. Currently I have this:
PHP Code:
DWORD CamLevelOne = *( DWORD* )( ( DWORD )( GetModuleHandle( "Wow.exe" ) ) + 0xCCA514 );
if( CamLevelOne )
{
OutputLog( "CamLevelOne 0x%X\n", CamLevelOne );
DWORD CamLevelTwo = *( DWORD* )( CamLevelOne + 0x8150 );
if( CamLevelTwo )
{
OutputLog( "CamLevelTwo 0x%X\n", CamLevelTwo );
float *fov = ( float* )( CamLevelTwo + 0x128 );
*fov = 0.52f; //30 degrees higher than default
break;
}
}
This does what it should, I get an extra 30 degrees of vision. However when I use a mount the game tries to slowly lerp that value back to 0. Because I'm currently not hooking any functions (I'd rather not since I have a legit account) and writing to the value from my own thread the FoV flickers between what I'm setting it to and what the game is. I looked at the level two camera in ReClass while this was happening and didn't see any values that looked like they were connected to the FoV change. Does anyone here know how I can stop the game from trying to change my FoV?
EDIT: Found a temporary fix, I detect the change and set the value to 0 for 0.1s to satiate the game's uncontrollable lust for narrow fov.