Commit Graph

626 Commits

Author SHA1 Message Date
izawartka
0bfb9fb48c Fix RotateCameraWorker game pause behavior
- Updated ModMenuModule::MouseControlCheat
    - Added an option to not remove a CameraWorker when the game is paused (ModMenuModule::MouseControlWorker::RemoveOnGamePause method)
    - Updated RotateCameraWorker to use the above method returning false
2026-06-01 19:37:45 +02:00
izawartka
f92f0dbffa Fix easy camera mode changing to Custom
- Fixed ModMenuModule::Utils::CameraEasyMode::GetCurrentMode function returning Custom if ModMenuModule::CameraCheat followPedRotationOffset is not 0
2026-06-01 17:19:30 +02:00
izawartka
94afb78188 Update RotateCameraWorker to use FPRO handle
- Updated ModMenuModule::RotateCameraWorker to use FPRO handle to control ModMenuModule::CameraCheat followPedRotationOffset
2026-06-01 17:15:19 +02:00
izawartka
57aeed0b70 Add CameraCheat FPRO handle control
- Updated ModMenuModule::CameraCheat to allow for exclusive control for the option followPedRotationOffset using a handle
2026-06-01 17:14:24 +02:00
izawartka
4bf9d43a9b Update gta2-seuko-mod.vcxproj.filters 2026-06-01 17:12:22 +02:00
izawartka
1cfd82fbc0 Fix MouseControlCheat failing to remove workers
- Fixed ModMenuModule::MouseControlCheat failing to set the None worker set type
- Slightly refactored ModMenuModule::MouseControlWorkerRegistry
2026-05-29 13:33:15 +02:00
izawartka
e1afa8ee98 Add adjustable CameraCheat horRotCenter, fix bugs
- Updated ModMenuModule::CameraCheat
    - Added an option to adjust ModMenuModule::CameraCheat horizontal rotation center Z
    - Updated it to use the camera ped instead of current player ped (99% of cases the same thing)
    - Slightly refactored
- Updated ModMenuModule::Utils::Vertex to use external horRotCenter
2026-05-29 13:10:29 +02:00
izawartka
a908e06efc Add get ped position and rotation utils
- Added ModMenuModule::Utils::GetPedPosition util function
- Added ModMenuModule::Utils::GetPedRotation util function
2026-05-28 21:29:07 +02:00
izawartka
73bdc4563e Improve vertex utils 3d transforms
- Updated ModMenuModule::Utils::Vertex
    - Updated so world space z position 0 is the bottom of the map
    - Removed redundant zoomFactor and simplified calculations
    - Replaced ToSetZPosition and ScaleXY with TransformArrows
    - Fixed issues with misaligned arrows in 3D camera mode
    - Fixed arrows scaling problem when using additional z offset
2026-05-28 19:44:14 +02:00
izawartka
5aeebada16 Fix CameraPosCheat compatibility with WSF
- Updated ModMenuModule::CameraPosCheat to be compatible with ThirteenAG's WidescreenFix
2026-05-28 01:03:08 +02:00
izawartka
b51b4fa31e Add WSFixUpdateEvent
- Added WSFixUpdateEvent
2026-05-28 01:01:55 +02:00
izawartka
2d366dca8a Add unlock all levels button
- Added "Unlock all levels" button in ModMenuModule::MiscMenu
- Changed ModMenuModule native cheat "Unlock all levels" category to UnstableOrUnused
2026-05-25 00:48:44 +02:00
izawartka
2f915c2392 Add unlock all levels related game functions
- Added Game::Functions::UnlockAllLevels function
- Added Game::Memory::GetS28 function
2026-05-25 00:46:59 +02:00
izawartka
94246e1ca4 Update README.md 2026-05-25 00:11:24 +02:00
izawartka
3f3bd83d36 Fix illegal chars in quick action name
- Fixed user being able to input illegal chars in ModMenuModule::QuickActionOptionsMenu quick action name
2026-05-24 23:42:43 +02:00
izawartka
d6c2db6548 Make mouse control camera rotation toggeable
- Added ModMenuModule::MouseControlOptions::rotateCamera
- Updated ModMenuModule::MouseControlMenu to include the above option
- Updated ModMenuModule::MouseControl worker sets and GetAppliableWorkerSetType logic
2026-05-24 23:26:11 +02:00
izawartka
f09d2820c8 Add RotateCameraWorker
- Added ModMenuModule::RotateCameraWorker
- Updated ModMenuModule::MouseControlWorkerRegistry to use RotateCameraWorker when the player is driving a car
2026-05-24 22:31:20 +02:00
izawartka
9a415660b5 Add CameraCheatOptions::followPedRotationOffset
- Added ModMenuModule::CameraCheatOptions::followPedRotationOffset option
- Updated ModMenuModule::CameraAdvancedMenu to include the above option input
- Updated base options in ModMenuModule::Utils::CameraEasyMode to include the above option
2026-05-24 22:30:20 +02:00
izawartka
f054d9c5ae Refactor MouseControlCheat
- Split ModMenuModule::MouseControlCheat into multiple smaller subclasses called workers
2026-05-19 23:58:58 +02:00
izawartka
7d755b4314 Move MouseControlCheat to a separate folder
- Moved ModMenuModule::MouseControlCheat to a separate folder
2026-05-19 11:35:38 +02:00
izawartka
2785c7b28f Fix PlayerAppearanceCheat disable logic
- Fixed a minor bug in ModMenuModule::PlayerAppearanceCheat
2026-05-18 12:47:24 +02:00
izawartka
4a7a74d8f4 Add FreecamCheat
- Added ModMenuModule::FreecamCheat
- Added an option to toggle FreecamCheat in ModMenuModule::CameraMenu
2026-05-18 12:46:24 +02:00
izawartka
92cce963ec Improve MouseControlCheat precision
- Updated ModMenuModule::MouseControlCheat
    - Updated GetTargetRotation method to account for client area aspect ratio
    - Removed "Point at" mode delta rotation smoothing in UpdateTargetDeltaRotation method
    - Tweaked ROTATION_INPUT_THRESHOLD
