-
Notifications
You must be signed in to change notification settings - Fork 39
Add new cheat options to Player mod #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…SecuritySystemCamera::FrameUpdate
…d GetAmmoInPocketFor virtual function to ICharacterCoreInventoryState
…et comment for m_pGeomEntity
Mods/Player/Src/Player.cpp
Outdated
| s_Actor->m_fCurrentHitPoints = 0.f; | ||
| } | ||
|
|
||
| return HookResult<bool>(HookAction::Continue()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of having HookResult<bool>(HookAction::Continue()); (or similar) in all these, you could write `{ HookAction::Continue() }; to keep it a bit more concise.
Mods/Player/Src/Player.cpp
Outdated
| const bool s_IsInfiniteAmmoEnabled = !s_LocalHitman.m_pInterfaceRef->IsCustomFlagEnabled( | ||
| static_cast<ECustomFlags>(0x2000000) | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a constant / enum value and this checked be moved to a function in ZHitman5, so it can be re-used?
| if (s_AmmoInPocket > 0) { | ||
| s_AmmoInPocket -= s_HM5ItemWeapon->GetMagazineCapacity(); | ||
|
|
||
| s_Inventory->m_nAmmoInPocket[static_cast<size_t>(s_AmmoType)] = s_AmmoInPocket; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we guaranteed to have an element in at this index?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
No description provided.