Commit graph

17 commits

Author SHA1 Message Date
Christoph Oelckers
7851b686ec scriptified the onHit block in actCheckThings. 2023-10-10 19:01:29 +02:00
Christoph Oelckers
3b39e1db99 scriptified and split up actSpawnThing 2023-10-09 23:11:55 +02:00
Christoph Oelckers
5ea03b339f fixed problem with retrieving mass from a former dude actor in actFireVector.
This was accessing undefined memory because the new metadata no longer had the field. Moved mass to BloodActor so that access remains safe and defined.
This seems to be the only place where this happened.
2023-10-09 16:58:09 +02:00
Christoph Oelckers
55621e9a38 access functions for the dudeinfo properties.
These get used quite often so look them up only once.
2023-10-09 16:58:04 +02:00
Christoph Oelckers
7bf6702a6a added all dudeinfo data to the dude classes. 2023-10-09 16:58:04 +02:00
Christoph Oelckers
44214d4d23 added 5 missing states and renamed a few. 2023-10-08 13:21:51 +02:00
Christoph Oelckers
a7317e700d use the script defined states.
Not fully working yet.
2023-10-08 10:07:05 +02:00
Christoph Oelckers
0ba188b7f2 add the converted states to the BloodDudeBase class. 2023-10-08 10:07:05 +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
cb443d443c Blood projectile scriptification. 2023-10-08 09:41:14 +02:00
Christoph Oelckers
11caee7477 exported actGetRespawnTime as a first simple test case. 2023-10-08 09:41:13 +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
Christoph Oelckers
051aa14830 added skeleton classes for Blood's actors. 2023-10-01 14:03:23 +02:00