Commit Graph

639 Commits

Author SHA1 Message Date
Ilya Shurumov
d311765db7 - fix SetupDrawBuffers bug 2020-05-30 20:25:54 +06:00
Ilya Shurumov
0c321a5d0c - pretty some target code 2020-05-30 20:25:25 +06:00
Ilya Shurumov
bc61a1a631 - [EMU] support DR_AREA and scissor tests 2020-05-30 20:25:05 +06:00
Ilya Shurumov
6c8d37216f - implement TargetArrow, DrawOverheadMap (partially) 2020-05-30 17:40:17 +06:00
Ilya Shurumov
76f1b34222 - implement DrawPlayerDot 2020-05-30 17:39:41 +06:00
Ilya Shurumov
3fefa792d2 - implement DrawFullscreenMap, FlashOverheadMap 2020-05-30 15:53:49 +06:00
Ilya Shurumov
b119e50c2f - implement PauseMap 2020-05-30 15:53:05 +06:00
Ilya Shurumov
58c54590fb - fix PrintString 2020-05-30 15:52:56 +06:00
Ilya Shurumov
469b50f66e - implement DrawSightCone 2020-05-30 14:42:46 +06:00
Ilya Shurumov
48eee204c0 - implement SetFullscreenMapMatrix
- fix WorldToFullscreenMap2
2020-05-30 14:36:05 +06:00
Ilya Shurumov
f5998add64 - implement WorldToFullscreenMap, WorldToFullscreenMap2 2020-05-30 14:29:32 +06:00
Ilya Shurumov
c167c4469e - implement DrawCopIndicators, CopIndicator
- some cleanup
2020-05-30 14:29:08 +06:00
Ilya Shurumov
9ed019c925 - implement UpdateFlashValue, DrawTargetBlip, DrawBigCompass 2020-05-30 14:01:36 +06:00
Ilya Shurumov
8905d1e1bd - implement RotTrans
- misc fix
2020-05-30 13:35:34 +06:00
Ilya Shurumov
1954c77d60 - implement SetMapPos, draw_box, DrawN, DrawCompass 2020-05-30 13:35:07 +06:00
Ilya Shurumov
5eb3fc9120 - implement InitNodeList, AttemptUnpark 2020-05-29 23:28:50 +06:00
Ilya Shurumov
fcc3cd7cc3 - pretty InitSpecSpool, GetPingInfo, GameInit, StepGame 2020-05-29 22:44:33 +06:00
Ilya Shurumov
9b5b6c4090 - limit revs in ControlCarRevs
- pretty StepCars
2020-05-29 22:43:45 +06:00
Ilya Shurumov
0aa95c603c - implement NotTravellingAlongCurve, CivCarFX
- pretty PingInCivCar
2020-05-29 22:42:50 +06:00
Ilya Shurumov
df140f7fe8 - fix bug in RestoreCarPosition
- improve some code readability
2020-05-28 00:07:59 +06:00
Ilya Shurumov
b92fa7f003 - added '-replay' command line parameter 2020-05-27 22:20:52 +06:00
Ilya Shurumov
03843e1643 - implement SaveReplayToBuffer, SaveReplay (PC) 2020-05-27 22:20:33 +06:00
Ilya Shurumov
9d7dc6e3cd - try to fix CreateCivCarWotDrivesABitThenStops 2020-05-27 20:21:04 +06:00
Ilya Shurumov
71df1e3566 - implement CreateCivCarWotDrivesABitThenStops 2020-05-27 19:50:53 +06:00
Ilya Shurumov
397fe7124e - implement InitCivState, SetUpTrafficLightPhase, TrafficLightCycle, CivAccelTrafficRules 2020-05-27 19:20:55 +06:00
Ilya Shurumov
07ce568194 - implement AllocLeaf, ReleaseLeaf, AllocSmoke, ReleaseSmoke, AllocDebris, ReleaseDebris, AllocRainDrop, ReleaseRainDrop, GetDebrisColour 2020-05-27 18:41:57 +06:00
Ilya Shurumov
7717c9cf8a - implement SetUpCivCollFlags, CivAccel 2020-05-27 18:23:42 +06:00
Ilya Shurumov
103d2fbc0c - apply aspect ratio matrix to debris, flares and targets 2020-05-27 17:14:51 +06:00
Ilya Shurumov
9976ed8989 - implement Draw3DTarget, DrawTargetArrowModel, WorldToCameraPositions 2020-05-27 17:05:27 +06:00
Ilya Shurumov
258d96a8a0 - implement newPositionVisible 2020-05-27 17:04:24 +06:00
Ilya Shurumov
33cce3adc8 - implement UpdateCopSightData, FindCost, PassiveCopTasks, StoreGameFlags 2020-05-27 16:04:45 +06:00
Ilya Shurumov
c0cbc2a7f0 - implement NoteFelony, AdjustFelony 2020-05-27 16:03:46 +06:00
Ilya Shurumov
d615d47c61 - improve sky drawing code 2020-05-27 16:03:17 +06:00
Ilya Shurumov
ffd2a02ab4 - implement SetupTannerSkeleton, DrawTanner 2020-05-26 18:24:00 +06:00
Ilya Shurumov
65be109b19 - implement StoreEndData, RestoreStartData, StorePlayerPosition, RestorePlayerPosition, StoreCarPosition, RestoreCarPosition 2020-05-26 18:22:48 +06:00
Ilya Shurumov
ab6ed189f7 - implement PingOutAllSpecialCivCars 2020-05-26 18:21:52 +06:00
Ilya Shurumov
049ec30076 - add PAL/NTSC defines 2020-05-26 18:21:40 +06:00
Ilya Shurumov
b73b3f93fb - implement DestroyCivPedestrians, DrawAllPedestrians 2020-05-24 20:12:10 +06:00
Ilya Shurumov
17c0468649 - implement QuickBuildingCollisionCheck 2020-05-24 16:34:22 +06:00
Ilya Shurumov
6d685af37c - fix ActivatePlayerPedestrian 2020-05-24 15:07:53 +06:00
Ilya Shurumov
4c5f7f4874 - implement TannerCarCollisionCheck 2020-05-24 14:36:48 +06:00
Ilya Shurumov
1d55dde0b7 - implement TannerCollison and resolve NULLs
- fix CarBuildingCollision
2020-05-24 14:22:31 +06:00
Ilya Shurumov
a9ed0e5520 - implement CreatePedAtLocation 2020-05-24 14:21:19 +06:00
Ilya Shurumov
3f53f836e2 - fix DrawCar 2020-05-24 13:43:36 +06:00
Ilya Shurumov
75400561aa - implement AddCopCarLight, fix ShowCarLight
- fix DrawSprites
- [EMU] zero GTE flag in NCLIP
2020-05-24 13:43:04 +06:00
Ilya Shurumov
13f89c2807 - implement DrawBodySprite 2020-05-24 13:40:34 +06:00
Ilya Shurumov
b271bd7b86 - LoadSoundBankDynamic messages like in A 1.6 2020-05-24 13:40:04 +06:00
Ilya Shurumov
9061d775bb - replace some docop2* by corresponding gte_* macros 2020-05-24 00:25:48 +06:00
Ilya Shurumov
a96a221755 - implement GetModelVertPtr, InitTannerShadow, 2020-05-23 22:24:47 +06:00
Ilya Shurumov
de70406e79 implement InitTanner 2020-05-23 20:36:40 +06:00
Ilya Shurumov
d90c95ddb1 - implement ProcessMotionLump, SetupPedMotionData, SetupPedestrian, StoreVertexLists, SetupSkelModelPointers 2020-05-23 20:36:27 +06:00
Ilya Shurumov
8f3c6156e6 - [EMU] PGXP fixes 2020-05-23 20:35:16 +06:00
Ilya Shurumov
cde8f4f0e4 - bit of revert for PlotBuildingModelSubdivNxN 2020-05-23 12:48:32 +06:00
Ilya Shurumov
3bc733f968 - [EMU] sanitize PGXP types 2020-05-23 12:48:12 +06:00
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