Commit graph

4170 commits

Author SHA1 Message Date
Christoph Oelckers
83c0ad55f2 - rewrote nextsectorneighborzptr with a better parameter interface 2022-08-05 18:43:48 +02:00
Christoph Oelckers
ec66f39535 - replaced a few naked chars with better types. 2022-08-05 17:04:46 +02:00
Christoph Oelckers
c2fc7577db - cleanup of 3D viewport code.
Removes all the hackery that Polymost needed and now uses a sane struct to store the info.
2022-08-05 17:04:45 +02:00
Christoph Oelckers
c5ec2af020 - Exhumed: fix position init in BuildfRat
This is only the cheat case, which is why this wasn’t detected earlier.
2022-08-05 09:41:25 +02:00
Christoph Oelckers
8d423fdc6f - toned down the fov change a bit.
With real projection math it was a bit extreme.
2022-08-03 19:59:46 +02:00
Christoph Oelckers
e6ca0f4817 - made fov change for RRRA's drug mode work. 2022-08-03 19:41:30 +02:00
Christoph Oelckers
b60181eed5 - variable cleanup. 2022-08-03 15:58:18 +02:00
Christoph Oelckers
291726cc55 - removed the Polymost renderer. 2022-08-03 15:50:27 +02:00
Christoph Oelckers
1df66f4971 - clear all collision flags from generic controller sprites
Taken from EDuke32 - there seem to be a few maps which need this.
Also consolidate a bit of setup code between Duke and RR.
2022-07-26 00:13:11 +02:00
Mitchell Richters
4324f923bc - Call updateTurnHeldAmt() after doing the turn, not before it. This gives one tic more preamble. 2022-07-23 10:37:32 +10:00
Mitchell Richters
00e12ea031 - Remove some uses of xs_Float.h functions in game-side code where overflow protection isn't needed.
* Went a little bit nuts and just used this everywhere back way back when.
2022-07-23 10:37:32 +10:00
Christoph Oelckers
6c915d7940 - Blood may not abort on a bogus start position.
There seem to be ways to override it elsewhere.
The initial position gets used by some code, so it still needs to be validated, though.
2022-07-12 09:52:30 +02:00
Christoph Oelckers
f8aacb3825 - fixed crash in Last Warrior map 9.
Really, asserts should not be used to test for errors that can actually happen!
2022-06-06 20:56:50 +02:00
Christoph Oelckers
84173ee09b - backend update from GZDoom.
The main bulk of this is the new start screen code. To make this work in Raze some more work on the startup procedure is needed.
What this does provide is support for the DOS end-of-game text screens in Duke and SW on non-Windows systems.
2022-06-06 11:45:34 +02:00
Mitchell Richters
71fb91940d Revert "- Simplify PlayerHorizon::settarget() by adding a dedicated angle setter that resets interpolated value as well."
This reverts commit 0416834d9d.

Revert "- Simplify `PlayerAngle::settarget()` by adding a dedicated angle setter that resets interpolated value as well."

This reverts commit 5a550613f3.

Revert "- Add bool `lock` to `PlayerHorizon::settarget()` when setting target from the ticker without having to call setters and resetters."

This reverts commit 18541d1ab4.

Revert "- Add bool `lock` to `PlayerAngle::settarget()` when setting target from the ticker without having to call setters and resetters."

This reverts commit 1ac58dc41c.