2026-05-17 23:49:16 +02:00
izawartka
d497a3b876 Update MouseManager
- Added MouseModule::MouseManager::GetClientAreaAspectRatio static method
- Updated MouseModule::MouseManager::GetClientAreaSize static method
    - Made it public
    - Made it return actual size, not the coords of bottom-right pixel
- Updated other MouseModule::MouseManager methods to work with the new GetClientAreaSize logic
2026-05-17 23:39:39 +02:00
izawartka
2f2dd06891 Add Toggle steering assist quick action
- Added ModMenuModule::ToggleSteeringAssistAction
2026-05-16 13:12:18 +02:00
izawartka
25610c28cd Add car lock options
- Added ModMenuModule::Utils::GetSelectableCarLockStates helper function
- Added an option in ModMenuModule::LastVehicleMenu to change car lock state
2026-05-15 11:27:32 +02:00
izawartka
15ac97992e Add CarLockStateConverter
- Added CarLockStateConverter
2026-05-15 11:27:32 +02:00
izawartka
4e24ec7e8d Update game structs
- Updated game structs in gta2.h:
    - Added CAR_LOCK_STATE enum
    - Renamed and retyped Car::locksDoor
    - Renamed PLAYER_PHYSICS_STATE to PLAYER_CONTROL_STATE and updated it
    - Renamed and retyped Player::state1
    - Updated comments on Player cameras
