Commit graph

1336 commits

Author SHA1 Message Date
Christoph Oelckers
356c425e1e some last changes. 2023-11-12 23:03:41 +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
bf8cdad155 - use spritedefs for panel sprites. 2023-11-12 21:42:51 +01:00
Christoph Oelckers
29499753a6 text update 2023-11-12 13:20:54 +01:00
Christoph Oelckers
c62418006c SW: fixed coolie death animation. 2023-11-12 08:59:55 +01:00
Christoph Oelckers
b7ed7824d9 Blood: fix ammo count for 2 items. 2023-11-12 08:41:39 +01:00
Christoph Oelckers
990cf3eafc gave translations a dedicated scripted type.
This is needed for implementing reliable serialization of custom translations. As long as they are merely ints they cannot be restored on loading a savegame because the serialization code does not know that these variables are special.
2023-11-09 23:19:48 +01:00
Christoph Oelckers
91eaa5411a updated base.zs 2023-11-09 23:19:47 +01:00
Christoph Oelckers
3c249da7dd Blood: draw the powerup overlay on the alt HUD as well. 2023-10-31 18:01:58 +01:00
Christoph Oelckers
1b6454dc5b renamed $conreserve to $resourceid.
This better matches its use, especially since it is not exclusive to CON supporting games.
2023-10-28 09:06:36 +02:00
Christoph Oelckers
6975b95402 Duke fixed two issues with displaying incorrect sprites
* We cannot check a projectiles owner because it may have been destroyed, so copy all info over
* CON changing an actor's type to one without class did not do anything at all.
2023-10-22 23:09:11 +02:00
Christoph Oelckers
401c260f9c cleanup of Blood sound playing interface 2023-10-13 23:07:17 +02:00
Christoph Oelckers
f61dc0467f Blood: route all state actions through the VM interface and renamed all states and functions with disassembly names 2023-10-08 10:07:05 +02:00
Christoph Oelckers
495e236764 allow Blood to compile with NOONE_EXTENSIONS disabled. 2023-10-08 10:07:05 +02:00
Christoph Oelckers
27a9def748 - fixed bunny 'run' sequence. 2023-10-08 09:41:17 +02:00
Christoph Oelckers
24a3d91d0d scriptified the things 2023-10-08 09:41:15 +02:00
Christoph Oelckers
6250906879 implemented proper handling of VM functions as identifiers. 2023-10-08 09:41:15 +02:00
Christoph Oelckers
2c08ee0c5d refactored SEQ callbacks as well. 2023-10-08 09:41:15 +02:00
Christoph Oelckers
11f094c7fb reference event callbacks by name, not by internal index.
This is needed to allow writing new callbacks.
2023-10-08 09:41:15 +02:00
Christoph Oelckers
47f09c61fc WIP for event callback refactor 2023-10-08 09:41:14 +02:00
Christoph Oelckers
cb443d443c Blood projectile scriptification. 2023-10-08 09:41:14 +02:00
Christoph Oelckers
93dde24ae1 added native script exports for all functions referenced b AISTATEs. 2023-10-08 09:41:13 +02:00
Christoph Oelckers
11caee7477 exported actGetRespawnTime as a first simple test case. 2023-10-08 09:41:13 +02:00
Christoph Oelckers
79ae66d5ec exported gGameOptions. 2023-10-08 09:41:12 +02:00
Christoph Oelckers
64d8fd6072 Blood: scriptified item spawning
This was merely a testbed with a limited amount of code, the biggest gain here is that the spawning no longer depends on item IDs but classes so new ones can be added later.
2023-10-08 09:41:11 +02:00
Christoph Oelckers
d83c9f51c3 added texture and class definitions for the 18 items that have no coded function 2023-10-08 09:39:46 +02:00
Mitchell Richters
3c4eb21484 - SW: Remove DSWPlayer::drive_avel, we can just use DCoreActor::lastcmd for this. 2023-10-03 23:07:43 +11:00
Christoph Oelckers
09754467ee Revert "fixed CollisionData export."
This reverts commit fe02190604.
2023-10-03 13:36:19 +02:00
Christoph Oelckers
8dc0505a65 made SW's panel sprites into actual DObjects
so that they can a) cleanly be exposed to scripting later and b) serialized for savegames without using gross hacks.
2023-10-03 12:27:15 +02:00
Christoph Oelckers
dd2ea96d6c turn players into DObjects and fix several bugs with bad memory access.
* DObjects may not be memset to 0.
* There was still code trying to retrieve the player index with pointer artithmetic. With an array of pointers this does not work.
2023-10-02 21:03:59 +02:00
Christoph Oelckers
d60834be3d fixed GC handling of players.
These were missing null checks, the player pointers also weren't nulled after deleting the objects.
2023-10-02 19:03:27 +02:00
Christoph Oelckers
762263671a exported the main structures in Blood that make up a BloodActor.
nnext stuff was omitted for now.
This also eliminates the DUDEEXTRA_STATS substructure and integrates its content directly into DUDEEXTRA.
2023-10-01 22:25:08 +02:00
Christoph Oelckers
fe02190604 fixed CollisionData export. 2023-10-01 21:06:53 +02:00
Christoph Oelckers
3aafcb94f1 exported XSECTOR and XWALL.
this required an extension to the ZScript front end to allow defining the bitfield flag variables which cannot have their address taken.
2023-10-01 20:39:40 +02:00
Christoph Oelckers
5a26989d06 exported the game specific sector/wall properties. 2023-10-01 18:54:10 +02:00
Christoph Oelckers
f71000fe6f wrapped all remaining access to type. 2023-10-01 14:06:59 +02:00
Christoph Oelckers
7379288f4b directory structure cleanup 2023-10-01 14:03:44 +02:00
Christoph Oelckers
7e225a65f1 Blood spawnclasses list 2023-10-01 14:03:23 +02:00
Christoph Oelckers
051aa14830 added skeleton classes for Blood's actors. 2023-10-01 14:03:23 +02:00
Christoph Oelckers
19dfd84320 use global stat manager in SW 2023-10-01 10:33:07 +02:00
Christoph Oelckers
3e821c5849 use global stat manager in Duke 2023-10-01 10:07:54 +02:00
Christoph Oelckers
b05b409695 Blood: removed 3 unused members in PLAYER 2023-09-28 11:45:16 +02:00
Mitchell Richters
29e021b5bf - Move crouch toggling back into the backend so the toggle key can be used as a swim key.
* Reverts 272dfa762d, but is a fresh implementation.
* I doubted anyone was doing this but apparently not.
* Exhumed needed a bit more work as it has very specific underwater checks.
2023-09-24 14:15:49 +10:00
Christoph Oelckers
0480a5e992 - fixed language menu selection. 2023-09-23 14:10:42 +02:00
Christoph Oelckers
aa63e39fa5 - fixed broken gamedef for the fixed DukeDC. 2023-09-23 14:03:46 +02:00
Christoph Oelckers
696a587dc3 - RR: fixed inheritance of two items. 2023-09-23 11:59:33 +02:00
Christoph Oelckers
a41ebfeb73 - Duke: fixed the explosion's lighting hackery.
The animatesprites handler in the old code got called on the already animated sprite, meaning it will only activate for the first frame.
To do this right the code had to be moved to applyanimations and be guarded by a flag.
2023-09-10 20:42:26 +02:00
Christoph Oelckers
b9eced0d11 - fix animate for some explosion FX. 2023-09-10 19:56:35 +02:00
Christoph Oelckers
0c0395043e - added one more variant each of DukeDC and Vacation add ons. 2023-09-09 09:08:30 +02:00
Christoph Oelckers
96901d1638 - added missing cyrillic у (small U) for Blood's SmallFont 2023-09-06 00:12:24 +02:00