Christoph Oelckers
ebf7b4a121
- copy the CON defined info into the actual actors.
...
Only using the strength value right now.
2023-04-12 20:29:37 +02:00
Christoph Oelckers
a155a09f9f
- deleted the setflag inlines.
2023-04-12 20:07:12 +02:00
Christoph Oelckers
62ace9371f
- moved the 3 actor properties out of the global data.
2023-04-12 20:07:12 +02:00
Christoph Oelckers
cc8495c31e
- got rid of the g_t pointer in the CON interpreter.
...
Using g_ac->temp_data now.
2023-04-12 20:07:12 +02:00
Christoph Oelckers
f0637cfc83
- moved actioncounter and curframe to a dedicated variable.
...
The third generic counter is not as easy to fix as its use is far more widespread
2023-04-12 20:07:12 +02:00
Christoph Oelckers
4b096f4f3e
- nulling contents of a freshly spawned actor is not necessary.
...
All objects are zero inited.
2023-04-12 20:07:11 +02:00
Christoph Oelckers
14dd9c3711
- refactored AI storage as well to not use ScriptCode anymore.
2023-04-12 20:07:11 +02:00
Christoph Oelckers
b9702fbb66
- moved 'move' data out of the ScriptCode array as well.
2023-04-12 20:07:11 +02:00
Christoph Oelckers
30ccbe2710
- moved actions out of the ScriptCode array and gave them a dedicated struct with meaningful member names.
2023-04-12 20:07:11 +02:00
Christoph Oelckers
94b676bd7c
- wrapped access to the current 'move' values read from CON.
2023-04-12 20:07:11 +02:00
Christoph Oelckers
c76c511da2
- moved sprite animation code out of 'execute'.
2023-04-12 20:07:10 +02:00
Christoph Oelckers
0c17a369db
- Duke: changed skill filter to be solely controlled by the spawnclasses definitions.
...
All classes with no skill filter now need an explicit noskill declaration.
The only exception is inert sprites using DukeActor directly, these will never get filtered by skill.
2023-04-12 20:06:25 +02:00
Christoph Oelckers
53e41bd3b3
- Duke: added missing texture alias for the cannon.
2023-04-11 20:23:34 +02:00
Christoph Oelckers
660227e175
- Duke: restrict skill filter to those actors which originally handled it.
...
For flexibility there now is a flag that can be set on any actor class, but due to precedent it needs to be off by default.
2023-04-11 20:14:02 +02:00
Christoph Oelckers
ee61daed97
- reinstate code from e2db4a8
that got removed by a badly resolved merge conflict in ae4ef64
.
2023-04-10 16:48:08 +02:00
Christoph Oelckers
2f61a44329
- Duke: do not clear the KILLCOUNT flag.
...
This seems to have gotten back by accident.
2023-04-10 16:41:58 +02:00
Christoph Oelckers
ec9ed9588c
- Exhumed: don't pass uninitialized data to the sound engine.
...
This was creating very noisy warnings.
2023-04-10 09:49:38 +02:00
Christoph Oelckers
1d79d0cee3
- Duke: fixed pitch calculation for explosion sounds.
...
This part was missed when the backend's pitch management was changed to floats instead of Q1.7 fixed point numbers.
2023-04-10 09:13:33 +02:00
Christoph Oelckers
7b1ef9e020
- Duke: Do not set SFLAG_BADGUY for internal bad guys.
...
This will pass an incorrect value for clipdist to clipmove.
2023-04-10 08:56:37 +02:00
Christoph Oelckers
3df7539eb9
- fixed return values of badguy()
and bossguy()
functions.
2023-04-09 15:45:19 +02:00
Christoph Oelckers
684fb5eb74
- added a few things missing for RR and Route 66.
...
R66's gator was also added - this is the only completely new actor in this mod.
2023-04-09 09:46:10 +02:00
Christoph Oelckers
7f758eef2b
- got rid of the script-side flag wrappers.
2023-04-09 09:46:09 +02:00
Christoph Oelckers
04a027f748
- removed most parameters from fall_common.
2023-04-09 09:46:09 +02:00
Christoph Oelckers
cfa18952d1
- deleted the native flag setter code.
2023-04-09 09:46:09 +02:00
Christoph Oelckers
918c75cb6e
- validate statnum before spawning an actor.
2023-04-09 09:46:09 +02:00
Christoph Oelckers
da0b429751
- migrated attackertype to class objects.
2023-04-09 09:46:09 +02:00
Christoph Oelckers
ae4ef6401c
- use the actual actor flags.
...
Not fully working yet...
2023-04-09 09:45:42 +02:00
Christoph Oelckers
b908ede470
- reviewed actor flags and applied several fixes.
2023-04-09 09:35:37 +02:00
Christoph Oelckers
8172a9ac0c
- moved all flags into the actor definitions.
2023-04-09 09:35:37 +02:00
Christoph Oelckers
f4c176988a
- first round of flag additions.
2023-04-09 09:35:36 +02:00
Christoph Oelckers
50d406be4e
- Duke: Do not call Initialize()
for player actors.
...
The base function is doing things not meant for players, and we do not have a proper class yet that can deal with it.
2023-04-09 08:15:23 +02:00
Christoph Oelckers
7554808104
- Blood: fixed bad damage scaling in ConcussSprite
...
This uses the square of the distance, so the factor between Build's Q28.4 format and floats is not 16, but 16*16 = 256.
2023-04-08 10:46:35 +02:00
Christoph Oelckers
e2db4a834e
- Duke: apply default scale only to enemies defined in CON.
...
This code does not apply to the Recon!
2023-04-08 09:37:51 +02:00
Christoph Oelckers
9c164ad290
- fixed crash when stomping shrunk enemies.
2023-04-08 07:14:07 +02:00
Christoph Oelckers
60339a217c
- moved a lot of shareable code out of the CON interpreter.
2023-04-07 13:15:06 +02:00
Christoph Oelckers
9ba0b18013
- moved the 3 health related instructions out of the CON interpreter.
...
This code can be shared with ZScript so it needs to be elsewhere.
2023-04-07 13:15:06 +02:00
Christoph Oelckers
980b3f257a
- converted the final set of actor classes the native code needs to reference.
2023-04-07 13:15:06 +02:00
Christoph Oelckers
2ba204444c
- merged the spawn init code now that all differences are externalized
2023-04-07 13:15:06 +02:00
Christoph Oelckers
aae2c2dc3c
- exported RR's enemies
2023-04-07 13:15:06 +02:00
Christoph Oelckers
779026162d
- exported all of RR's pickup items.
2023-04-07 13:14:19 +02:00
Christoph Oelckers
3dd87cfd7f
- got rid of checkType.
2023-04-07 12:22:46 +02:00
Christoph Oelckers
f2d802b537
- exported RR's remaining controllers.
2023-04-07 12:22:45 +02:00
Christoph Oelckers
98d5a2686e
- use for loop instead of repeating the same line 10x.
2023-04-07 12:22:45 +02:00
Christoph Oelckers
0e169759d5
- animatesprites_r.cpp cleanup
2023-04-07 12:22:45 +02:00
Christoph Oelckers
f9e5f2c137
- final clenaup on animatesprites_d.cpp.
...
Only the player actor is left, which is also the messiest part...
2023-04-07 12:22:44 +02:00
Christoph Oelckers
ce00183707
- scriptified PlayerOnWater.
2023-04-07 12:17:56 +02:00
Christoph Oelckers
3106c8e6f5
- exported most of the remaining content in spawn_d.cpp
2023-04-07 12:14:16 +02:00
Christoph Oelckers
8b04f42ab5
- exported several fire related actors.
2023-04-07 11:52:53 +02:00
Christoph Oelckers
ef6a8c010a
- exported ceilingsteam and consolidated movefallers functions.
2023-04-07 11:52:53 +02:00
Christoph Oelckers
82d04756be
- exported a few of Duke's decorations
2023-04-07 11:52:53 +02:00