2026-05-15 11:27:28 +02:00
izawartka
687d243ccb Update cheats to use aux ped when needed
- Updated ModMenuModule::CameraCheat and ModMenuModule::MouseControlCheat to use auxiliary player ped when it is set as the current one
- Renamed ModMenuModule::MouseControlCheat::GetPlayerRotation function to GetPlayerPedRotation and changed its return type
2026-05-15 11:27:28 +02:00
izawartka
7f95ea5e08 Add aux player helper functions
- Added Game::Utils::GetPlayer helper function
- Added Game::Utils::GetPlayerCurrentPed helper function
- Added Game::Utils::GetPlayerCurrentPedRotationPtr helper function
- Added Game::Functions::GetCurrentPed function
2026-05-15 11:27:28 +02:00
izawartka
9e9bb2f875 Add DisableSteeringAssistCheat
- Added ModMenuModule::DisableSteeringAssistCheat
- Added DisableSteeringAssistCheat toggle in ModMenuModule::VehiclesMenu
2026-05-15 11:27:28 +02:00
izawartka
6795e04b38 Add SteeringAssistEvent and related function
- Added SteeringAssistEvent
- Added Game::Functions::ApplySteeringAssist function
2026-05-14 23:04:17 +02:00
izawartka
dc4a2d07e9 1.4.0 Release tweaks
- Bumped up version number to 1.4.0
- Updated README.md
2026-03-31 15:47:34 +02:00
izawartka
c52ab0734a Various menu tweaks
- Moved "Camera control" menu button from ModMenuModule::MiscMenu to ModMenuModule::MainMenu
- Updated "Native cheats" menu button text in ModMenuModule::MainMenu
- Added back a spacer in ModMenuModule::CameraRenderingMenu
2026-03-31 15:45:56 +02:00
izawartka
271086f991 Fix cigarette smoke in 3D mode
- Fixed cigarette smoke being buggy in 3D camera mode
2026-03-31 15:34:24 +02:00
izawartka
fe577c3348 Minor ModMenuModule code cleanup
- Updated ModMenuModule::CameraPosCheatCoordSegment constructor coordLabel param type to std::string_view
- Updated ModMenuModule::SavedCarsCheat::SaveCar to use emplace instead of insert
- Updated ModMenuModule::CheatBase constructor persistenceKey param type to std::string_view
2026-03-31 14:57:15 +02:00
izawartka
ee6b52b85c Update UiModule to use string views
- Updated UiModule::Text constructor text param type to std::string_view
- Updated UiModule::Text::SetText text param type to std::string_view
- Updated UiModule::KeyBindChangeController constructor keyBindName param type to std::string_view
2026-03-31 14:54:19 +02:00
izawartka
33e91d08df Update segment constructors to use string views
- Updated ModMenuModule segment constructors to use std::string_view type for persistencePrefix param
2026-03-31 14:52:12 +02:00
izawartka
ff77a508ca Update QuickActionManager::GetAll
- Updated ModMenuModule::QuickActionManager::GetAll to return a const reference
- Fixed ModMenuModule::QuickActionManager::GetAll not using the cache
2026-03-25 22:09:17 +01:00
izawartka
721a0e7bf2 Update CategorizedNativeCheats utils namespace
**POSSIBLY BREAKING CHANGE**
- Updated ModMenuModule::CategorizedNativeCheats namespace to ModMenuModule::Utils::CategorizedNativeCheats
- Changed "Skip quit confirm" native cheat category to SkipThings
2026-03-24 17:53:07 +01:00
izawartka
ad7b3e7c0f Add UnstuckKeysCheat
- Added ModMenuModule::UnstuckKeysCheat
2026-03-24 16:46:47 +01:00
izawartka
c1df29114e Add PostKeyboardGetDataEvent
- Added PostKeyboardGetDataEvent
- Updated KeyboardGetDataEvent comment description
2026-03-24 16:46:11 +01:00
izawartka
d4c216e861 Add WindowFocusChangeEvent
- Added WindowFocusChangeEvent
2026-03-24 16:46:10 +01:00
izawartka
83867a4508 Update ShadowsFixCheat to be always enabled
- Updated ModMenuModule::ShadowsFixCheat to be always enabled
- Removed "Shadows fix" toggle from ModMenuModule::CameraRenderingMenu
- Replaced ModMenuModule::Utils::CameraEasyMode::CameraEasyMode::FixShadows enum option with a dummy Unmodified2 option that acts just like Unmodified
- Added backwards compatibility code related to the removal of the FixShadows option
2026-03-24 16:43:47 +01:00
izawartka
cd3613f4b6 Clean up ForceControlsCheat and MouseControlCheat
**POSSIBLY BREAKING CHANGE**
- Removed ModMenuModule::ForceControlsCheat::GetControlIndex as the same function is now served by Game::Utils
- Renamed ModMenuModule::ForceControlsCheat::CheckUsesController to CheckUsesGamepad
- Updated ModMenuModule::MouseControlCheat to work correctly with the above changes
- Renamed ModMenuModule::MouseControlCheat::EnsureNotControllerControls to EnsureNotGamepadControls
2026-03-23 22:33:39 +01:00
izawartka
b449f429ff Update ForceControlsCheat to use keyboard utils
- Updated ModMenuModule::ForceControlsCheat to use Game utils added in a previous commit
2026-03-23 22:30:50 +01:00
izawartka
0c333ee527 Add game keyboard utils
- Added Game::Constants::CONTROLS_COUNT
- Added Game::Memory::GetControlsAsArray getter
- Added Game::Utils functions:
    - ToControlsStateOnly
    - GetControlIndex
    - GetControlBit
    - IsControlDown
    - IsGamepadKey
2026-03-23 22:23:33 +01:00
izawartka
8d34a735eb Add persistence file backup saving
- PersistenceModule::PersistenceManager will now create a backup before modifying persistence file
2026-03-23 20:36:20 +01:00
izawartka
6ed5e04e62 Unify persistence file location between build types
- Unified persistence file location to always be [exe_dir]\seukomod.dat. It used to be [exe_dir]\scripts\seukomod.dat in ASI builds.
- Added PersistenceModule::PersistenceManager::CopyLegacyFileIfExists static method for backwards copatibility
2026-03-23 00:25:51 +01:00
izawartka
ec6bf37a38 Update persistence to use wide char paths
- Updated PersistenceModule to use wide character strings for paths
- Added PersistenceModule::PersistenceManager::GetRootDirectory to extract that logic out of UpdatePersistenceFilePath method
2026-03-23 00:21:02 +01:00