Christoph Oelckers
bbe3f333fa
- replaced some GetSpriteExtents calls with GetActorExtents.
2021-10-09 23:08:43 +02:00
Christoph Oelckers
44b0e59127
- aiProcessDudes and aiInitSprite done, completing the main pass over ai.cpp.
2021-10-09 23:08:43 +02:00
Christoph Oelckers
29e245dfce
- aiProcessDudes, getting rid of the global cumulDamage array and some reformatting
2021-10-09 23:04:29 +02:00
Christoph Oelckers
6968a072ae
- another formatting-only commit.
...
# Conflicts:
# source/games/blood/src/ai.cpp
2021-10-09 23:04:29 +02:00
Christoph Oelckers
fe92188b0c
- removed the dudeIsPlayingSeq variant taking a sprite parameter.
2021-10-09 23:03:09 +02:00
Christoph Oelckers
890cc4947b
- use actor parameters for aiSetTarget and aiActivateDude in several places.
2021-10-09 23:03:09 +02:00
Christoph Oelckers
61d9cd1b17
- switched all aiPlay3DSound calls to use actors.
2021-10-09 23:02:40 +02:00
Christoph Oelckers
bdba52aede
- refactored aiDamageSprite.
2021-10-09 23:02:20 +02:00
Christoph Oelckers
10b0bba53e
- fixed warnings in Exhumed.
2021-10-08 19:24:45 +02:00
Christoph Oelckers
948f194064
- fixed warnings in Duke.
2021-10-08 19:21:29 +02:00
Christoph Oelckers
8606b2ea5a
- fixed warnings in Blood.
2021-10-08 19:09:26 +02:00
Christoph Oelckers
9b047c771c
- reformatting of aiDamageSprite, no logic change here.
2021-10-07 22:54:18 +02:00
Christoph Oelckers
c8501f8ea6
- refactored aiSetTarget
2021-10-07 22:54:18 +02:00
carnivoroussociety
e6e9bac04b
Add ifdef'd correct code for DUDEEXTRA struct saving
2021-10-07 22:51:43 +02:00
carnivoroussociety
8998d92688
Restore original savename variables for DUDEEXTRA struct
2021-10-07 22:51:42 +02:00
carnivoroussociety
8dbd0f10d3
Refactored DUDEEXTRA struct and correctly init state
...
# Conflicts:
# source/games/blood/src/aiboneel.cpp
# source/games/blood/src/aicerber.cpp
# source/games/blood/src/aigarg.cpp
# source/games/blood/src/aighost.cpp
# source/games/blood/src/aitchern.cpp
2021-10-07 22:51:42 +02:00
Christoph Oelckers
8168c6f85c
- use the vel() wrappers in a few more places.
2021-10-07 22:48:08 +02:00
Christoph Oelckers
595893a9a0
- added a few more ValidateTarget calls.
2021-10-07 22:48:08 +02:00
Christoph Oelckers
a3a5e7e90b
- renamed aiSetTarget.
2021-10-07 22:48:08 +02:00
Mitch Richters
61ba58c529
- Duke: Use DeferredGameStart()
instead of ChangeLevel()
in cheatLevel()
to instantly warp to the targeted map, matching DOS behaviour.
...
* Fixes #529 .
2021-10-05 08:50:05 +11:00
Mitch Richters
5732ea0233
Revert "- Blood: Use more precision for flicker, quake and tilt effects."
...
This reverts commit 3c09f41b43
.
* Fixes #554 .
2021-10-05 08:43:32 +11:00
Christoph Oelckers
95acafdbac
- manual update of NBlood commit 24908021f3b844a73de05632565d55d5b71b577c
...
- Fix kModernCustomDude is not inheriting sprite size if SEQ have zero repeats
- Damage scale tweaks for kModernCustomDude
- Fix hitscan kModernCondition
2021-09-19 16:35:02 +02:00
Christoph Oelckers
1732d206bd
- Blood: fixed flare gun no longer being able to set trees on fire.
...
Somehow a bad damage type got in here...
2021-09-18 20:13:05 +02:00
Christoph Oelckers
11aea1c5d4
- more target replacements.
2021-09-17 20:49:27 +02:00
Christoph Oelckers
b9f6120380
- handle target validations in AI functions properly.
...
Now they will all print the function name along with the message and not rely on assert abuse.
2021-09-17 20:49:27 +02:00
Christoph Oelckers
261301bdea
- replacing target_i, batch 1.
...
This was the simple stuff, mostly done by search&replacing common patterns.
2021-09-17 20:49:27 +02:00
Christoph Oelckers
90091965ba
- replaced most occurences of target_i in already refactored code.
2021-09-17 20:49:27 +02:00
Christoph Oelckers
7a6629ce6a
- renamed XSPRITE::target to target_i.
...
This is to make searching for it easier as 'target' is a very common word in the source.
2021-09-17 20:49:26 +02:00
Christoph Oelckers
774a015e6b
- aiChooseDirection and its subfunctions.
2021-09-17 20:49:26 +02:00
Christoph Oelckers
a79d362b40
- dudeIsPlayingSeq + aiPlay3DSound.
2021-09-17 20:49:26 +02:00
Christoph Oelckers
7054313dd4
- formatting only.
2021-09-17 20:49:26 +02:00
Christoph Oelckers
00d0099333
- removed a few compatibility wrappers.
2021-09-17 20:49:26 +02:00
Christoph Oelckers
6a1ffca34f
- actCheckExplosion, removed array access from SEQ callbacks in actor.cpp and renamed the two which still had assembly names.
2021-09-17 20:49:25 +02:00
Christoph Oelckers
663ecc79d1
- actFireVector
2021-09-17 20:49:25 +02:00
Christoph Oelckers
d6724185b3
- removed a few redundant one-liner functions.
2021-09-17 20:49:25 +02:00
Christoph Oelckers
d7078dda48
- actGetRespawnTime + actCheckRespawn.
2021-09-17 20:49:25 +02:00
Christoph Oelckers
6db18e61d9
- Blood: use a TArray for gPost and store actors as pointers.
...
This also does not need to be serialized because it gets cleared at the end of each game tick and will always be empty when saving is done.
2021-09-17 20:49:05 +02:00
Christoph Oelckers
4526f4149b
- actSpawnThing and actFireThing.
2021-09-16 00:11:20 +02:00
Christoph Oelckers
7c1826e909
- fixed typo in the actor variant of seqKill.
2021-09-16 00:04:18 +02:00
Christoph Oelckers
c5d7455317
- actSpawnDude.
2021-09-16 00:01:16 +02:00
Christoph Oelckers
6be611fd94
- fixed merge.
2021-09-12 18:32:11 +02:00
Christoph Oelckers
d466ea155f
- Exhumed: Avoid masking bits into the sector index as well.
...
# Conflicts:
# source/games/exhumed/src/player.cpp
2021-09-12 18:28:47 +02:00
Christoph Oelckers
9991e6665c
- Exhumed: Avoid masking sound flags into the sprite index.
...
This put a hard 4096 sprites limit into the engine. It's also a blocker for refactoring.
2021-09-12 18:27:30 +02:00
Christoph Oelckers
d82b7ff51c
- Exhumed: renamed disassembly variable.
2021-09-12 18:27:30 +02:00
Christoph Oelckers
f7a475aa94
- Exhumed: fixed sound origin in DoRegenerates.
...
Should be the actual sprite, not the table index...
# Conflicts:
# source/games/exhumed/src/items.cpp
2021-09-12 18:27:17 +02:00
Christoph Oelckers
7f485bfab1
- split off the extended sprite flags into their own word.
...
Some code overwrites the cstat field entirely (thanks Duke, for being sloppy with this...!)
2021-09-12 18:26:35 +02:00
Christoph Oelckers
61bc90949b
- Blood: fixed super secret notification on the level summary screen.
2021-09-12 18:17:51 +02:00
Christoph Oelckers
0e82d75325
- SW: fixed recursive saving of panel sprites
2021-09-12 18:17:50 +02:00
Christoph Oelckers
bad57f6a5f
- clear pspAsArray at the beginning of a save/load operation, not at the end.
...
If done at the end it may leave behind some stale data if saving or loading fails for some reason.
2021-09-12 18:17:50 +02:00
Christoph Oelckers
e13426ec6e
- SW: avoid crashing when unwinding from a savegame loading error.
...
The linked list may be incomplete in this case.
Also kept the macro unmangling done to debug this code.
2021-09-12 18:17:50 +02:00