Commit graph

2298 commits

Author SHA1 Message Date
Christoph Oelckers
faf98684a3 - rewrote cliptrace.
Completely new implementation reusing nothing of the original.

# Conflicts:
#	source/build/src/clip.cpp
#	source/core/gamefuncs.cpp
#	source/core/gamefuncs.h
2022-11-07 12:19:54 +01:00
Christoph Oelckers
8415079e32 - fixed compilation. 2022-11-07 12:19:54 +01:00
Christoph Oelckers
14cff92624 - floatified all clipmove input. 2022-11-07 12:19:53 +01:00
Christoph Oelckers
85182ae49a - more tinkering 2022-11-07 12:19:53 +01:00
Christoph Oelckers
57579444d3 - everything is floatified.
Unfortunately this is not working right.
2022-11-07 12:19:53 +01:00
Christoph Oelckers
9a1a15a5e2 - floatified a bit more of clipmove.
Still not working right with the remaining conversions.
2022-11-07 12:19:52 +01:00
Christoph Oelckers
fe56d2345d - always use the float version of keepaway
Does not work yet - movement is significantly different that the int version
2022-11-07 12:19:52 +01:00
Christoph Oelckers
66e6d166d6 - floatified part of clipmove that pushes the caller away from obstacles 2022-11-07 12:19:52 +01:00
Christoph Oelckers
b72283e9cb - updatesector interface cleanup. 2022-11-07 12:19:31 +01:00
Christoph Oelckers
3c72eb43f9 - split off one part of clipmove into a utility function. 2022-11-07 12:19:31 +01:00
Christoph Oelckers
f0ab74b188 - fixed coordinate setup in processClipSlopeSprite 2022-11-07 12:19:30 +01:00
Christoph Oelckers
a80589fb43 - deleted build.h and clip.h, now that both are empty. 2022-11-07 12:19:30 +01:00
Christoph Oelckers
c6e6b7c59d - got rid of the global compatibility modes and made 'precise' a parameter for clipmove.
This better reflects how this stuff gets used.
2022-11-07 12:19:30 +01:00
Christoph Oelckers
7ffa94d417 - move the clip object collection loop into its own function. 2022-11-07 12:19:29 +01:00
Christoph Oelckers
8baf4b539c - use BFSSectorSearch to drive the clipmove collection loop.
This gets rid of another bunch of both code and data.
2022-11-07 12:19:29 +01:00
Christoph Oelckers
fcdafd8a83 - moved the clip object storage into the clip object and floatified it. 2022-11-07 12:19:29 +01:00
Christoph Oelckers
c24251431c - float version of clipmove's slope sprite collector.
This could be simplified quite a bit by leveraging the info returned by GetFlatSpritePosition.
2022-11-07 12:19:18 +01:00
Christoph Oelckers
321eebc89d - float version of clipmove's floor sprite collector. 2022-11-07 12:19:17 +01:00
Christoph Oelckers
035ffdb733 - new floating point version of clipmove's wall sprite checker. 2022-11-07 12:19:17 +01:00
Christoph Oelckers
f6ad998e6b - float version of face sprite collector. 2022-11-07 12:19:17 +01:00
Christoph Oelckers
9d56bbdae9 - rewrote the remaining parts of clipmove's wall collector. 2022-11-07 12:19:08 +01:00
Christoph Oelckers
53a9dee485 - reimplemented the wall collision check for clipmove. 2022-11-07 12:18:00 +01:00
Mitchell Richters
817a0cb94a - Clamp applied mouse input to be within safe ranges to interpolate with.
* Input greater than 180 degrees in a single tic can cause the input to be applied backwards.
2022-11-07 19:38:22 +11:00
Mitchell Richters
9fbe564327 - Fix bad if statement guarding cl_clampedpitch in menu and make non-global. 2022-11-07 15:43:26 +11:00
Christoph Oelckers
912b6a47c1 - migrate cl_savedir to save_dir 2022-11-06 17:48:32 +01:00
Mitchell Richters
33d74c9009 - Default display of map name in SW to be off by default. 2022-11-06 21:59:07 +11:00
Mitchell Richters
11f279fddd - Slight input code tidy-up. 2022-11-06 21:59:07 +11:00
Mitchell Richters
033e0ea7bc - Make rotscrnang return to zero at same speed as look_ang. 2022-11-06 21:59:07 +11:00
Mitchell Richters
33e2de70a2 - Duke: Pitch-adjusted velocity for shootrpg() when free-aiming. 2022-11-06 21:59:04 +11:00
Mitchell Richters
7f124eef58 - Adjust chase-cam code to work in a pitch-corrected capacity. 2022-11-06 21:59:04 +11:00
Christoph Oelckers
41fc5660e5 - Backend update from GZDoom
* IQM enhancements
* config storage in Users
* moving of savegame filename generation to the backend
2022-11-06 11:46:26 +01:00
Christoph Oelckers
73deae88ce - fixed neartag's trace vector maintenance for sprite hits.
The trace vector needs to be shortened so that further checks only find items in front of the sprite.
2022-11-04 13:23:01 +01:00
Christoph Oelckers
93ca75e146 - got rid of the two intermediate functions between clipmove_tweak_pos and InterceptLineSegments. 2022-11-01 09:55:24 +01:00
Christoph Oelckers
01c114787c - eliminated the deprecated integer wrapper for 'inside'. 2022-11-01 08:38:40 +01:00
Christoph Oelckers
0e113dab79 - added true level compatibility map processing and deleted all related map hack code. 2022-10-31 10:45:47 +01:00
Christoph Oelckers
6586868cb8 - added the framework for scripted level compatibility patching. 2022-10-30 16:51:41 +01:00
Christoph Oelckers
0f57685f48 - updatesector interface cleanup. 2022-10-30 16:51:41 +01:00
Christoph Oelckers
0c87bcb91b - renamed getzsofslopeptr to calcSlope and removed one redundant inline. 2022-10-30 16:51:40 +01:00
Christoph Oelckers
ce4a6fc7e3 - split off one part of clipmove into a utility function. 2022-10-30 16:51:40 +01:00
Christoph Oelckers
32b2e84fdc - added episode and total episode time display to alt HUD 2022-10-30 16:51:40 +01:00
Christoph Oelckers
562c1a18c8 - integrate hud_althud into hud_size
This makes it easier to use and avoids rendering a fullscreen hud on a screen size with view border.
2022-10-30 16:51:39 +01:00
Mitchell Richters
914bec7d65 - Deduct the minimum angle epsilon from unclamped pitch ranges. 2022-10-30 16:51:39 +01:00
Christoph Oelckers
e3254a8546 - fixed an edge case in cansee where an actor placed directly on a two-sided wall would fail to register that wall's back sector. 2022-10-30 16:51:37 +01:00
Christoph Oelckers
ff71ab14ce - added a GZDoom-style alternative HUD.
So far only implemented for Blood.
2022-10-30 16:51:37 +01:00
Christoph Oelckers
a0f18c360a - made some minor edits to clipmove to get rid of a few deprecated wrapper functions. 2022-10-30 16:51:37 +01:00
Christoph Oelckers
14769e9b79 - reroute cliptestsector to checkOpening.
This required adding one more check for the 'precise' mode.
2022-10-30 16:51:36 +01:00
Christoph Oelckers
40271e15b3 - minor tweaks to checkOpening
mainly some extensions to let it replace cliptestsector.
2022-10-30 16:51:36 +01:00
Christoph Oelckers
2190499d63 - pushmove rewritten. 2022-10-30 16:51:36 +01:00
Christoph Oelckers
902f8c9706 - silenced lots of warnings for deliberate type conversions.
The ones in d_net.cpp are not in active code.
2022-10-30 16:51:35 +01:00
Christoph Oelckers
5f50ee5204 - updated CoreActor’s script exports. 2022-10-30 16:51:35 +01:00