Commit graph

2880 commits

Author SHA1 Message Date
Christoph Oelckers
4ca8015ecd SW: fixed some bad sprite definitions and cleaned out unused data 2023-11-27 16:17:31 +01:00
Christoph Oelckers
4c33f534ca fix ChangeLevel when called for ending the game. 2023-11-20 17:46:41 +01:00
Mitchell Richters
1cb3a930f2 - Fix pitch clamping for GameInput::getInput(). 2023-11-13 20:44:47 +11:00
Christoph Oelckers
7bf3c57d5d - use texture names for the panel overlays. 2023-11-12 21:54:39 +01:00
Christoph Oelckers
bf8cdad155 - use spritedefs for panel sprites. 2023-11-12 21:42:51 +01:00
Christoph Oelckers
44f8cf8db6 - deleted build.h and clip.h, now that both are empty. 2023-11-12 14:45:24 +01:00
Christoph Oelckers
43f4962561 - got rid of the global compatibility modes and made 'precise' a parameter for clipmove.
This better reflects how this stuff gets used.
2023-11-12 14:45:24 +01:00
Christoph Oelckers
5bfe62d7b6 - move the clip object collection loop into its own function. 2023-11-12 14:45:24 +01:00
Christoph Oelckers
bac866e772 - use BFSSectorSearch to drive the clipmove collection loop.
This gets rid of another bunch of both code and data.
2023-11-12 14:45:23 +01:00
Christoph Oelckers
3da1966cc7 - moved the clip object storage into the clip object and floatified it. 2023-11-12 14:45:23 +01:00
Christoph Oelckers
ea530cbc49 - float version of clipmove's slope sprite collector.
This could be simplified quite a bit by leveraging the info returned by GetFlatSpritePosition.
2023-11-12 14:45:23 +01:00
Christoph Oelckers
ede7a7ac12 - float version of clipmove's floor sprite collector. 2023-11-12 14:45:23 +01:00
Christoph Oelckers
3ea993140b - new floating point version of clipmove's wall sprite checker. 2023-11-12 14:45:23 +01:00
Christoph Oelckers
4acbfef1dc - float version of face sprite collector. 2023-11-12 14:45:23 +01:00
Christoph Oelckers
3e3df527d2 - rewrote the remaining parts of clipmove's wall collector. 2023-11-12 14:45:22 +01:00
Christoph Oelckers
9b8252e2da - reimplemented the wall collision check for clipmove. 2023-11-12 14:45:22 +01:00
Christoph Oelckers
aed69bd4c2 we're past 1.8 now 2023-11-12 14:44:43 +01:00
Christoph Oelckers
82472d0109 bump savegame version. 2023-11-12 12:32:12 +01:00
Christoph Oelckers
7a5d89c851 use FTranslationID in the 2D drawer. 2023-11-09 23:19:48 +01:00
Christoph Oelckers
752b67c5a7 use FTranslationID in the model code. 2023-11-09 23:19:48 +01:00
Christoph Oelckers
c19fd602d5 migrate to FTranslationID support
So far this only adapts to the changes in the backend without making further use of this type.
2023-11-09 23:19:48 +01:00
Christoph Oelckers
990cf3eafc gave translations a dedicated scripted type.
This is needed for implementing reliable serialization of custom translations. As long as they are merely ints they cannot be restored on loading a savegame because the serialization code does not know that these variables are special.
2023-11-09 23:19:48 +01:00
Christoph Oelckers
c6e5ade0b3 Backend update from GZDoom. 2023-11-07 18:35:11 +01:00
Mitchell Richters
9e1ce2b970 - Clean up some GCC const warnings. 2023-11-05 20:54:17 +11:00
Mitchell Richters
85bbf80dba - Change paused check in 433c051751ebdf3b9d82ec4cabf01122414de961 as to not affect the crouch_toggle while paused. 2023-11-05 17:38:11 +11:00
Mitchell Richters
4d7094b63b - Move gi->getCrouchState() into DCorePlayer. 2023-11-05 17:38:10 +11:00
Mitchell Richters
8705afc223 - Fix bad indentation in searchpaths.cpp. 2023-11-05 17:38:01 +11:00
Mitchell Richters
5220a57f78 - statFPS() doesn't need to be in GameInterface. 2023-11-05 17:38:00 +11:00
Mitchell Richters
44be58184b - Repair issue where opening the menu cancels player's pitch returning to centre. 2023-11-05 17:37:58 +11:00
Mitchell Richters
ffe921ca3b - Remove some leftover debug code. 2023-11-04 19:10:06 +11:00
Mitchell Richters
7c93d5127b - Simplify some vector math in calcChaseCamPos(). 2023-11-04 19:10:06 +11:00
Mitchell Richters
0d0f5af3fe - Remove some unnecessary casts in SetupViewpoint(). 2023-11-04 19:10:06 +11:00
Mitchell Richters
210ebefd3d - Consolidate player coord stat/CCMD into coreplayer.cpp. 2023-11-04 19:10:05 +11:00
Mitchell Richters
0bbfe81a92 - Remove DCorePlayer::getCameraAngles().
* `CameraAngles` used to be private within `PlayerAngles` and accessed via a friendship with `GameInput`.
* Just make it public for now, its not worth the complex setup to protect against this as we can control access by simply not exporting it to ZScript.
2023-11-04 19:10:05 +11:00
Mitchell Richters
bd3184cf49 - Consolidate Exhumed's nCamerapos and SW's DSWPlayer::si into something inside DCorePlayer. 2023-11-04 19:10:05 +11:00
Mitchell Richters
7921eedda2 - Interalise slope tilting checks for DCorePlayer::doViewPitch(). 2023-11-04 19:10:05 +11:00
Mitchell Richters
cf2f3e20f8 - Internalise player velocity setup for DCorePlayer::doRollInput().
* Would have been nice to have this constexpr, but can only do that when we switch to C++20.
2023-11-04 19:10:04 +11:00
Mitchell Richters
3d7b742bed - Internalise player InputPacket access. 2023-11-04 19:10:03 +11:00
Mitchell Richters
3625a6af52 - Move PlayerAngles class directly into DCorePlayer.
* No refactoring around it yet.
* The #includes could use some cleaning up...
2023-11-04 19:10:03 +11:00
Christoph Oelckers
1b6454dc5b renamed $conreserve to $resourceid.
This better matches its use, especially since it is not exclusive to CON supporting games.
2023-10-28 09:06:36 +02:00
Christoph Oelckers
4135e460e2 fix handling of super secrets in statistics code. 2023-10-26 20:54:09 +02:00
Christoph Oelckers
bb6bb85508 added some awful hackery to handle the different offsetting of Blood's native voxels vs. those imported via .DEF. 2023-10-26 19:28:49 +02:00
Christoph Oelckers
b1538ca3ec fix compilation of release builds. 2023-10-13 23:07:30 +02:00
Mitchell Richters
13b792e953 - Apply last remaining .GetChars() fixes for POSIX targets. 2023-10-13 23:06:51 +02:00
Christoph Oelckers
c4ded2f133 - compile the states. 2023-10-08 10:06:57 +02:00
Christoph Oelckers
a1cbeb1b0d migrate to engine states.
Savegames do not work for this yet.
2023-10-08 09:41:16 +02:00
Christoph Oelckers
031fb2ea4e - SW: refactored states to use a Doom-like state model. 2023-10-08 09:41:16 +02:00
Christoph Oelckers
6250906879 implemented proper handling of VM functions as identifiers. 2023-10-08 09:41:15 +02:00
Christoph Oelckers
11f094c7fb reference event callbacks by name, not by internal index.
This is needed to allow writing new callbacks.
2023-10-08 09:41:15 +02:00
Christoph Oelckers
cb443d443c Blood projectile scriptification. 2023-10-08 09:41:14 +02:00