* We need to ensure only the ticker can unlock the player's input if it's telling us to lock the input.
2022-06-06 18:41:45 +10:00
Mitchell Richters
c3981e06cb - Duke: Remove one save interpolated weapon value that got away from me in 3948ec7a35. 2022-06-06 11:31:42 +10:00
Mitchell Richters
a29bce9eda - Duke: Interpolate loogcnt when drawing onscreen. 2022-06-06 11:24:47 +10:00
Mitchell Richters
3948ec7a35 - Duke: Remove recently added interpolated weapon values from save code and add to player_struct::backupweapon() instead. 2022-06-06 11:05:11 +10:00
Mitchell Richters
ee6abac699 - Duke: Apply same fistsign fix from 4ee64df844 to RR code. 2022-06-06 11:04:59 +10:00
Mitchell Richters
b0f517736c - Duke: Fix fistsign smoothness. 2022-06-06 10:51:57 +10:00
Mitchell Richters
600776da2e - Duke: Change a few return types from int to bool in HUD code. 2022-06-06 09:57:51 +10:00
Mitchell Richters
f4b78dc3c7 - Duke: Interpolate access_incs when drawing onscreen (security card usage). 2022-06-06 09:47:30 +10:00
Mitchell Richters
3b2ef4d18b - Duke: Interpolate tipincs when drawing onscreen (tipping the dancers). 2022-06-06 09:40:47 +10:00
Mitchell Richters
d6549d6335 - Duke: Interpolate knee_incs when drawing onscreen (stomping on shrunken enemies). 2022-06-06 09:19:55 +10:00
Mitchell Richters
ab95a8b890 - Duke: Interpolate fist_incs when drawing onscreen (hitting the nuke detonator at the end of each level). 2022-06-05 21:00:44 +02:00
Richard Gobeille
55408e6e3c - Duke3d: smooth movement of recons. 2022-06-05 21:00:36 +02:00
Richard Gobeille
1389413ca1 Duke3d: make actors set to move vertically in CON act as if SFLAG_SMOOTHMOVE was explicitly enabled
This smooths out stuff like octabrains and flying liztroops without making them look stupid when they move on the ground.
2022-06-05 22:40:06 +10:00
Christoph Oelckers
bc5c742930 - Duke: fixed some crashes with bad map setups 2022-06-05 09:40:10 +02:00
Christoph Oelckers
0a020e9cc1 - ported secret hack for WT's map 11 from SW Redux.
This is hideously awful and definitely needs a better approach. For now it'll do...
2022-06-01 12:22:59 +02:00
Mitchell Richters
1ac58dc41c - Add bool lock to PlayerAngle::settarget() when setting target from the ticker without having to call setters and resetters. 2022-05-30 21:24:02 +10:00
Mitchell Richters
18541d1ab4 - Add bool lock to PlayerHorizon::settarget() when setting target from the ticker without having to call setters and resetters. 2022-05-30 21:22:24 +10:00
Mitchell Richters
5a550613f3 - Simplify PlayerAngle::settarget() by adding a dedicated angle setter that resets interpolated value as well. 2022-05-30 21:22:10 +10:00
Mitchell Richters
0416834d9d - Simplify PlayerHorizon::settarget() by adding a dedicated angle setter that resets interpolated value as well. 2022-05-30 21:21:52 +10:00
Mitchell Richters
de88d4dc8b - SW: Remove some unnecessary ternaries in some inline bools and fix a few return types. 2022-05-30 20:51:53 +10:00
Mitchell Richters
7282e0d8bf - Remove multiple addadjustment()/settarget() overloads in favour of native binangle/fixedhoriz versions only.
* Simplifies these classes a bit.
* Better shows intent in actual game code.
* Removes unnecessary int to double conversions.
2022-05-30 20:35:41 +10:00
Jordon Moss
5c65a9bab4 Interpolate FIRELASER trails. 2022-05-30 20:21:40 +10:00
Christoph Oelckers
22d6e3f2f6 - SW: added interpolation for sine wave floors. 2022-05-29 23:20:09 +02:00
Christoph Oelckers
d7c15d7153 - SW: fixed shadow positioning. 2022-05-29 23:04:36 +02:00
Mitchell Richters
79465ffc42 - Duke: Add CON support for Duke Nukem 3D 1.1 Shareware.
Based on EDuke32's parsing of the same commands.
2022-05-29 10:34:33 +10:00
Mitchell Richters
889baeff14 - Duke: Fix CON parser to detect shareware scripts. 2022-05-29 09:56:56 +10:00
Christoph Oelckers
aab13addb7 -renamed spritetype’s owner field to ‚intowner‘
Mainly for easier searching.
Also remove the duplicate ‚detail‘ field.
2022-05-24 00:30:41 +02:00
Christoph Oelckers
af89c25151 - RR: clear jaildoors array on map start.
this was leaving stale data behind which could cause nasty crashes.
2022-05-22 09:28:12 +02:00
Christoph Oelckers
84bafe6d02 - manual merge of latest nnext update. 2022-05-11 08:31:58 +02:00
Christoph Oelckers
acb244653c - several more Blood fixes copied from NBlood 2022-05-06 01:40:27 +02:00
Christoph Oelckers
83499740c3 - blood: GetHighestSprite fix
copied from NBlood f984eb8f5cb52653c301e015e34e8471d9ed8b7c
2022-05-06 01:28:21 +02:00
Christoph Oelckers
d85a8b6507 - blood: fix velCeil calculation
copied from NBlood 397992b6d5acd9c839db78dafde3a9a718b2503f
2022-05-06 01:26:38 +02:00
Christoph Oelckers
219970f626 - blood: SetupGibWallState fix
copied from NBlood f53f40ee79750aaadf1eeb4adc72a2cca034d8a2
2022-05-06 01:25:17 +02:00
Christoph Oelckers
4c139a2609 - blood: add missing case in OperateSprite
copied from NBlood 87315860a45dc16942f8e3c36290a856c886d619
2022-05-06 01:23:14 +02:00
Christoph Oelckers
5c9730766d - dd self check for burning cultist fix
Fix issue with spawned kDudeBurningCultist dudes entering water
Copied from NBlood ae80eef10fdd42224c7b6e782f259ba23c1069e7
2022-05-06 01:21:48 +02:00
Christoph Oelckers
aab0a4f129 - renamed a variable 2022-05-06 01:17:18 +02:00