Commit graph

14167 commits

Author SHA1 Message Date
Christoph Oelckers
b993f05c8f - fixed missing handling for BADGUYSTAYPUT flag. 2023-05-19 23:00:27 +02:00
Christoph Oelckers
b6767aa7a3 - fixed: The MVE player ignored the initial sound playing state.
If that is off, sound must remain off.
2023-05-19 22:59:48 +02:00
Christoph Oelckers
11ba136df1 - make autosaving happen immediately for other games than Blood only.
Blood does not like it, but for the others it should be ok.
2023-05-19 22:59:47 +02:00
Christoph Oelckers
513de38723 - pass the spawner to Initialize as an explicit parameter.
Using ownerActor is not robust, for some actors this will have unwanted side effects.
2023-05-19 22:57:26 +02:00
Christoph Oelckers
22415d0d22 - Duke: for camera textures, set display_mirror to 2, not 1.
This avoids actually mirroring the sprites while otherwise retaining the effects on player visibility. Although a value of 1 was working previously it was merely by happenstance, not by design.
Also remove two redundant local copies of display_mirror in Blood and SW.
2023-05-19 22:53:17 +02:00
Christoph Oelckers
6e060c2e83 Revert "- Tidy up autosaving for all the games."
This reverts commit 10445635cf.

