Commit Graph

912 Commits

Author SHA1 Message Date
Ilya Shurumov
8e8669d828 - implement SetPadVibration, StopPadVibration 2020-08-29 00:32:16 +06:00
Ilya Shurumov
aabe4946ea - implement DoMissionSound 2020-08-28 21:22:27 +06:00
Ilya Shurumov
847766567c - fix Lead AI FakeMotion not moving car
- fix Lead AI crashes
2020-08-28 01:27:47 +06:00
Ilya Shurumov
d38fdf18f0 - implement UpdateRoadPosition 2020-08-28 00:54:34 +06:00
Ilya Shurumov
ee4439def1 - implement CheckCurrentRoad 2020-08-28 00:25:49 +06:00
Ilya Shurumov
83f16c37a3 - implement DrawStopZone 2020-08-27 23:53:09 +06:00
Ilya Shurumov
7195a846bd - implement FakeMotion, BlockToMap 2020-08-27 23:02:43 +06:00
Ilya Shurumov
d9cb0090f8 - PlotBuildingModelSubdivNxN - simplify cycle, fix Z subdivision 2020-08-27 12:35:46 +06:00
Ilya Shurumov
a5a7bc3501 - completely rewrote PlotBuildingModelSubdivNxN 2020-08-27 02:09:50 +06:00
Ilya Shurumov
5bb021fa6b Merge branch 'Fireboyd78-refactor' 2020-08-27 00:07:52 +06:00
Ilya Shurumov
3b231bcd87 - [EMU] increased vertex count from 12040 to 32768
- increased game polygon buffer sizes for 32 bit mode
2020-08-27 00:02:09 +06:00
Fireboyd78
934132c25f Fixed strange bugs in FEPrintString caused by refactor. 2020-08-26 11:00:14 -07:00
Fireboyd78
c419586ecc Fix PrintStringBoxed bugs due to bad merge. 2020-08-26 10:33:44 -07:00
Ilya Shurumov
49e297e7f0 - implement LeadPadResponse 2020-08-26 23:21:43 +06:00
Ilya Shurumov
0429b42d2d - implement LeadUpdateState 2020-08-26 23:08:22 +06:00
Fireboyd78
de90826751 Refactor: PrintStringBoxed, GetNextWord 2020-08-26 09:57:35 -07:00
Ilya Shurumov
254ab5d1df - implement SetTarget, SelectExit, FreeRoamer 2020-08-26 22:53:55 +06:00
Fireboyd78
360a051190 Refactor: Handle321Go 2020-08-26 09:52:33 -07:00
Fireboyd78
192dbb237c Refactor: DrawMission 2020-08-26 09:52:27 -07:00
Fireboyd78
475d19db93 HACK: Prevent a strange crash related to replay cameras. 2020-08-26 09:41:47 -07:00
Fireboyd78
f4cf0d3f75 Refactor: FEMAIN.C 2020-08-26 09:41:47 -07:00
Fireboyd78
f1d81f3d5b Refactor: XAPLAY.C 2020-08-26 09:41:47 -07:00
Fireboyd78
da0a5f6779 Refactor: SPOOL.C 2020-08-26 09:41:47 -07:00
Fireboyd78
59c99b16fb Refactor: LOADVIEW.C 2020-08-26 09:41:47 -07:00
Fireboyd78
1230c08b85 Refactor: SEARCH.C 2020-08-26 09:41:47 -07:00
Fireboyd78
609c2f3e19 Refactor: MAIN.C 2020-08-26 09:41:47 -07:00
Fireboyd78
90909419da Refactor: ENVIRO.C 2020-08-26 09:41:47 -07:00
Ilya Shurumov
51407a05a5 - implement IsOnMap 2020-08-26 22:10:41 +06:00
Ilya Shurumov
3898bdb137 - implement PosToIndex 2020-08-26 21:58:59 +06:00
Ilya Shurumov
7f8f7fdfb4 - implement leadRand, InitLead 2020-08-26 21:46:39 +06:00
Ilya Shurumov
a664c3d075 - implement DisplayWater 2020-08-26 21:24:59 +06:00
Ilya Shurumov
9b03ad9363 - implement CalcReplayDataSize, SaveReplayData, LoadReplayData, CalcGameDataSize, SaveGameData, LoadGameData, CalcConfigDataSize, SaveConfigData, LoadConfigData 2020-08-26 20:56:22 +06:00
Ilya Shurumov
be5bf7e558 - fix primitive buffer size
- add drawMesh backface culling
2020-08-26 19:50:03 +06:00
Ilya Shurumov
851779b397 - implement SubdivNxM, correct DrawTILES 2020-08-26 19:00:38 +06:00
Ilya Shurumov
a753deef85 - subdivision option for RenderModel 2020-08-26 18:32:50 +06:00
Ilya Shurumov
fe6ea08198 - bit prettier MangleWheelModels 2020-08-26 18:24:51 +06:00
Ilya Shurumov
598a95b1bf - implement ColourCycle
- pretty FindSmashableObjects
2020-08-26 18:24:40 +06:00
Ilya Shurumov
f5eaf84796 - [EMU] implement DR_LOAD command 2020-08-26 18:23:35 +06:00
Ilya Shurumov
abe987a9b2 - fix popNode hopefully
- faster free camera
2020-08-25 22:18:14 +06:00
Ilya Shurumov
12c1554e2c - implement PSX LoadFile and LoadfileSeg 2020-08-25 21:40:39 +06:00
Ilya Shurumov
e69482f8ae - implement SetCamera 2020-08-25 21:14:29 +06:00
Ilya Shurumov
d60ba403a5 - [EMU] implement MulRotMatrix 2020-08-25 21:14:18 +06:00
Ilya Shurumov
d3ca953507 - implement SetUpEvents 2020-08-25 20:50:21 +06:00
Ilya Shurumov
487fd0b9fa - implement EventSurface 2020-08-25 20:23:12 +06:00
Ilya Shurumov
144fa32dcf - implement SpecialCamera 2020-08-25 20:05:13 +06:00
Ilya Shurumov
e25d3bfcbf - implement DetonatorTimer 2020-08-25 19:27:47 +06:00
Ilya Shurumov
31c2c46aad - implement InitEventCamera, ResetEventCamera, MakeEventTrackable, TriggerDoor, OffsetTarget, ScreenShake 2020-08-25 19:12:33 +06:00
Ilya Shurumov
b0ebe9409e - implement InitializeMissionSouind, SetMSoundVar 2020-08-25 19:10:25 +06:00
Ilya Shurumov
8592e46f20 - fix compile errors 2020-08-25 14:29:14 +06:00
Ilya Shurumov
dfc3048c96 - added debug free camera 2020-08-25 14:18:56 +06:00
Ilya Shurumov
5ea7349391 - [EMU] added debug mouse support 2020-08-25 14:18:32 +06:00
Ilya Shurumov
eab7df859e - refactored PrintScaledString 2020-08-25 12:31:02 +06:00
Ilya Shurumov
07eacdf284 - post-fix fix 2020-08-24 21:01:57 +06:00
Ilya Shurumov
660aeb26a9 - fix lineClear bugs 2020-08-24 17:36:17 +06:00
Ilya Shurumov
35d8997353 - implement ShowIcons
- fix bugs
2020-08-24 16:49:20 +06:00
Ilya Shurumov
3d0b463ffb - re-implement lineClear 2020-08-24 16:02:00 +06:00
Ilya Shurumov
de57712e5f - reimplement RaySlabsIntersection, add more collision debug display 2020-08-24 15:10:09 +06:00
Ilya Shurumov
8ec095a7b0 - fix buildNewCarFromModel (FT3 polygons) 2020-08-23 00:33:15 +06:00
Ilya Shurumov
511eed26a7 - initialize 'ends' and 'dirs' 2020-08-22 23:05:45 +06:00
Ilya Shurumov
a1f220c6e4 - fix CopControl1 not getting unstuck 2020-08-22 22:39:15 +06:00
Ilya Shurumov
5ccd011d12 - fix spooling debug messages 2020-08-22 21:45:59 +06:00
Ilya Shurumov
299e2b7133 - fix mistake in addCivs 2020-08-22 21:38:12 +06:00
Ilya Shurumov
e4b1d3840b - improve backgrounds for CityCutOffScreen 2020-08-22 21:25:39 +06:00
Ilya Shurumov
e27a7bf5c3 - implement CentreScreen, CopDiffLevelScreen, VibroOnOffScreen, SetVolumeScreen
- fix crash in frontend when no buttons displayed (controller screen)
2020-08-22 21:14:44 +06:00
Ilya Shurumov
4e0294419d - fix CopControl1 reversing bugs and pretty some code 2020-08-22 19:51:28 +06:00
Ilya Shurumov
1aced28eb1 - fix CopControl1, fix sqtbl sign for FindCost 2020-08-22 17:29:27 +06:00
Ilya Shurumov
490f3aaee5 - implement CopControl1 2020-08-22 16:58:53 +06:00
Ilya Shurumov
2a10ca41e4 - implement iterate 2020-08-22 16:33:50 +06:00
Ilya Shurumov
2b020ba382 - implement UpdateCopMap 2020-08-22 16:29:20 +06:00
Ilya Shurumov
85ec822d14 - implement getInterpolatedDistance 2020-08-22 16:00:42 +06:00
Ilya Shurumov
951f0a8500 - implement addCivs, getHeadingToPlayer 2020-08-22 15:53:53 +06:00
Ilya Shurumov
d37185fc8a - implement blocked, setDistance 2020-08-22 15:20:43 +06:00
Ilya Shurumov
244d8ccb01 - implement BloodyHell 2020-08-22 15:15:47 +06:00
Ilya Shurumov
6d1a10cd1a - implement popNode, WunCell, InvalidateMap 2020-08-22 15:13:09 +06:00
Ilya Shurumov
fb5d78bc70 - immediate fix of stupid bug 2020-08-22 14:21:47 +06:00
Ilya Shurumov
78fc2ccc75 Merge branch 'Fireboyd78-master' 2020-08-22 14:18:14 +06:00
Ilya Shurumov
192b5e516b - minor comment about cheat 2020-08-22 14:18:02 +06:00
Ilya Shurumov
9bec9f972e Merge branch 'master' of https://github.com/Fireboyd78/REDRIVER2 into Fireboyd78-master 2020-08-22 14:14:26 +06:00
Ilya Shurumov
6009f10cf4 - correct setMem8, setMem16 2020-08-22 14:12:32 +06:00
Ilya Shurumov
a9f2f8baac - implement InitPathFinding 2020-08-22 14:10:46 +06:00
Ilya Shurumov
ada773975c - move secret car fun cheat menu item upper
- city backgrounds only for PC
2020-08-22 13:57:32 +06:00
Fireboyd78
f1dbc2c3fd Make 'Secret Car Fun' force us into the secret car.
- Also restore our initially selected car ;)
2020-08-22 00:29:17 -07:00
Fireboyd78
6c83a46276 Refactor: CleanModelSpooled, DamagedModelSpooled, LowModelSpooled, CleanSpooled
- Fixed memory read/write errors (haven't run into issues yet!)

- Made CleanSpooled a bit easier to read
2020-08-21 23:57:33 -07:00
Fireboyd78
a632cdc0ec Clean: ready_cb_misc 2020-08-21 23:55:34 -07:00
Fireboyd78
6ffad55fa8 Implement: data_cb_soundbank, ready_cb_soundbank 2020-08-21 23:55:13 -07:00
Fireboyd78
77eeb8a09a Turn off spooler debugging in release builds.
- [PC] Remove redundant call to WaitForCloseLid
2020-08-21 23:50:03 -07:00
Fireboyd78
0c2afe8007 Make the Take a Ride screen have more pizazz to it. 2020-08-21 23:48:17 -07:00
Fireboyd78
7073dcfc74 Add a very special 'Secret Car Fun' mode ;) 2020-08-21 23:46:41 -07:00
Fireboyd78
0909ab3336 Merge branch 'master' of https://github.com/SoapyMan/REDRIVER2 2020-08-21 16:40:28 -07:00
Fireboyd78
3f8495900e Friggin' merge conflicts! 2020-08-21 16:39:23 -07:00
Fireboyd78
2ecc0b3619 Refactor: CityCutOffScreen 2020-08-21 16:31:18 -07:00
Fireboyd78
a1d16f7488 Implement: CutSceneCitySelectScreen
- [PC] Blocked out code that tries to redraw the screen
2020-08-21 16:31:07 -07:00
Fireboyd78
3f573381bc Refactor: MissionCityScreen
- [PC] Blocked out code that tries to redraw the screen
2020-08-21 16:30:15 -07:00
Fireboyd78
62e94e337a Refactor: CarSelectScreen
- [PC] Blocked out code that tries to redraw the screen
2020-08-21 16:23:53 -07:00
Fireboyd78
977859d0b5 Refactor + Fix: DoFrontEnd
- [PC] Fixed a bug where the screen would draw too many times
2020-08-21 16:22:16 -07:00
Fireboyd78
f16f189285 Refactor: HandleKeyPress 2020-08-21 16:20:31 -07:00
Fireboyd78
0548a79326 Clean: DrawScreen 2020-08-21 16:16:04 -07:00
Fireboyd78
2456d7007d Fixed a bug in DrawScreen caused by refactoring. 2020-08-21 16:14:36 -07:00
Fireboyd78
be7be4c828 Clean: SpecClutsSpooled 2020-08-21 16:13:47 -07:00
Fireboyd78
4285bf9564 Fixed a bug in SpecClutsSpooled caused by refactoring. 2020-08-21 16:13:15 -07:00
Ilya Shurumov
15e6cb403f - fix DrawOverheadMap, pretty and fix InitOverheadMap 2020-08-21 21:47:08 +06:00
Ilya Shurumov
0e55c08d33 - implement DrawOverheadMap
- pretty ProcessOverlayLump
2020-08-21 19:17:25 +06:00
Ilya Shurumov
81b4a4db27 - implement LoadMaptile 2020-08-21 17:35:53 +06:00
Ilya Shurumov
64428ef4a0 - adding RNC2 code, implement UnpackRNC 2020-08-21 17:31:54 +06:00
Ilya Shurumov
b5a3a3ae5c Merge branch 'master' of https://github.com/Fireboyd78/REDRIVER2 into Fireboyd78-master 2020-08-21 11:02:55 +06:00
Ilya Shurumov
8cf61b6cac - fix SpecClutsSpooled refactoring error 2020-08-21 10:40:54 +06:00
Fireboyd78
c58690e3a4 Refactor: MissionCityScreen, MissionSelectScreen
- Better code flow for handling button input

