Commit Graph

1204 Commits

Author SHA1 Message Date
Mitchell Richters d6a094dcdd - buildutils: Replace `sintable[]` use within Duke's sectors_r.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:05 +01:00
Mitchell Richters 6fba78c123 - buildutils: Replace `sintable[]` use within Duke's sectors_d.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:05 +01:00
Mitchell Richters 6ccf925429 - buildutils: Replace `sintable[]` use within Duke's sectors.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:05 +01:00
Mitchell Richters 410c2cf41f - buildutils: Replace `sintable[]` use within Duke's sbar_*.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:05 +01:00
Mitchell Richters 0781d627dc - buildutils: Replace `sintable[]` use within Duke's prediction.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:05 +01:00
Mitchell Richters 6800e192e1 - buildutils: Replace `sintable[]` use within Duke's player_w.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:05 +01:00
Mitchell Richters 1c5c90d00f - buildutils: Replace `sintable[]` use within Duke's player_r.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:04 +01:00
Mitchell Richters 5e45f988e3 - buildutils: Replace `sintable[]` use within Duke's player_d.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:04 +01:00
Mitchell Richters 50b4d8cc99 - buildutils: Replace `sintable[]` use within Duke's player.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:04 +01:00
Mitchell Richters fd4e1b3b28 - buildutils: Replace `sintable[]` use within Duke's input.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:04 +01:00
Mitchell Richters d934bfd985 - buildutils: Replace `sintable[]` use within Duke's gameexec.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:04 +01:00
Mitchell Richters f1f0b42172 - buildutils: Replace `sintable[]` use within Duke's game_misc.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:04 +01:00
Mitchell Richters 95fa3a6f52 - buildutils: Replace `sintable[]` use within Duke's animatesprites_*.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:03 +01:00
Mitchell Richters b6e8030307 - buildutils: Replace `sintable[]` use within Duke's actors_r.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:03 +01:00
Mitchell Richters abc49fed62 - buildutils: Replace `sintable[]` use within Duke's actors_d.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:03 +01:00
Mitchell Richters bf8b1238c6 - buildutils: Replace `sintable[]` use within Duke's actors.cpp with `bsin()`/`bcos()`. 2020-11-22 21:18:03 +01:00
Christoph Oelckers a906067102 - Duke WT: attenuate sound volume when commentaties are playing 2020-11-22 21:14:36 +01:00
Christoph Oelckers 921a7a7166 - RRRA: fixed progression from E1L7 to E2L1 plus a texture related crash.
Fixes #189.
2020-11-22 18:46:20 +01:00
Christoph Oelckers 24c797b7e3 - Duke World Tour: Exiting E1L7 should go back to E1L5.
fixes #187
2020-11-22 18:27:52 +01:00
Christoph Oelckers 7df20ee047 - RR: Give ammo for the secondary ripsaw mode when picking up the weapon in standard RR, too. 2020-11-22 17:50:38 +01:00
Christoph Oelckers 034ef2290b - RR: screen should not turn green when being attacked with alien poo. 2020-11-22 17:38:07 +01:00
Christoph Oelckers 18352a760c - more renames. 2020-11-22 12:48:42 +01:00
Christoph Oelckers dced173cda - JSON serializer for actor.
Also cleaned up use of gAffectedSectors and gAffectedXWalls. These are merely needed as local worker variables, not as global persistent status.
2020-11-22 12:48:42 +01:00
Christoph Oelckers b97f12a2eb - did some global search & replace to reduce the number of accesses to the tilesiz wrapper. 2020-11-20 08:18:26 +01:00
Christoph Oelckers 9a43886be6 - Duke: fixed parsing of overlong CON identifiers. 2020-11-15 07:35:39 +01:00
Mitchell Richters 7673766d19 - Duke: Apply same zvel fix from 13839fc3e9 to `shootgrowspark()` that was accidentally changed in f276a5f443. I don't believe this to be an issue in any other spot for Duke. 2020-11-13 10:02:12 +11:00
Christoph Oelckers f9a776e71c - iterate linearly over sector effectors.
Apparently they aren't all properly linked into the required statnums.
Fixes #179
2020-11-12 19:12:58 +01:00
Mitchell Richters 70b75f72b5 - Duke: Fix issues with crane angle adjustment in `movecrane()` following changes in fca846272e.
* Fixes #170.
2020-11-12 23:21:03 +11:00
Mitchell Richters 13839fc3e9 - Duke: Fix `shootstuff()` zvel calculation error following changes in badf536fef.
* Fixes #177.
2020-11-12 22:07:16 +11:00
Mitchell Richters 4dc1797345 - Duke: Reset `p->dead_flag` when enabling the god cheat as per original behaviour.
* Fixes #172.
2020-11-12 18:21:42 +11:00
Christoph Oelckers a92b4943f9 - Duke: use original colors for inventory status display.
I took one liberty and still use green/yellow/red for the percentage, but this now uses palette translations so that it works better with hires replacements.
2020-11-11 11:49:05 +01:00
Christoph Oelckers 96fbfdcf86 - made hires replacements work for untranslated fonts. 2020-11-10 21:34:49 +01:00
Christoph Oelckers ed599d0f05 - moved the hires texture replacement logic into a backend callback.
This way it can be handled transparently to the calling code.
Fonts do not work yet, though.
2020-11-10 16:22:02 +01:00
Christoph Oelckers 59c72c923e - added null pointer checks to locked door sound checks in RR.
This originally accessed undefined memory when no sprite was involved.
Fixes #157
2020-11-07 10:25:41 +01:00
Christoph Oelckers 976675c816 - added some helper code to deal with the fact that the sound system still needs to operate on sprites. 2020-11-07 10:25:40 +01:00
Mitchell Richters ade1a80515 - gameinput.cpp: Remove crouch bool from `applylook()` since we can now just rely in the actions bitfield that's already incoming as required and default `scaleAdjust` in the prototype to `1`. 2020-11-07 18:25:06 +11:00
Mitchell Richters 6e3d414b3c - inputstate.cpp: Move `checkCrouchToggle()` from gameinput.ccp into `ApplyGlobalInput()` and use static bool for crouch toggling vs. game-side bool. 2020-11-07 18:16:16 +11:00
Mitchell Richters 4ef0d20e0e - gameinput.cpp: Consolidate `checkCrouchToggle()` from Duke with discrete implementations from Blood in 7c8efde38c and Exhumed in 032db82f82 to unify the functionality. 2020-11-07 13:44:25 +11:00
Mitchell Richters a52ee89969 - Duke/RR: Add scaling to mouse input within `motoApplyTurn()` and `boatApplyTurn()`. 2020-11-07 09:56:57 +11:00
Mitchell Richters f0b9029726 - Duke/RR: Fix incorrect boolean used in `boatApplyTurn()` when implementing fcc2521347bb528d7a5bcd3996c509db85e993f0. 2020-11-07 09:56:57 +11:00
Mitchell Richters 74dfbfe6f8 - Duke/RR: Ensure `p->vehForwardScale`/`p->vehReverseScale` can only be a maximum of 1. Controller input with high sensitivity could effectively turbo-charge the bike ;) 2020-11-07 09:56:57 +11:00
Mitchell Richters 466bc84697 - Duke/RR: Completely revamped vehicle mouse/controller input.
* Original algorithm now used purely for keyboard input only.
* Mouse and controller input is no longer a scaled double version of the keyboard input.
* Mouse input is the square root of the base angle adjustment (20) multiplied by (mouse input divided by the input scale factor). As such, mouse input is completely consistent between synchronised and unsynchronised input.
* Controller input is base angle adjustment (20) multiplied by itself.
* Renamed `turnl`/`turnr` variables to `kbdLeft`/`kbdRight` respectively.
* Fixed issue where `p->TiltStatus` wasn't being backed up in `boatApplyTurn()`.
2020-11-07 09:56:57 +11:00
Mitchell Richters 6f5f66ad35 - Duke/RR: Partially revert c9d875327850e839e3ad1f367ede15497d44fda3 by truncating `p->MotoSpeed` to integer when calculating xvel/yvel to preserve original vehicle feel. 2020-11-07 09:56:57 +11:00
Mitchell Richters 567738f3ad - Duke/RR: Tidy formatting of `onMotorcycle()`, `onBoat()`, `onMotorcycleMove()` and `onBoatMove()`. 2020-11-07 09:56:57 +11:00
Mitchell Richters 1545610501 - Duke/RR: Convert remaining vehicle function local ints to bools where appropriate. 2020-11-07 09:56:57 +11:00
Mitchell Richters c223a50b29 - Duke/RR: Clean up vehicle turn left/right bools used in ticker functions. 2020-11-07 09:56:57 +11:00
Mitchell Richters ad10ea4cb5 - Duke/RR: Initial implementation of scaled `p->MotoSpeed` controller input. 2020-11-07 09:56:57 +11:00
Mitchell Richters 578ded1db3 - Duke/RR: Promote `p->MotoSpeed` from `short` to `double` in prep for applying scaled controller input. 2020-11-07 09:56:57 +11:00
Mitchell Richters c46ad10bb1 - Duke/RR: Clean up some disassembly variable names in vehicle so it's easier to understand what's going on. 2020-11-07 09:56:57 +11:00
Christoph Oelckers 94341e8582 - fixed missing null check in SetOwner and SetHitOwner. 2020-11-06 20:13:06 +01:00