raze-gles/source/games/duke/src
Mitchell Richters e474ebc2b7 - multiple input fixes for both games, and for both cl_syncinput 0 and cl_syncinput 1 modes.
* For RR, `processweapon_r()` was performing angle and horizon changes directly which provided a harsh experience with the default `cl_syncinput 0` mode.
* Added `angAdjust` variable to `player_struct` for use with ticrate angle adjustments.
* Renamed `horizAngleAdjust` to `horizAdjust` so that there is less confusion with the new `angAdjust` variable.
* Removed `horizSkew` variable, can just use `horizAdjust` for this.
* Replaced all calls to `addang()` and `addhoriz()` with the appropriate additions/subtractions to `angAdjust` and `horizAdjust` respectively.
* Removed now unused `addang()` and `addhoriz()` setters from `player_struct`.
* Define new function `resetinputhelpers()` to eliminate code duplication between `processinput_d()` and `processinput_r()` functions.
* Remove `p->q16ang` and `p->q16horiz` direct setting from `FinalizeInput()`.
* Change `applylook()` to accept an `fixed_t adjustment` for changing the player's angle. This can either be `input.q16avel` when `cl_syncinput` is 0, or `sync[snum].q16angvel` when `cl_syncinput` is 1.
* Change `sethorizon()` to accept an `fixed_t adjustment` for changing the player's horizon. This can either be `input.q16horz` when `cl_syncinput` is 0, or `sync[snum].q16horz` when `cl_syncinput` is 1.
* Re-work `sethorizon()` to always adjust `p->q16horiz` using the true pitch code. This closer resembles the EDuke32 implementation as per SVN 7342.
* Re-work returning to center to work off the true pitch code and always ensure that the player returns to center.
* Implement work-around for RR where we need to call `sethorizon()` before the call to `fi.doincrements()` like the original game, but also after the call to `processweapon()` to apply any angle or horizon changes due to weapon recoil, etc. We work around this by calling `sethorizon()` from within `doincrements_r()` only if `cl_syncinput` is 1 and only if `doincrements_r()` is to return 1.
2020-08-03 21:19:45 +10:00
..
2d_d.cpp - consolidated shade to light conversion 2020-07-31 20:58:55 +02:00
2d_r.cpp - consolidated shade to light conversion 2020-07-31 20:58:55 +02:00
actors.cpp - multiple input fixes for both games, and for both cl_syncinput 0 and cl_syncinput 1 modes. 2020-08-03 21:19:45 +10:00
actors_d.cpp - multiple input fixes for both games, and for both cl_syncinput 0 and cl_syncinput 1 modes. 2020-08-03 21:19:45 +10:00
actors_lava.cpp - cleaned up the sound system interface to have consistent naming and no aliases. 2020-07-25 09:32:54 +02:00
actors_r.cpp - multiple input fixes for both games, and for both cl_syncinput 0 and cl_syncinput 1 modes. 2020-08-03 21:19:45 +10:00
animatesprites_d.cpp - create an enum for MaxSmoothRatio and replace multiple hard-coded uses of '65536' constant. 2020-08-02 20:57:08 +02:00
animatesprites_r.cpp - create an enum for MaxSmoothRatio and replace multiple hard-coded uses of '65536' constant. 2020-08-02 20:57:08 +02:00
bowling.cpp - first stage of new savegame code. 2020-07-20 20:40:29 +02:00
ccmds.cpp - removed the last remaining Blood helpers from the file system, also deleted a few short files whose contents could be moved. 2020-07-27 19:38:41 +02:00
cheats.cpp - do not activate the inventory when giving all items. 2020-07-27 18:02:39 +02:00
concmd.h - tabification of new sources and replacement of the CON instruction symbols. 2020-06-21 22:55:09 +02:00
condef.h - another safety commit. 2020-06-21 23:07:42 +02:00
constants.h - got rid of MODE_TYPE since this will be handled in the backend in the future. 2020-07-21 22:59:24 +02:00
d_menu.cpp - added the "back" sound to the menu. 2020-08-02 22:14:58 +02:00
dispatch.cpp - pass smoothratio through to displayweapon(). 2020-08-02 21:20:52 +02:00
duke3d.h - pass smoothratio through to displayweapon(). 2020-08-02 21:20:52 +02:00
flags_d.cpp - fudging for the broken FIRE animation. 2020-08-01 17:54:38 +02:00
flags_r.cpp - fudging for the broken FIRE animation. 2020-08-01 17:54:38 +02:00
funct.h - multiple input fixes for both games, and for both cl_syncinput 0 and cl_syncinput 1 modes. 2020-08-03 21:19:45 +10:00
game.cpp - removed dead weaponswitch variable 2020-07-26 17:55:22 +02:00
game_misc.cpp - pass smoothratio through to displayweapon(). 2020-08-02 21:20:52 +02:00
gamedef.cpp - fixed incorrect sprite being passed to reactor() function. 2020-07-29 20:59:32 +02:00
gameexec.cpp - fudging for the broken FIRE animation. 2020-08-01 17:54:38 +02:00
gameloop.cpp - change returned value for CalcSmoothRatio() from int to double and pass through to displayrest() for future use with displayweapon(). 2020-08-02 21:20:52 +02:00
gamevar.cpp - fixed issues reported by XCode 2020-07-23 17:02:59 +02:00
gamevar.h - put the entire CON parser into a class to make its state local to the caller 2020-07-20 18:43:49 +02:00
global.cpp - change Duke's synchronized_input to CVAR cl_syncinput. 2020-07-28 21:38:28 +10:00
global.h - change Duke's synchronized_input to CVAR cl_syncinput. 2020-07-28 21:38:28 +10:00
hudweapon_d.cpp - apply same fix from c63564eb7a for returning interpolated value for the player's q16horiz - q16horizoff if cl_syncinput is true. 2020-08-03 17:06:28 +10:00
hudweapon_r.cpp - interpolate p->hard_landing for RR. 2020-08-03 17:27:09 +10:00
inlines.h - apply same fix from c63564eb7a for returning interpolated value for the player's q16horiz - q16horizoff if cl_syncinput is true. 2020-08-03 17:06:28 +10:00
input.cpp - multiple input fixes for both games, and for both cl_syncinput 0 and cl_syncinput 1 modes. 2020-08-03 21:19:45 +10:00
interpolate.cpp - properly tabified everything. 2020-07-20 23:21:27 +02:00
names.h - fudging for the broken FIRE animation. 2020-08-01 17:54:38 +02:00
names_d.h - fixing some HUD stuff. 2020-07-06 15:48:51 +02:00
names_r.h - got rid of the dynamic tilemap. 2020-07-03 23:56:14 +02:00
noise.cpp - properly tabified everything. 2020-07-20 23:21:27 +02:00
player.cpp - multiple input fixes for both games, and for both cl_syncinput 0 and cl_syncinput 1 modes. 2020-08-03 21:19:45 +10:00
player_d.cpp - multiple input fixes for both games, and for both cl_syncinput 0 and cl_syncinput 1 modes. 2020-08-03 21:19:45 +10:00
player_r.cpp - multiple input fixes for both games, and for both cl_syncinput 0 and cl_syncinput 1 modes. 2020-08-03 21:19:45 +10:00
player_w.cpp - cleaned up the sound system interface to have consistent naming and no aliases. 2020-07-25 09:32:54 +02:00
prediction.cpp Use type safe angle and horizon classes for the render interface 2020-07-23 17:03:11 +02:00
prediction.h Use type safe angle and horizon classes for the render interface 2020-07-23 17:03:11 +02:00
premap.cpp - fix some interpolation harshness with p->weapon_pos. 2020-08-03 15:06:25 +10:00
premap_d.cpp Disabled all adult censoring in Duke and RR. 2020-07-29 22:43:06 +02:00
premap_r.cpp - properly tabified everything. 2020-07-20 23:21:27 +02:00
render.cpp - create an enum for MaxSmoothRatio and replace multiple hard-coded uses of '65536' constant. 2020-08-02 20:57:08 +02:00
savegame.cpp - multiple input fixes for both games, and for both cl_syncinput 0 and cl_syncinput 1 modes. 2020-08-03 21:19:45 +10:00
sbar.cpp - fixed RR status bar layout. 2020-07-25 16:43:03 +02:00
sbar.h - properly tabified everything. 2020-07-20 23:21:27 +02:00
sbar_d.cpp - scaling consistency changes from uplifting Redneck Rampage HUDs. 2020-07-29 18:36:50 +10:00
sbar_r.cpp - FullscreenHUD1 tweaks for Redneck Rampage. 2020-07-29 18:36:23 +10:00
sectors.cpp - fixed sound playback for doors etc. 2020-08-01 11:56:02 +02:00
sectors_d.cpp Disabled all adult censoring in Duke and RR. 2020-07-29 22:43:06 +02:00
sectors_r.cpp Disabled all adult censoring in Duke and RR. 2020-07-29 22:43:06 +02:00
soundefs.h - constant cleanup. 2020-07-06 13:26:26 +02:00
sounds.cpp - calculate proper distances in the sound code. 2020-07-31 00:08:39 +02:00
sounds.h - fix sound and music pausing with tweaks to updatePauseStatus(). Also removed unneeded game-side function. Fixes #11. 2020-07-26 17:20:53 +10:00
spawn.cpp Silenced lots of warnings pointed out by XCode. 2020-07-23 17:02:59 +02:00
spawn_d.cpp - copied some changes to kill count management from DukeGDX. 2020-07-27 20:53:31 +02:00
spawn_r.cpp - properly tabified everything. 2020-07-20 23:21:27 +02:00
types.h - multiple input fixes for both games, and for both cl_syncinput 0 and cl_syncinput 1 modes. 2020-08-03 21:19:45 +10:00