- Fixed 'bP' being used incorrectly
2020-08-20 21:20:03 -07:00
Fireboyd78
26379945cc Refactor: FEInitCdIcon 2020-08-20 13:53:46 -07:00
Fireboyd78
bca2617df4 Clean: DisplayScoreTable - remove casts, change hex to decimal 2020-08-20 13:34:04 -07:00
Fireboyd78
f411d084f2 Refactor: MissionCityScreen 2020-08-20 13:27:57 -07:00
Fireboyd78
f914cf6053 Refactor: MissionSelectScreen 2020-08-20 13:20:53 -07:00
Fireboyd78
6286cf4fbb Clean: FEPrintString - use GTE macros 2020-08-20 13:20:18 -07:00
Fireboyd78
7cec4caca4 Refactor: NewSelection 2020-08-20 13:15:40 -07:00
Fireboyd78
a61fc7cad8 Clean: ReInitScreens 2020-08-20 13:15:04 -07:00
Fireboyd78
84b6e7a28d Refactor: SetupExtraPoly 2020-08-20 13:13:40 -07:00
Fireboyd78
fa3ddeb8ce Refactor: DisplayOnScreenText 2020-08-20 13:13:00 -07:00
Fireboyd78
6e9191e733 Refactor: DrawScreen 2020-08-20 13:12:25 -07:00
Fireboyd78
e238d3234f Clean: SetupScreenSprts 2020-08-20 13:11:59 -07:00
Fireboyd78
3d9ab1110b Refactor: SetupBackgroundPolys 2020-08-20 13:03:40 -07:00
Fireboyd78
dbee3aa19a Refactor: LoadBackgroundFile 2020-08-20 13:03:05 -07:00
Fireboyd78
052de1f1c5 Refactor: LoadFrontendScreens 2020-08-20 13:02:49 -07:00
Fireboyd78
1ee8d21d98 Clean: SetVariable 2020-08-20 13:00:39 -07:00
Fireboyd78
191d3652ff Clean: ReloadIcons 2020-08-20 13:00:11 -07:00
Fireboyd78
7da64f112c Refactor: LoadTPageAndCluts 2020-08-20 12:59:43 -07:00
Fireboyd78
930afe5f9e Refactor: IncrementClutNum 2020-08-20 12:59:25 -07:00
Fireboyd78
8c31ea8a5d Refactor: SpecClutsSpooled 2020-08-20 12:58:46 -07:00
Fireboyd78
0191ef2759 FIxed the bitmask for 'x' param in dumpTPage macro. 2020-08-20 12:54:18 -07:00
Ilya Shurumov
c85f0b8b9a - custom makeMesh/drawMesh subdivision 2020-08-21 00:34:36 +06:00
Ilya Shurumov
ec87cc04f1 - implement animate_garage_door 2020-08-20 19:53:58 +06:00
Ilya Shurumov
642701a0a4 - implement CellEmpty, GlobalPositionToCellNumber, lineClear 2020-08-20 19:39:14 +06:00
Ilya Shurumov
c22389b767 - implement AddLightEffect 2020-08-20 19:09:28 +06:00
Ilya Shurumov
395c05af9e - implement damage_lamp, RoundShadow 2020-08-20 19:09:16 +06:00
Ilya Shurumov
a892e9abc8 - implement AddTrafficLight 2020-08-20 18:25:54 +06:00
Ilya Shurumov
c81dcfffd4 - implement AddSmallStreetLight, ShowLight1, animate_object
- fix buginDrawAnimatingObject
2020-08-20 18:25:34 +06:00
Ilya Shurumov
87d4134d62 - pretty HanfleMissionThreads, GetFirstPackedCop 2020-08-20 17:19:37 +06:00
Ilya Shurumov
8b91a1e8d7 - attempt to fix Havana3DOcclusion 2020-08-14 00:42:06 +06:00
Ilya Shurumov
14f7cb0c0f - fix CopIndicator (invalid OT) 2020-08-13 23:09:00 +06:00
Ilya Shurumov
76599ed06a - fix GetNextRoadInfo (civ AI stopping bug) 2020-08-13 22:45:08 +06:00
Ilya Shurumov
73c7010cce - bug fix in human-readable FindRoadBSP 2020-08-13 22:21:07 +06:00
Ilya Shurumov
3b66b96e7e - fix bugs found by ASan 2020-08-13 22:08:42 +06:00
Ilya Shurumov
9c86706bd9 - more bug fixes with ASan
- different version title screens
2020-08-11 22:08:07 +06:00
Ilya Shurumov
0dd59bc5ec - fixes thanks to Google ASan 2020-08-11 20:40:06 +06:00
Ilya Shurumov
c5bbfe5a2c - fix SwirlLeaves 2020-08-11 20:38:49 +06:00
Ilya Shurumov
fd012c95d7 - fix cutscene playback inconsistency 2020-08-10 22:10:01 +06:00
Ilya Shurumov
27f744b033 - fix DrawMapPSX adding ground_debris 2020-08-10 21:42:31 +06:00
Ilya Shurumov
f2131cc4d4 - fix AddGroundDebris height error 2020-08-10 21:42:11 +06:00
Ilya Shurumov
2bef761618 - fix DisplayDebris indexing bug, optimize 2020-08-10 21:08:57 +06:00
Ilya Shurumov
dbab6de536 - ensure game physics consistency between debug and release by changing optimization options 2020-08-10 13:32:01 +06:00
Ilya Shurumov
0aecea7ccf - [XMPLAY] disable temporary fix 2020-08-10 13:30:54 +06:00
Ilya Shurumov
3d57000b49 - implement AddLeaf, SwirlLeaves, AddGroundDebris 2020-08-08 20:15:29 +06:00