Contrary to what the reverted commit states, it is absolutely essential to have this delay. Duke and Blood initialize a lot of things in their first tick that are necessary before the world is stable to save.
2023-05-19 22:53:17 +02:00
Christoph Oelckers
5d4e6696ca - Blood: clear gHitInfo when starting a level. 2023-05-19 22:53:17 +02:00
Christoph Oelckers
cf349fbd7d - Duke: clear resource ID when setting up the original sounds for World Tour.
This made them unconditionally override the replacements - bad as they are.
2023-05-19 22:53:16 +02:00
Christoph Oelckers
3b0da4c221 - fix '-gamegrp' path 2023-05-19 22:53:16 +02:00
Christoph Oelckers
e0de0893a9 - autoaim must never apply to WW2GI's pistol. 2023-05-19 22:53:16 +02:00
Christoph Oelckers
bab432ed72 - refinement of aiming fix. 2023-05-19 22:53:15 +02:00
Christoph Oelckers
fa1e667140 - Duke/RR: Use the exact same trajectory for autoaiming and the actual attack hitscan for the pistol.
These were not identical so the pistol was likely to miss small targets the autoaim acquired. This was particularly bad for Duke's ceiling turret and RR's mosquito.
2023-05-19 22:52:36 +02:00
Christoph Oelckers
94a80dda11 - initialize the angle of script spawned actors. 2023-05-19 22:52:00 +02:00
Christoph Oelckers
e8a3e2ee53 - fixed sprite rotation in mirrors. 2023-05-19 22:51:45 +02:00
Christoph Oelckers
ff24711710 -put the remaining directly accessed textures into the aTexIDs arrays for Blood and Exhumed. 2023-05-19 22:51:32 +02:00
Christoph Oelckers
481f139962 - put texture ID lists into a namespace.
These conflicted with each other.
2023-05-19 22:51:31 +02:00
Christoph Oelckers
28e451311b - fixed ActorInfo inheritance. 2023-05-19 22:50:47 +02:00
Christoph Oelckers
aee26c2637 - reset counter in SetMove 2023-05-19 22:50:02 +02:00
Christoph Oelckers
8aaa8b4113 - use the native implementation for Duke.rnd.
This ensures that results are consistent.
2023-05-19 22:46:43 +02:00
Rachael Alexanderson
fc45636215 - remove vid_gpuswitch and all associated handling 2023-04-30 10:57:28 -04:00
Christoph Oelckers
7bb678bb7e - fixed 'move' property handler to properly store its z value. 2023-04-30 13:33:05 +02:00
Christoph Oelckers
b07a43a9db - Duke: fixed ChangeType to also change the actor's base pic. 2023-04-30 13:33:05 +02:00
alexey.lysiuk
a69d904192 - fix GCC/Clang compilation error
source/games/duke/src/types.h:178:14: error: exception specification of overriding function is more lax than base version
2023-04-30 13:14:45 +03:00
Christoph Oelckers
ecfa45c3ec - Duke: fixed animation lookup code. 2023-04-30 10:51:48 +02:00
Christoph Oelckers
b55d39e58d - fixed invocation of RunState. 2023-04-30 10:51:48 +02:00
Christoph Oelckers
83c401574c - remove debug check 2023-04-30 10:51:48 +02:00
Christoph Oelckers
4010fc1aa7 - Duke: init the animation arrays early.
app_init is too late for having the data set up during script compilation.
2023-04-30 10:51:48 +02:00
Christoph Oelckers
96b0542cd8 - flag all actors that override RunState.
This is for allowing quick checks of actors which need the special consideration.
2023-04-30 09:01:28 +02:00
Christoph Oelckers
2a38e83a2f - moved the animation code out of execute so it can be used without CON. 2023-04-30 08:57:28 +02:00
Christoph Oelckers
29322777dd - adapt the animation init code for CON replaced actors and consolidated the two cases. 2023-04-30 08:46:51 +02:00
Christoph Oelckers
21a37d2c07 - added helpers needed to run CON replacement code.
* killit must exit to the top level right away. Use an exception for this.
* two new flags to make checking easier.
* do not export killit_flag to scripting.
2023-04-30 08:11:30 +02:00
Christoph Oelckers
960e58cdf2 - move the action default propeerties into FActorInfo 2023-04-30 08:07:10 +02:00
Christoph Oelckers
9d43729e8c get rid of the killit_flag in the parse state.
Use the one in the actor instead.
2023-04-30 08:04:56 +02:00
Christoph Oelckers
4e8dfe8986 - got rid of the laat picnums in Blood. 2023-04-29 11:32:04 +02:00
Christoph Oelckers
a662a3bd12 - another bunch of picnums in Blood removed.
4 remaining after this.
2023-04-29 11:32:04 +02:00
Christoph Oelckers
83dfd77bd0 - eliminate picnums in QAV code. 2023-04-29 11:32:04 +02:00
Christoph Oelckers
9a703639cb - final cleanup of Blood/Exhumed changes. 2023-04-29 11:32:04 +02:00
Christoph Oelckers
01b6d9f27f - eliminated all remaining uses of picnum in Exhumed. 2023-04-29 11:32:03 +02:00
Christoph Oelckers
44e9a66319 - handle 3 more of Exhumed's picnums that were quick to refactor 2023-04-29 11:32:03 +02:00
Christoph Oelckers
0e097903c4 - got rid of a large chunk of picnum accesses in Exhumed. 2023-04-29 11:32:03 +02:00
Christoph Oelckers
f115f9427d - got rid of a few more picnum references in Blood. 2023-04-29 11:32:03 +02:00
Christoph Oelckers
76c0de2ef1 - moved some of Blood's precaching info to external data. 2023-04-29 11:32:03 +02:00
Christoph Oelckers
52706e9afd - handle the direct assignments of values to picnum in Blood. 2023-04-29 11:32:02 +02:00
Christoph Oelckers
36c07aaca5 - did some simple picnum replacements in Blood. 2023-04-29 11:32:02 +02:00
Christoph Oelckers
47f9642294 - added compile time validation for SetAction, SetAI and SetMove.
the expression classes were deleted again, this can be done without them.
2023-04-29 10:09:36 +02:00
Christoph Oelckers
bf577916ec - made the is*** checkers compiler intrinsics.
With the exception of isWorldTour, isPlutoPak and isShareware when playing Duke these are always constant and this way can be used to completely eliminate unneeded code.
2023-04-29 10:09:36 +02:00
Christoph Oelckers
f1f1e54e04 - moved the remaining content of the flags* files directly into game.cpp 2023-04-29 09:59:54 +02:00
Christoph Oelckers
bfcceccc98 - consolidated checkhitdefault functions. 2023-04-29 09:58:42 +02:00
Christoph Oelckers
6fd4368592 - moved Duke/RR's tile name list to raze.pk3, now that internally it is not used anymore.
This way it can later also be used by editors.
2023-04-29 09:55:48 +02:00
Christoph Oelckers
44f4104eda - got rid of the last tilenum uses in Duke.
This meant refactoring the crosshair drawer to work on a named texture called "CROSSHAIR" and hard coding the magic numbers for spawndebris.
2023-04-29 09:54:15 +02:00