Commit graph

2047 commits

Author SHA1 Message Date
Christoph Oelckers
19f52dc1c2 reimplement the state pointer serializer. 2023-11-12 23:09:03 +01:00
Christoph Oelckers
0aaefceb04 renamed the state types. 2023-11-12 23:09:03 +01:00
Christoph Oelckers
dc846ca27b move the template states to nnextcdud.cpp 2023-11-12 23:09:03 +01:00
Christoph Oelckers
783bdce27a delete the native states. 2023-11-12 23:09:03 +01:00
Christoph Oelckers
b511de7e5f use the exported states 2023-11-12 23:04:58 +01:00
Christoph Oelckers
fc9ce29788 parse the states into an array. 2023-11-12 23:04:57 +01:00
Christoph Oelckers
6725867462 exported all the states to ZScript. 2023-11-12 23:04:57 +01:00
Christoph Oelckers
c914f2736a tabify custom dude files. 2023-11-12 23:03:44 +01:00
Christoph Oelckers
ebbca3685e deal with the last remaining pieces of fixed point math. 2023-11-12 23:03:44 +01:00
Christoph Oelckers
5dd0a43bca make sure that all places that read from SpriteMass ensure that the cache is up to date.
This allows removing the serializer for it.
2023-11-12 23:03:44 +01:00
Christoph Oelckers
b8aee5a730 implemented a serializer for DCustomDude
This writes out the entire object. It is not economical to cut this down and rewrite the init code to make this less heavy.
2023-11-12 23:03:44 +01:00
Christoph Oelckers
30826ef22f rewrote state pointer serializer to handle the in-object states of custom dudes, deleted the old custom dude states and added one missing state to the list. 2023-11-12 23:03:44 +01:00
Christoph Oelckers
73050e3f74 eliminate the redundant pExtra pointer in DCustomDude 2023-11-12 23:03:43 +01:00
Christoph Oelckers
2bae1077cf do not mofify global sequence data for the custom dudes.
Instead control the trigger from the outside so that the global data can be kept immutable. All Seq pointers are now const throughout.
2023-11-12 23:03:43 +01:00
Christoph Oelckers
1f5ff06b91 GC stuff plus one leftover commented out fragment. 2023-11-12 23:03:43 +01:00
Christoph Oelckers
6e0d61d137 nnext fully integrated, everything compiles and links again. 2023-11-12 23:03:43 +01:00
Christoph Oelckers
c17ccd62e6 everything's converted
Doesn't compile yet due to circular dependencies in the headers.
2023-11-12 23:03:43 +01:00
Christoph Oelckers
54878bf125 use std:variant for nextDude to get some type safety 2023-11-12 23:03:42 +01:00
Christoph Oelckers
00112c472d continued witg nnextcdud.cpp 2023-11-12 23:03:42 +01:00
Christoph Oelckers
0e6b536d01 mostly bool fixes. 2023-11-12 23:03:42 +01:00
Christoph Oelckers
52551a8b9b start of nnextcdud.cpp 2023-11-12 23:03:42 +01:00
Christoph Oelckers
98882b0607 more work on aicdud.cpp 2023-11-12 23:03:42 +01:00
Christoph Oelckers
356c425e1e some last changes. 2023-11-12 23:03:41 +01:00
Christoph Oelckers
158cdff069 work on aicdud.cpp 2023-11-12 23:03:41 +01:00
Christoph Oelckers
4f338ab8a2 adapted ai.cpp and callback.cpp. 2023-11-12 23:03:13 +01:00
Christoph Oelckers
b05706929d added all nnext changes to actor.cpp 2023-11-12 23:03:13 +01:00
Christoph Oelckers
5f8ab4a828 array backwards iteration fixes 2023-11-12 23:03:12 +01:00
Christoph Oelckers
7674b7245b header cleanup 2023-11-12 23:03:12 +01:00
Christoph Oelckers
45e14732f2 updated the rest of nnexts.cpp 2023-11-12 23:03:12 +01:00
Christoph Oelckers
463eb7cc9e enabled custom dude stuff in nnextsif.cpp 2023-11-12 23:03:12 +01:00
Christoph Oelckers
33aa9188d7 got through nnextcdud.h 2023-11-12 23:03:11 +01:00
Christoph Oelckers
15ba1bf333 update the first 40% of nnexts.cpp 2023-11-12 23:03:11 +01:00
Christoph Oelckers
72e744cef2 nnext.cpp update, part 1. 2023-11-12 23:03:11 +01:00
Christoph Oelckers
f0131a9fb5 complete workover of nnextsif to adapt to Raze's organization and to get rid of the global work state. 2023-11-12 23:03:11 +01:00
Christoph Oelckers
e889f16803 60% of nnextsif.cpp handled. 2023-11-12 23:03:11 +01:00
Christoph Oelckers
14464dcd9f make things compile again. aiunicult was removed for now because NBlood doesn't have it anymore. 2023-11-12 23:03:11 +01:00
Christoph Oelckers
061d60f911 nnextstr added 2023-11-12 23:03:11 +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
Mitchell Richters
489e535992 - Blood: Clean up player vel code following InputPacket changes. 2023-11-10 12:00:49 +11:00
Mitchell Richters
8148ef1458 - Blood: Fix GCC fallthrough warning. 2023-11-05 20:56:46 +11:00
Mitchell Richters
9e1ce2b970 - Clean up some GCC const warnings. 2023-11-05 20:54:17 +11:00
Mitchell Richters
4d7094b63b - Move gi->getCrouchState() into DCorePlayer. 2023-11-05 17:38:10 +11:00
Mitchell Richters
2797919f2c - Blood: Clean up some getPlayer() and DCorePlayer::GetActor() accesses in ticker. 2023-11-05 17:38:00 +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
c64d333379 Blood: fixed packSlots being cleared on loading a savegame.
Since the player refactor the order of operations had changed and this got called after reading the player, not before.
2023-10-31 16:32:24 +01:00
Christoph Oelckers
be9ddb0007 Blood: fixed initialization of dmgControl array.
This got lost somewhere in the commit shuffling.
2023-10-26 20:26:53 +02:00