forked from pnill/cartographer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix vehicle auto-look centering applying centering too quick when unc…
…apped
- Loading branch information
1 parent
6ea0c58
commit 38c52cc
Showing
7 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,34 @@ | ||
#include "stdafx.h" | ||
#include "player_control.h" | ||
|
||
#include "Blam/Engine/game/game_time.h" | ||
#include "Blam/Engine/main/interpolator.h" | ||
|
||
#include "Util/Hooks/Hook.h" | ||
|
||
real32 g_player_control_dt = 0.0f; | ||
|
||
void player_control_update_dt(real32 dt) | ||
{ | ||
g_player_control_dt = dt; | ||
} | ||
|
||
real32 __cdecl player_control_get_autocenter_delta() | ||
{ | ||
if (halo_interpolator_update_in_progress()) | ||
{ | ||
return time_globals::get_seconds_per_tick(); | ||
} | ||
|
||
return g_player_control_dt; | ||
} | ||
|
||
s_player_control_globals* s_player_control_globals::get() | ||
{ | ||
return *Memory::GetAddress<s_player_control_globals**>(0x4CA37C, 0x4CF0E8); | ||
} | ||
|
||
void player_control_apply_patches() | ||
{ | ||
PatchCall(Memory::GetAddress(0x91149), player_control_get_autocenter_delta); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters