Commit graph

1172 commits

Author SHA1 Message Date
Mitchell Richters
eca8526c11 - Exhumed: Unlimit the SeqNames[] array. 2023-04-23 19:20:19 +10:00
Mitchell Richters
19501f3ed0 - Exhumed: Fix some typos in comments. 2023-04-23 19:19:47 +10:00
Mitchell Richters
83365a9a14 - Fix typo in menu and clean up leftover variable in Exhumed's doPlayerCameraEffects(). 2023-04-23 10:20:10 +10:00
Mitchell Richters
71d833f9ea - Make Exhumed's new view tilting features accessible for all games. 2023-04-22 19:34:53 +10:00
Mitchell Richters
faaffa0d40 - Exhumed: Change formula for cl_exviewtilting 2.
* Makes this proper strafe rolling based on the actual strafe velocity.
* Implement movement rolling as `cl_exviewtilting 3` as well.
2023-04-22 14:10:10 +10:00
Mitchell Richters
b93a2cf61b - Exhumed: Move UpdateCreepySounds() into MoveThings() so its processing time can be clocked. 2023-04-21 21:13:19 +10:00
Mitchell Richters
b958ae2340 - Exhumed: Move bobangle global into Player struct. 2023-04-21 21:13:19 +10:00
Mitchell Richters
6799322544 - Exhumed: Add view bobbing, with defaults matching intensity of Powerslave Exhumed.
* `cl_viewbob` extended from bool to int, and allowing two modes: 1 == Powerslave Exhumed bobbing, 2 == Duke 3D-style bobbing.
* Height and speed of bobbing customisable.
2023-04-21 21:13:19 +10:00
Mitchell Richters
8283895828 - Exhumed: Increase precision of Player::totalvel. 2023-04-21 21:13:18 +10:00
Mitchell Richters
e0964eef7a - Exhumed: Add toggle-able jump rebounding. 2023-04-21 21:13:18 +10:00
Mitchell Richters
8255a23833 - Exhumed: Move bTouchFloor into Player struct.
* No need to save this out either, it's reset at the start of every tic.
2023-04-21 21:13:18 +10:00
Mitchell Richters
bb19997a2c - Apply pitch/yaw input along-side the key inputs.
* Removes a lot of duplicated code.
2023-04-21 21:13:18 +10:00
Mitchell Richters
f9b9345e01 - Exhumed: Tidy up a long ternary in updatePlayerAction(). 2023-04-21 21:13:17 +10:00
Mitchell Richters
258ab0db89 - Exhumed: Initial setup of view rolling effects.
* `cl_exviewtilting 1` enables a console-like view rolling upon yaw input.
* `cl_exviewtilting 2` enables a Quake-like view rolling upon strafe input.
2023-04-21 21:13:17 +10:00
Mitchell Richters
83a371e23d - Exhumed: Remove Player::nPlayerD, since we have the player actor's opos. 2023-04-21 21:13:16 +10:00
Mitchell Richters
29bf5e4cce - Exhumed: Move updatePlayerTarget() call back to main ticker loop.
* While it's cleaner in the AIPlayer ticker, AIRa requires its target set (which is done in this func also) and I don't know whether AIPlayer is ticked before AIRa is.
2023-04-21 21:13:16 +10:00
Mitchell Richters
28893663a5 - Exhumed: Reduce length of stack arrays in addSeq(). 2023-04-21 21:13:16 +10:00
Mitchell Richters
4c49b91635 - Exhumed: Incorporate player weapon bobbing into pilot light angle. 2023-04-21 21:13:16 +10:00
Mitchell Richters
a28ca29493 - Exhumed: Repair pilot light angle that's been broken for some time.
* Interpolate it as well 🙂.
2023-04-21 21:13:15 +10:00
Mitchell Richters
dc857aec3d - Exhumed: Tidy up remainder of DrawWeapons(). 2023-04-21 21:13:15 +10:00
Mitchell Richters
d309406473 - Exhumed: Rename sequence texture getters to separate frame/chunks.
* This will make it easier to compare against the source if there's a mistake, etc.
2023-04-21 21:13:15 +10:00
Mitchell Richters
1162954b03 - Exhumed: Move AISpider's null chunk texture check into the getter.
* It's needed for the rat as well...
2023-04-21 21:13:15 +10:00
Mitchell Richters
408c71513b - Exhumed: Manually review all nAction changes and ensure nFrame is reset also. 2023-04-21 21:13:14 +10:00
Mitchell Richters
ba8bdf347e - Exhumed: Repair OOB seq access with Anubis.
* Everytime `nAction` changes, `nFrame` must be reset as well.
* One `AnubisSeq[]` index has an `nSeqId` of `-1`, this must be handled.
2023-04-21 21:13:14 +10:00
Mitchell Richters
27b9b0d2f8 - Exhumed: Reduce repeated hashtable lookups when building chunks. 2023-04-21 21:13:14 +10:00
Mitchell Richters
04eb0fe926 - Exhumed: Tidy up a few remaining globals in the sequence system. 2023-04-21 21:13:14 +10:00
Mitchell Richters
4a37453765 - Exhumed: Convert sequence system to FTextureIDs. 2023-04-21 21:13:13 +10:00
Mitchell Richters
fcfee9addc - Exhumed: Convert remainder of statusbar code and delete old system. 2023-04-21 21:13:13 +10:00
Mitchell Richters
7ca73aa562 - Exhumed: Initial setup of new statusbar sequence exports, starting with DrawStatusSequence(). 2023-04-21 21:13:12 +10:00
Mitchell Richters
95e84ba1f8 - Exhumed: Make playFrameSound() a method of SeqFrame. 2023-04-21 21:13:12 +10:00
Mitchell Richters
32cc320195 - Exhumed: Refactor new sequence setup to not use naked TArray of frames.
* Also gives access to the previously discarded sequence flags that are currently not in any kind of use.
2023-04-21 21:13:12 +10:00
Mitchell Richters
4b223ab26d - Exhumed: Tidy up DExhumedActor variables for clarity. 2023-04-21 21:13:11 +10:00
Mitchell Richters
5efc14411a - Exhumed: Use actor variables for sequences, not player ones. 2023-04-21 21:11:55 +10:00
Mitchell Richters
5c0b6858b1 - Exhumed: Remove seq_GetSeqPicnum(). 2023-04-21 21:11:55 +10:00
Mitchell Richters
b4502626fa - Exhumed: Tidy up some picnum accesses. 2023-04-21 21:11:55 +10:00
Mitchell Richters
d7161a7368 - Exhumed: Convert the weapon code. 2023-04-21 21:11:54 +10:00
Mitchell Richters
33bfe4601f - Exhumed: Convert seq_DrawPilotLightSeq(). 2023-04-21 21:11:54 +10:00
Mitchell Richters
4428ea5612 - Exhumed: Fix null chunk access for spider. 2023-04-21 21:11:54 +10:00
Mitchell Richters
d8441f712e - Exhumed: Converted out most remaining files. 2023-04-21 21:11:54 +10:00
Mitchell Richters
34e984d836 - Exhumed: Convert out bullet system to new backend hashtable. 2023-04-21 21:11:54 +10:00
Mitchell Richters
6f242b901d - Exhumed: Convert out anim system to new backend hashtable. 2023-04-21 21:11:53 +10:00
Mitchell Richters
f404708f51 - Exhumed: Initial conversion of seq_PlotSequence() to new backend hashtable. 2023-04-21 21:11:52 +10:00
Mitchell Richters
4d1466217b - Exhumed: Remove unused/unneeded union from DExhumedActor. 2023-04-21 21:10:47 +10:00
Mitchell Richters
80125e11f3 - Exhumed: Separate out seq variables within DExhumedActor. 2023-04-21 21:10:45 +10:00
Mitchell Richters
57ffb0e251 - Exhumed: Tidy up internals of seq_PlotSequence().
* Renames disassembly variables.
* Removes abusive reuse of arg variables.
2023-04-17 08:52:54 +10:00
Mitchell Richters
27c87b247c - Exhumed: Rename actionSeq members for clarity. 2023-04-17 08:52:54 +10:00
Mitchell Richters
310f615c8c - Exhumed: Initial setup of new sequence loader.
* Untested in-game but looks good in the debugger.
2023-04-17 08:52:54 +10:00
Mitchell Richters
8a0d09ce8b - Exhumed: Wrap all access to FrameSound[] array and make static. 2023-04-17 08:52:54 +10:00
Mitchell Richters
86c559ff1c - Exhumed: Wrap all access to ChunkFlag[] array and make static. 2023-04-17 08:52:54 +10:00
Mitchell Richters
01148a8c29 - Exhumed: Wrap all access to ChunkPict[] array and make static. 2023-04-17 08:52:54 +10:00