Commit Graph

535 Commits

Author SHA1 Message Date
Ilya Shurumov
f8b9c3443c - [EMU] GTE PGXP NCLIP improvement 2020-05-23 11:43:40 +06:00
Ilya Shurumov
cfe66fa34a - disable PGXP lookup for sky
- disable High Detail for tiles
2020-05-23 01:35:53 +06:00
Ilya Shurumov
964b97c702 - [EMU] improve PGXP 2020-05-22 22:38:52 +06:00
Ilya Shurumov
8a9ccffef4 - half-float super-optimized PGXP implementation with perspective texture correction 2020-05-22 21:42:36 +06:00
Ilya Shurumov
4024315952 - fix refactoring bug in CalculateVolume 2020-05-22 19:22:53 +06:00
Ilya Shurumov
dee23f3fc0 - split GTE ratan, rcossin, sqrt tables
- GTE_EXTERNAL if you don't want in-house GTE (example - Mednafen)
2020-05-22 16:28:53 +06:00
Ilya Shurumov
ec980a8966 - don't use GTEREG.H 2020-05-22 16:25:45 +06:00
Ilya Shurumov
468e153672 - use GTE macros everywhere instead of direct register access 2020-05-22 16:25:24 +06:00
Ilya Shurumov
51a7512123 - Cutscene recorder command-line feature
- implement LoadCutsceneAsReplay
- implement cutscene recorder under CUTSCENE_RECORDER define
2020-05-21 03:37:33 +06:00
Ilya Shurumov
c1e923a4e2 - implement LoadReplayFromBuffer, LoadAttractReplay 2020-05-21 00:30:02 +06:00
Ilya Shurumov
b5b05d5a81 - again fix 2020-05-20 21:58:12 +06:00
Ilya Shurumov
abda37108c - fix some frontend bugs
- fix the fixed
2020-05-20 21:46:52 +06:00
Ilya Shurumov
7a1578c031 - fix cutscene loading bug 2020-05-20 21:34:30 +06:00
Ilya Shurumov
fd7b4f3ec3 - more fixed numbers
- fix cutscene bug with player
2020-05-20 21:34:19 +06:00
Ilya Shurumov
461dc5c59f - replace >> 12 and / 4096 with FIXED(v) macro 2020-05-20 19:48:19 +06:00
Ilya Shurumov
bcb8d3761a - make PADRECTORD.analogue field unsigned
- bit more prerry code
2020-05-20 17:06:49 +06:00
Ilya Shurumov
d4e4421418 - [EMU] Analogue pad initialization to center 2020-05-20 16:56:01 +06:00
Ilya Shurumov
171a40c886 - implement cjpRecord, Put, ControlReplay 2020-05-20 14:28:23 +06:00
Ilya Shurumov
3d1bddc3cf - fix GlobalTimeStep 2020-05-20 13:33:28 +06:00
Ilya Shurumov
6ba6fc6dbe - [EMU] fix ratan_tbl
- pretty some matrix code
- fix new AddWheelForcesDriver1
2020-05-20 13:17:57 +06:00
Ilya Shurumov
c5a8d26f09 - fix PingOutAllCivCarsAndCopCars 2020-05-20 01:38:37 +06:00
Ilya Shurumov
9d98e41d98 - implement InitDirectorVariables, RecordCamera, FindNextChange, CheckCameraChange, FindFreeCamera, deleteCamera, DelteAllCameras
- fix TriggerInGameCutsceneSystem
2020-05-20 01:02:37 +06:00
Ilya Shurumov
91146e549d - pretty ProcessCarPad
- disable debug fly during cutscenes
2020-05-20 01:01:22 +06:00
Ilya Shurumov
1a621470ea - implement cjpPlay, Get, 2020-05-20 01:00:39 +06:00
Ilya Shurumov
54aa302de6 - fix StepGame bugs
- allow pause during cutscenes
2020-05-20 01:00:18 +06:00
Ilya Shurumov
c4351f63e2 - fix padid everywhere
- fix CalcInGameCutsceneSize
2020-05-19 22:57:43 +06:00
Ilya Shurumov
cb47c23152 - prettier TriggerInGameCutsceneSystem 2020-05-19 21:46:05 +06:00
Ilya Shurumov
e5291cbbdd - fix InitPadRecording reversing bug 2020-05-19 21:45:40 +06:00
Ilya Shurumov
0cd7771884 - fix FEPrintString bug 2020-05-19 21:45:27 +06:00
Ilya Shurumov
3dda36a8a1 - fix FindMissionLadderPos & RunMissionLadder reversing bugs 2020-05-19 21:45:17 +06:00
Ilya Shurumov
900d268097 - fix bugs? 2020-05-19 01:44:18 +06:00
Ilya Shurumov
9aaa466185 - implement SilenceThisCar, AdjustPlayerCarVolume 2020-05-19 01:44:06 +06:00
Ilya Shurumov
5c13865d69 - implement IsMovingCamera, InvalidCamera, FindNextCutChange, SetPlaybackCamera, GetPingInfo 2020-05-19 01:10:55 +06:00
Ilya Shurumov
d723e73424 - implement CutsceneCameraChange 2020-05-19 00:51:17 +06:00
Ilya Shurumov
735b7de677 - implement PingOutAllCivCarsAndCopCars
- fix roadblockDelayDiff var
2020-05-19 00:50:58 +06:00
Ilya Shurumov
d6485a9bb3 - implement HandleInGameCutscene, TriggerInGameCutscene, CalcInGameCutsceneSize, ReleaseInGameCutscene, TriggerInGameCutsceneSystem, LoadCutsceneToReplayBuffer, LoadCutsceneToBuffer, LoadCutsceneInformation, FreeCutsceneBuffer, IsCutsceneResident 2020-05-19 00:34:26 +06:00
Ilya Shurumov
847e34f83e - implement InitPadRecording, AllocateReplayStream 2020-05-19 00:32:30 +06:00
Ilya Shurumov
647bd655cc - implement MissionCityScreen, MissionSelectScreen
- replay buffer allocation
- preparations
- bug fixes
2020-05-19 00:32:09 +06:00
Ilya Shurumov
140f68b791 - implement ShowCutsceneError, LoadInGameCutscene, DestroyPlayer, SetNullPlayerDontKill, SetNullPlayer
- pretty TriggerChase, PreLoadInGameCutscene
2020-05-18 18:12:37 +06:00
Ilya Shurumov
acb031a603 - implement InitCyclingPals, InitAnimatingObjects, InitSpooledAnimObj, DrawAnimatingObject, int_garage_door 2020-05-18 18:11:07 +06:00
Ilya Shurumov
eb2bb1ce0c - fix bug in SwapDrawBuffers2 2020-05-18 18:10:12 +06:00
Ilya Shurumov
9d2e516e9f - implement _MatrixRotate, Calc_Object_MatrixYZX 2020-05-18 12:34:42 +06:00
Ilya Shurumov
d774bdc5b9 - [EMU] implement ApplyMatrix*, ApplyRotMatrix, ScaleMatrix
- [EMU] pretty RotMatrix, TransMatrix
2020-05-18 12:34:10 +06:00
Ilya Shurumov
1d443be09c - pretty GetPlayerId, CollisionSound, DamageCar3D 2020-05-18 11:40:17 +06:00
Ilya Shurumov
f4049bd3e7 - fix Tanner getting into car too quick 2020-05-18 11:39:39 +06:00
Ilya Shurumov
bf1de357ed - fix FindPointOfCollision 2020-05-18 00:03:34 +06:00
Ilya Shurumov
25ad47c9ed - [EMU] [SPU-AL] fixed looped sound clicking
- Mission complete "Next Mission" item is "Continue"
2020-05-17 23:45:53 +06:00
Ilya Shurumov
cdebd1a8b2 - implement FindPointOfCollision, GetNextWord
- fix PrintStringBoxed
2020-05-17 14:21:57 +06:00
Ilya Shurumov
7084203410 - implement InitInGameCutsceneVariables, TriggerChase 2020-05-17 13:47:23 +06:00
Ilya Shurumov
5dcadac032 - implement PrintStringBoxed 2020-05-17 13:46:58 +06:00
Ilya Shurumov
3392b10e16 - implement ControlCopDetection, InitFelonyData, 2020-05-17 13:46:45 +06:00
Ilya Shurumov
d2b98e49c6 - implement ControlSpeech 2020-05-17 12:51:47 +06:00
Ilya Shurumov
3ab4f4b856 - implement ControlNumberOfCops 2020-05-17 12:40:41 +06:00
Ilya Shurumov
f6f95348db - implement ControlCops, CopControl, InitCopData, 2020-05-17 12:36:01 +06:00
Ilya Shurumov
f10fd07dd8 - implement InitCopState, InitCops 2020-05-17 12:26:48 +06:00
Ilya Shurumov
2b4ba1b197 - implement Swap2Cars 2020-05-17 12:25:59 +06:00
Ilya Shurumov
9caf43a85c - stub PATHFIND.C 2020-05-17 12:25:21 +06:00
Ilya Shurumov
b9037a20c3 - implement MRGetVariable, MRSetVariable
- pretty MRCommand
2020-05-17 01:17:30 +06:00
Ilya Shurumov
f9665389e5 - implement MRProcessTarget, MRRequestCar
- pretty LoadMission
2020-05-17 01:07:19 +06:00
Ilya Shurumov
2797e4dc80 - implement Long2DDistance 2020-05-17 01:06:42 +06:00
Ilya Shurumov
6633d98ee5 - implement HandleMissionThreads, MRCommand, TargetComplete, TargetActive, 2020-05-17 00:11:23 +06:00
Ilya Shurumov
015e4e1ed0 - implement CreateStationaryCivCar 2020-05-17 00:10:40 +06:00
Ilya Shurumov
2746e080d2 - implement MROperator 2020-05-16 23:18:27 +06:00
Ilya Shurumov
8373100a8c - fix IHaveThePower, PedGetOutCar, SetupTannerSitDown, DeActivatePlayerPedestrian 2020-05-16 23:10:15 +06:00
Ilya Shurumov
d92663fe23 - improved area data loading 2020-05-16 22:44:07 +06:00
Ilya Shurumov
356c5f6c88 - implement MRCommitThreadGenocide, MRStartThread, MRFunction, MRHandleCarRequests, MRCreateCar, MRCancelCarRequest, SetPlayerMessage, SetMissionMessage, PauseMissionTimer, PreProcessTargets, HandleGameOver, CompleteAllActiveTargets, SetMissionComplete, SetMissionOver, ActivateNextFlag, CalcLapTime, SetCarToBeStolen, MakePhantomCarEqualPlayerCar
- bunch of pretty mission code
2020-05-16 21:43:19 +06:00
Ilya Shurumov
6f84f216d6 - fix sky render 2020-05-16 21:39:18 +06:00
Ilya Shurumov
b0d2b3b83c - fix sdGetCell and sdGetBSP 2020-05-16 21:39:08 +06:00
Ilya Shurumov
69603d64c2 - fix mistake 2020-05-16 19:20:58 +06:00
Ilya Shurumov
ac84cb24bd - proper spooled models freeing 2020-05-16 18:33:44 +06:00
Ilya Shurumov
6c7e39bc71 - fix ProcessCarModelLump bug sowed by me 2020-05-16 16:07:52 +06:00
Ilya Shurumov
012f87bd62 - USE_CRT_MALLOC - use dynamic malloc whenever possible
- fix buildNewCarFromModel bug
2020-05-16 15:56:08 +06:00
Ilya Shurumov
a8ee800d3e - pretty sdGetBSP, FindRoadInBSP
- more pretty RoadInCell, sdGetCell
2020-05-16 15:31:55 +06:00
Ilya Shurumov
736f8bd09f - implement SetBasePos
- fix camera bug
2020-05-16 15:30:05 +06:00
Ilya Shurumov
a89332db0e - implement CarHasSiren, DealWithHorn 2020-05-16 00:12:44 +06:00
Ilya Shurumov
8b580f41fe - fix sound channel array indexing bugs
- more pretty code
2020-05-15 23:14:23 +06:00
Ilya Shurumov
5c011ebdbd - [EMU] perfect vblank, eliminates WaitForTimestep hack in DrawGame 2020-05-15 22:38:03 +06:00
Ilya Shurumov
a93f34340e - [EMU] proper VSync callback emulation with VBlank emulation 2020-05-15 21:04:26 +06:00
Ilya Shurumov
fce7017c3b - [EMU] [SPU-AL] stop source before updating sample 2020-05-15 21:03:32 +06:00
Ilya Shurumov
465548c9a1 - implement RunMissionLadder 2020-05-15 21:02:45 +06:00
Ilya Shurumov
6f6194bd23 - fix XMPLAY bug again 2020-05-15 19:24:32 +06:00
Ilya Shurumov
8bcd156565 - fix bugs in DisplayMissionTitle 2020-05-15 19:24:13 +06:00
Ilya Shurumov
e056c7f587 - implement ProcessJunctionsDriver2Lump 2020-05-15 19:23:41 +06:00
Ilya Shurumov
44791bc468 - implement SetConfusedCar 2020-05-15 18:41:42 +06:00
Ilya Shurumov
98c58126bc - implement MakeTheCarShutUp, HaveCarSoundStraightAway, RequestSlightPauseBeforeCarSoundStarts 2020-05-15 18:24:56 +06:00
Ilya Shurumov
1ffc429023 - fix pedestrian bugs 2020-05-15 18:21:21 +06:00
Ilya Shurumov
841855a7b4 - implement ChangePedPlayerToCar 2020-05-15 18:04:48 +06:00
Ilya Shurumov
07b893bb3a - implement TannerStuckInCar 2020-05-15 17:50:23 +06:00
Ilya Shurumov
5c0166ba6e - fix SetupGetInCar 2020-05-15 17:50:05 +06:00
Ilya Shurumov
681747cb2e - implement ChangeCarPlayerToPed, FindClosestCar, TannerCanEnterCar
- fix PlaceCameraAtLocation
2020-05-15 17:38:32 +06:00
Ilya Shurumov
168a77735d - implement IHaveThePower easter egg 2020-05-15 17:16:18 +06:00
Ilya Shurumov
4b43aeffb2 - implement ProcessTannerPad 2020-05-15 17:04:48 +06:00
Ilya Shurumov
b573cd702b - implement FindTannerASeat, add_seated,, CalculatePedestrianInterest, PedSurfaceType, ProcessChairLump 2020-05-15 16:54:05 +06:00
Ilya Shurumov
fac5f92a31 - implement CalcPedestrianDirection, IsPavement, SetPedestrianTurn, FindSeated 2020-05-15 16:41:49 +06:00
Ilya Shurumov
bb51019d59 - implement AnimatePed, DeActivatePedestrian, SetupCivPedRouteData, PingOutPed, SetupCivJump, CivPedJump, SetupCivPedWalk, CivPedWalk, CivPedSit, HandlePedestrians
- pretty GetSurfaceIndex
2020-05-15 16:33:29 +06:00
Ilya Shurumov
cdd18b3fb6 - implement PedPressButton, SetupTannerSitDown, TannerCameraHandler, TannerSitDown 2020-05-15 16:00:42 +06:00
Ilya Shurumov
f8b72f3441 - implement PedGetOutCar, SetupGetOutCar, SetupGetInCar, PedGetInCar, SetupPressButton 2020-05-15 15:53:03 +06:00
Ilya Shurumov
dae3fe10b4 - implement PedDoNothing, PedUserRunner, PedUserWalker, PedCarryOutAnimtation 2020-05-15 15:36:25 +06:00
Ilya Shurumov
b0c65729dd - implement SetupWalker, SetupRunner, SetupBack, CivGetIn, CopStand 2020-05-15 15:18:42 +06:00
Ilya Shurumov
a08b3416e0 - implement TannerActionHappening, ControlPedestrians, SetupDoNowt 2020-05-15 15:06:27 +06:00