Mitch Richters
73c5bef580
- Blood: Remove duplicated code from render3DViewPolymost()
that's already performed in viewDrawScreen()
.
2021-11-29 00:56:33 +01:00
carnivoroussociety
61cafc7d57
[Blood] Fix self collisions for lifeleech projectiles
2021-11-29 00:56:33 +01:00
carnivoroussociety
958d004119
[Blood] Match view height clamping behavior to 1.21
2021-11-29 00:56:32 +01:00
Christoph Oelckers
cd3288860a
- fixed automap player drawing for follpw mode off in all games.
2021-11-29 00:56:32 +01:00
Christoph Oelckers
adf3133fdc
- use sectnum and wallnum to get an index from pointers instead of subtracting the array base.
2021-11-29 00:56:26 +01:00
Christoph Oelckers
7126aa22f4
- preparations in the map loader for dynamically sized data storage.
...
This also consolidates these parts for Blood with the other games.
2021-11-29 00:56:25 +01:00
Christoph Oelckers
12c26976f0
- GetClosestSpriteSectors: replace distance calculation with proper math.
...
No need to sample multiple points along the wall if we can just properly calculate the actual distance. :)
2021-11-29 00:55:44 +01:00
Christoph Oelckers
d2f0934726
- Blood: cleaned up GetClosestSpriteSectors
...
using BFSSearch now and avoiding pointless loop to avoid setting the checked bit.
The entire outcome was just as if the bit was never checked inside the loop, so do just that when not running in compatibility mode.
This simplifies the remaining code quite a lot because it now just needs to run over all walls with no special case considered.
2021-11-29 00:55:44 +01:00
Christoph Oelckers
1bbbeb8f4c
- Blood: reworked GetClosestSpriteSectors to use dynamic arrays, deleted unused GetClosestSectors.
...
# Conflicts:
# source/games/blood/src/aibeast.cpp
# Conflicts:
# source/games/blood/src/aibeast.cpp
# source/games/blood/src/gameutil.h
2021-11-29 00:55:43 +01:00
Christoph Oelckers
28eca1a023
‚char‘ review in Blood - part 2
2021-11-29 00:55:42 +01:00
Christoph Oelckers
5422bff683
‚char‘ review in Blood - part 1
2021-11-29 00:55:42 +01:00
Christoph Oelckers
53998c9cb7
- Blood: remove unneeded replacement functions.
...
changespritesect is the only one called from the engine.
2021-11-29 00:55:42 +01:00
Christoph Oelckers
e9c79292ff
- Blood: use wider integer types for a few more things
...
Mainly removing shorts from all function signatures, except the engine replace interface, replacing them either with int or bool, depending on the use case.
2021-11-29 00:55:41 +01:00
Christoph Oelckers
b685163ab1
- Blood: extend all 16 bit fields holding sector or wall indices to 32 bit.
2021-11-29 00:55:41 +01:00
Christoph Oelckers
499dc9953b
- reduction of 'short' noise in Blood.
...
Mainly using int16_t for deliberately sized struct fields, auto for temporary saves of global data and making several local variables full int.
This changes nothing substantial.
2021-11-29 00:55:41 +01:00
Mitch Richters
974ca7bd1d
- Remove a lot of reference values on primitive data types from Blood's QAV interpolation system. Also use move assignments on the ignoredata
TMap when we're adding it to the game-side after processing it.
2021-11-29 00:55:31 +01:00
Christoph Oelckers
01abe7b2ac
- addressed most unused/uninitialized variable warnings from MSVC.
2021-11-29 00:55:30 +01:00
Christoph Oelckers
c6bd5c04c7
- fixed most warnings GCC pointed out in game code.
2021-11-29 00:55:29 +01:00
Mitch Richters
e491d15ff9
- Move InputScale()
out of inputstate.cpp and into i_time.cpp
as I_GetInputFrac()
to make it available to GZDoom for potential future requirements.
...
* As part of this, feed the output of `I_GetInputFrac()` to `gi->GetInput()` instead of having each game's virtual override calling it locally.
2021-11-29 00:55:01 +01:00
Christoph Oelckers
08bc31e6e2
- use GetIndex function where appropriate.
2021-11-29 00:55:00 +01:00
Christoph Oelckers
ad95033c64
- removed temporary workaround
2021-11-29 00:55:00 +01:00
Christoph Oelckers
40b22a90e9
- Blood: cleaned out some crutches needed to deal with the broken vanilla savegame code.
...
Raze has fixed its savegame format so that it can fully restore a game session from it.
As a result, nnExtInitModernStuff was never called with 'saveload' set to true and none of this code ever executed.
2021-11-29 00:55:00 +01:00
Christoph Oelckers
b6d00667de
- something insignificant that was missed.
2021-11-29 00:55:00 +01:00
Christoph Oelckers
433764fd91
- mark all places using a sprite index that needs addressing with a GetSpriteIndex function.
2021-11-29 00:55:00 +01:00
Christoph Oelckers
c40266625b
- moved gInterpolateSprite into DBloodActor
2021-11-29 00:55:00 +01:00
Christoph Oelckers
bac40ddb05
- viewBackupSpriteLoc calls
2021-11-29 00:54:59 +01:00
Christoph Oelckers
98a3564ee6
- use GetIndex for error messages and deleted several unused index variables.
2021-11-29 00:54:59 +01:00
Christoph Oelckers
21a208e59e
- eliminated most references to spritetype::extra
...
This was all places that could have been done earlier but had been overlooked.
2021-11-29 00:54:59 +01:00
Christoph Oelckers
3d63c44aae
- GCC warned about this.
2021-11-29 00:54:59 +01:00
Christoph Oelckers
fb95f0fff7
- store an actual actor pointer in PLAYER.
...
# Conflicts:
# source/games/blood/src/player.cpp
2021-11-29 00:54:58 +01:00
Christoph Oelckers
812b18e49a
- some xsprite cleanup
2021-11-29 00:54:58 +01:00
Christoph Oelckers
3e452994d8
- handle all of gUpper/gLowerLink.
...
This completes the removal of all access to the global arrays outside of setup code.
2021-11-29 00:54:58 +01:00
Christoph Oelckers
5b9152abfd
- eliminated the last access to playerActors in trigger.cpp and made AimTargets a pointer array.
2021-11-29 00:54:58 +01:00
Christoph Oelckers
6dd7cbe8fa
- GetCrushedSpriteExtents and leftover bloodActors references.
2021-11-29 00:54:58 +01:00
Christoph Oelckers
d2bc254e03
- the rest of triggers.cpp.
2021-11-29 00:54:57 +01:00
Christoph Oelckers
9349e7bcb1
- several simple functions.
...
Also two fixes involving trTriggerSprite.
2021-11-29 00:54:57 +01:00
Christoph Oelckers
0ae664e9ca
- SetSpriteState
2021-11-29 00:53:57 +01:00
Christoph Oelckers
7e8fc3fe65
- target in UpdateAimVector, teslaHit.
2021-11-29 00:53:56 +01:00
Christoph Oelckers
7d1c81626e
- changed all naked Stat/SectIterator loops to use the Blood... variants.
2021-11-29 00:53:56 +01:00
Christoph Oelckers
9016256ac2
- savegame hackery for sequences.
2021-11-29 00:53:56 +01:00
Christoph Oelckers
4e1e9ca0c9
- proper actor managements in SEQINST.
2021-11-29 00:53:56 +01:00
Christoph Oelckers
7204b8e026
- deal with QAV::nIndex.
...
This was totally redundant. Since the player already gets passed as 'Data', we can just make that pointer a PLAYER type and use it instead to retrieve the playing actor for sound purposes.
2021-11-29 00:53:56 +01:00
Christoph Oelckers
70cd4d9466
- minor sprite[] stuff.
2021-11-29 00:53:55 +01:00
Christoph Oelckers
8f974dc1d8
- the remaining functions of player.cpp.
2021-11-29 00:53:55 +01:00
Christoph Oelckers
fddc213fa8
- made PLAYER::fragger an actor pointer.
2021-11-29 00:53:55 +01:00
Christoph Oelckers
abee5c5eaa
- parameters in Pickup functions, getting rid of all (x)sprite[] references in player.cpp.
2021-11-29 00:53:55 +01:00
Christoph Oelckers
07e88e36f6
- ActionScan cleanup plus smaller bits in player.cpp
...
# Conflicts:
# source/games/blood/src/player.cpp
2021-11-29 00:53:55 +01:00
Christoph Oelckers
e95936efd6
- made PLAYER::used2 an actor array and renamed it to match its purpose.
...
Note: Renaming this for savegames is fine, as it's not relevant in singleplayer.
2021-11-29 00:53:54 +01:00
Christoph Oelckers
165b2f29ff
- removed last remaining accesses to sprite[] and xsprite[] from nnexts.cpp.
2021-11-29 00:53:54 +01:00
Christoph Oelckers
85c4b96177
- removed all access to sprite[] from mirrors.cpp.
2021-11-29 00:53:54 +01:00