Commit Graph

1739 Commits

Author SHA1 Message Date
Pirulax f1fc49a209
`ScriptEntity` - Wrapper for an entity + it's handle (#1137)
* fix: Fix incorrect check in `AddCollisionSoundToList`
* Implement `ScriptEntity`

---------

Co-authored-by: Seemann <x87@users.noreply.github.com>
2025-12-13 12:57:13 +00:00
Seemann 8da8f88717 Fix GET_CHAR_WEAPON_IN_SLOT 2025-12-13 06:30:16 -05:00
Pirulax f30eb29072
`SoundManagerDebugModule` + A few functions (#1097)
* Fix `AddAudioEvent` argument type
* `CAEPedAudioEntity::HandleFootstepEvent`
* `SoundManagerDebugModule`
* `CAEAudioHardware::EnsureSoundBankIsLoaded`
* `CAEWeatherAudioEntity::Service`
2025-12-13 00:32:40 +00:00
Pirulax 23ccf1057a fix: Fix incorrect check in `AddCollisionSoundToList` 2025-12-08 10:29:14 -05:00
Pirulax 504276662b
`CAECollisionAudioEntity` (#1099)
* Fix `CAECollisionAudioEntity::AddCollisionSoundToList`
* Fix `GetCollisionSoundStatus`
* Add enums to `eAudioSlot`
* Add enums to `eAudioBank`
* `ReportCollision`
* `PlayLoopingCollisionSound`
* `ReportObjectDestruction`
* `ReportGlassCollisionEvent`
* `UpdateLoopingCollisionSound`, `GetCollisionSoundStatus` + Refactors
* `CAEAudioHardware::EnsureSoundBankIsLoaded`
2025-12-03 14:26:17 +01:00
Seemann 57e4df0ed8
New Script commands (#1132)
Co-authored-by: yukani <kurbagatengu@gmail.com>
Co-authored-by: Pirulax <patrikjankovics7@gmail.com>
2025-12-02 14:36:54 +01:00
Pirulax 3a8b1f8527
Replace usage of `RequestNewSound` with `PlaySound` API (#1104) 2025-11-22 13:59:40 +00:00
Vladik01-11 2fc68f833e
Refactor `CBoat` (#1118) 2025-11-02 00:25:46 +03:00
Deinyon Davies 9f7b81ed27
Implement `CCamera::ProcessFOVLerp` (#1098)
Co-authored-by: Pirulax <patrikjankovics7@gmail.com>
Co-authored-by: Vladik01-11 <70571714+Vladik01-11@users.noreply.github.com>
2025-11-01 13:19:35 +00:00
Vladik01-11 5f41cec2e2
Fix class `CCurves` and `CPopulation::ManagePopulation` (#1127)
* fix fps and spawn vehicle and peds

* Fix Curves by @ifarbod

* correct

* correct `CalcSpeedScaleFactor`, `CalcCurvePoint` and header

* fix typo in parameter name

* rename vars to `camelCase`, formatting, refactoring `CalcSpeedScaleFactor` and `CalcCurvePoint`, revert delete comment function in header

---------

Co-authored-by: yukani <yukani@zohomail.eu>
2025-10-28 23:07:24 +00:00
Vladik01-11 a594574993
Fix naming of the invert mouse Y option (#1130) 2025-10-27 23:23:52 +03:00
Seemann 8853a890d4
Switch Roads (#1103) 2025-10-27 19:22:09 +00:00
Vladik01-11 931177ec43
Fix issue in `CBirds::Update` (#1128) 2025-10-27 20:00:19 +01:00
Vladik01-11 91b0e21857
Fix bike angles in replays (#1129)
Create `tReplayBmxBlock::ExtractBmxUpdateData` and correct type var
2025-10-26 13:29:12 +00:00
Vladik01-11 81da58a18c
Refactor `CEntity` (#1123)
* Fix `CStreaming::RemoveBuildingsNotInArea`, dont corrent check area
* Fix `CEntity::PreRender`, `7.744F` -> `0.744F`.
* Fix `CEntity::SetRwObjectAlpha`, call all material.
* Low etc fix
2025-10-24 20:30:56 +00:00
Vladik01-11 63f8e3d486
Fix `FadedIntensity` in `CRegisteredCorona` (#1124) 2025-10-20 19:24:45 +00:00
Vladik01-11 57ec49876b
Fix position movie camera (#1126) 2025-10-19 23:08:24 +03:00
Vladik01-11 6f150e26bb
Fix call `GetGxtStringOfCommandKeys` in `InsertPlayerControlKeysInString` (#1125)
* fix bug

* revert rename vars
2025-10-19 19:34:59 +03:00
Vladik01-11 0dd2b020cc
Refactoring `CTrailer` (#1117) 2025-09-21 18:11:53 +00:00
Vladik01-11 7282a4644c
Refactoring `CRegisteredCorona` and `CCoronas` (#1122) 2025-09-07 19:26:35 +00:00
Vladik01-11 c2df58461d
Refactoring `CCullZones` (#1114) 2025-09-01 20:20:27 +00:00
Vladik01-11 4b795d3451
Fix #1049 and low refactoring `CDoor` (#1119) 2025-08-29 21:44:33 +00:00
Vladik01-11 e9daf93279
Remove plugin `III.VC.SA.WindowedMode.asi` (#1120)
* delete plugin `III.VC.SA.WindowedMode.asi`

* edit readme
2025-08-29 21:08:13 +00:00
Vladik01-11 2ed8ac1325
Refactor `CControllerConfigManager` (#1091) 2025-08-09 00:46:54 +03:00
Vladik01-11 fff777b592
Fix types and color in `CColourSet` and `CTimeCycle` (#1112) 2025-08-01 22:13:45 +03:00
Vladik01-11 7dc7e96962
Refactor `CMenuManager` (#1095)
Fixes and refactors related to `CMenuManager`
2025-06-24 11:17:48 +02:00
MMaZaHaKa 03b53200c4
Update CPlane::FindPlaneCreationCoors args (#1107)
* upd heli args

* upd FindPlaneCreationCoors args name
2025-06-23 19:54:33 +02:00
Grinch_ ced11a69da
Fix `CCarCtrl::ChooseCarModelToLoad` (#1106)
Co-authored-by: Pirulax <patrikjankovics7@gmail.com>
2025-06-08 00:24:39 +00:00
Pirulax 9ee2431657
Fix menu audio not working (#1105)
Co-authored-by: yukani <yukani@zohomail.eu>
2025-06-05 00:26:11 +03:00
Pirulax a5d5edb314
Fix `CVector::DotProduct` address, and unhook `CVector2D`/`CMatrix`/`CQuaternion` for better performance (#1102) 2025-06-05 00:17:45 +03:00
Pirulax 1b34baea7b
`CTimeCycle` (#1078) 2025-06-01 20:27:58 +02:00
Pirulax cb7301b575
`CAEVehicleAudioEntity` (#892)
* `CAEVehicleAudioEntity`
* Refactor `CAESound`
* Refactor some other audio stuff
2025-06-01 13:39:11 +02:00
MrXEnginner f9147b8f4d
Reverse 'FindPlayerCentreOfWorld_NoSniperShift' and `CPedDamageResponseCalculator::AdjustPedDamagec` (#1090)
* Reverse 'FindPlayerCentreOfWorld_NoSniperShift'
* Reverse 'CPedDamageResponseCalculator::AdjustPedDamage' from Android

---------

Co-authored-by: Pirulax <patrikjankovics7@gmail.com>
2025-05-30 20:36:12 +02:00
Pirulax 1cf55b4af6
Fix `CCoronas::UpdateCoronaCoors` (#1096) 2025-05-27 23:20:44 +03:00
Pirulax 9952a3c8b4
Fix `TerminateAllScriptsWithThisName` (#1080) 2025-05-25 13:57:38 +03:00
Vladik01-11 d4fdab565f
`static` -> `constexpr` (#1094) 2025-05-25 12:56:16 +02:00
Pirulax b05f30c0ac
`CDecisionMakerTypesFileLoader` (#1086) 2025-05-25 12:24:59 +02:00
Pirulax bfa5a3f9d0
Add `hooks.csv` export (#1084)
Co-authored-by: yukani <yukani@zohomail.eu>
2025-05-25 12:24:02 +02:00
Pirulax a657310384
`CPedAttractor` (#1030) [untested]
* Remove `m_` prefix of fields in `CPedTaskPair`
* `SArray<T>::erase(first, last)`
2025-05-23 21:31:48 +02:00
Seemann cb66795bfc
Update Game commands (#1087)
- IS_EXPLOSION_IN_AREA(0356)
- SHAKE_PAD(015B)
- DRAW_SHADOW(016F)
- IS_XBOX_VERSION(0A49)
- DO_DEBUG_STUFF(0A4E)
2025-05-22 21:26:40 +02:00
Seemann 628093f703
Remaining player commands (#1082)
* reverse remaining player commands

* remove unused import

* fix vehicle type assert
2025-05-13 23:06:03 +02:00
Seemann b3325c1915
Enable TheScripts::Init (#1085) 2025-05-11 23:36:15 +02:00
Pirulax fb843a5182
Refactor `SpawnerDebugModule` (#1075)
* Refactor `SpawnerDebugModule` 
* `ImGuiTextFilter` serialization
2025-05-08 22:45:48 +02:00
Seemann 14cdbf265e
Reversing Conversation commands (#1077)
* START_SETTING_UP_CONVERSATION(0717)
* FINISH_SETTING_UP_CONVERSATION(0719)
* IS_CONVERSATION_AT_NODE(071A)
* IS_PLAYER_IN_POSITION_FOR_CONVERSATION(089B)
* ENABLE_CONVERSATION(089C)
* CLEAR_CONVERSATION_FOR_CHAR(08ED)
* SET_UP_CONVERSATION_NODE_WITH_SPEECH(09A4)
* SET_UP_CONVERSATION_END_NODE_WITH_SPEECH(09AA)
* FINISH_SETTING_UP_CONVERSATION_NO_SUBTITLES(0A47)
* SET_UP_CONVERSATION_NODE_WITH_SCRIPTED_SPEECH(0A18)
* SET_UP_CONVERSATION_END_NODE_WITH_SCRIPTED_SPEECH(0A3C)
2025-05-08 22:45:27 +02:00
Pirulax f432d91ff6
Fix skimmer bug (#1076)
* Fix skimmer bug, [see](881aded723 (diff-dced484b9e5c91f46368608ae464c11e6f83915e899f55e3ba23c33440858df2))
* Fixes #922 
* Fix `PlaceOnRoadProperly`
* Fix build
* Add arg count checks (Properly warns on `skimmer` now)
2025-05-07 23:49:41 +02:00
Pirulax 459561140a
Update `ReversedClasses.md` and `hooks.csv` (#1065)
* Fix `WriteHooksToFile`

* Update docs
2025-05-03 18:07:42 +03:00
Seemann 69bb641acd
Reverse player script commands (#1055)
50 new opcodes:
- `ADD_SCORE(0109)`
- `IS_SCORE_GREATER(010A)`
- `STORE_SCORE(010B)`
- `ALTER_WANTED_LEVEL(010D)`
- `ALTER_WANTED_LEVEL_NO_DROP(010E)`
- `IS_WANTED_LEVEL_GREATER(010F)`
- `CLEAR_WANTED_LEVEL(0110)`
- `SET_MAX_WANTED_LEVEL(01F0)`
- `IS_PLAYER_DEAD(0117)`
- `GET_PLAYER_CHAR(01F5)`
- `IS_PLAYER_PRESSING_HORN(0122)`
- `SET_PLAYER_CONTROL(01B4)`
- `SET_POLICE_IGNORE_PLAYER(01F7)`
- `SET_EVERYONE_IGNORE_PLAYER(03BF)`
- `APPLY_BRAKES_TO_PLAYERS_CAR(0221)`
- `IS_PLAYER_IN_REMOTE_MODE(0241)`
- `GET_NUM_OF_MODELS_KILLED_BY_PLAYER(0298)`
- `RESET_NUM_OF_MODELS_KILLED_BY_PLAYER(0297)`
- `SET_PLAYER_NEVER_GETS_TIRED(0330)`
- `SET_PLAYER_FAST_RELOAD(0331)`
- `CAN_PLAYER_START_MISSION(03EE)`
- `MAKE_PLAYER_SAFE_FOR_CUTSCENE(03EF)`
- `IS_PLAYER_TARGETTING_CHAR(0457)`
- `IS_PLAYER_TARGETTING_OBJECT(0458)`
- `GIVE_REMOTE_CONTROLLED_MODEL_TO_PLAYER(046E)`
- `MAKE_PLAYER_FIRE_PROOF(055D)`
- `GET_PLAYER_MAX_ARMOUR(0945)`
- `SET_PLAYER_MOOD(04E3)`
- `IS_PLAYER_WEARING(0500)`
- `SET_PLAYER_CAN_DO_DRIVE_BY(0501)`
- `SET_PLAYER_DRUNKENNESS(052C)`
- `INCREASE_PLAYER_MAX_HEALTH(055E)`
- `INCREASE_PLAYER_MAX_ARMOUR(055F)`
- `ENSURE_PLAYER_HAS_DRIVE_BY_WEAPON(0563)`
- `IS_PLAYER_IN_INFO_ZONE(0583)`
- `IS_PLAYER_TARGETTING_ANYTHING(068C)`
- `DISABLE_PLAYER_SPRINT(06AF)`
- `DELETE_PLAYER(06DF)`
- `BUILD_PLAYER_MODEL(070D)`
- `GIVE_PLAYER_CLOTHES(0784)`
- `PLAYER_ENTERED_BUILDINGSITE_CRANE(079E)`
- `PLAYER_ENTERED_DOCK_CRANE(079D)`
- `PLAYER_ENTERED_LAS_VEGAS_CRANE(07FA)`
- `PLAYER_ENTERED_QUARRY_CRANE(07F9)`
- `PLAYER_LEFT_CRANE(079F)`
- `GET_PLAYER_GROUP(07AF)`
- `SET_PLAYER_GROUP_RECRUITMENT(07B4)`
- `SET_PLAYER_ENTER_CAR_BUTTON(07CC)`
- `IS_PLAYER_PERFORMING_WHEELIE(07F1)`
- `IS_PLAYER_PERFORMING_STOPPIE(07F2)`

---------

Co-authored-by: Pirulax <patrikjankovics7@gmail.com>
2025-05-03 11:38:34 +02:00
Seemann 439a2f6141
Fix autoaim (#1064)
* Fix autoaim
* Add `GetWeaponRange`
---------

Co-authored-by: Pirulax <patrikjankovics7@gmail.com>
2025-05-03 01:14:30 +02:00
Pirulax a377336c5e
`PlacePedAtEffect` (#1066) 2025-05-02 01:06:02 +02:00
Pirulax 8731f37d46
Remove unused `CTaskComplexAvoidEntity` (#1068) 2025-05-02 01:05:40 +02:00