Christoph Oelckers
72df9c26d8
- Duke: fixed: SE31's handler overwrote the interpolation coordinates, which rendered interpolation ineffective.
...
Also removing some redundant coordinate copying. Since we save all sprite coordinates at the start of a frame, there is no need to do the same again in the stat handlers.
Fixes #237
2020-12-11 19:17:41 +01:00
Christoph Oelckers
dd7d661f9a
- explicitly disable mipmapping for indexed textures.
...
It looks like this code was not handled properly.
2020-12-10 20:46:44 +01:00
Christoph Oelckers
ddd0b412ae
- Exhumed: only run the level init code after loading a save, not after saving.
...
Fixes #221
2020-12-10 20:25:20 +01:00
Christoph Oelckers
6c36852ceb
- SW: fixed positioning of the inventory bar.
2020-12-10 20:20:17 +01:00
Christoph Oelckers
5b78f84bd7
- Blood: only set 'isrunning' when the player is actually running and not when just the run key is held down.
...
The old logic does not work because the run toggle results in this button being continuously held down.
2020-12-10 19:23:38 +01:00
Christoph Oelckers
fdd9c10a55
- fixed: the statistics display didn't take the HUD's scale factor into account.
...
Fixes #229
2020-12-10 19:20:24 +01:00
Christoph Oelckers
a8fd2e7ec3
- RR: fixed inventory display overlapping the weapon bar in status bar mode.
...
Fixes #231
2020-12-10 19:07:15 +01:00
Christoph Oelckers
f41fe7c692
- Blood: fixed double inventory display on overlay status bar.
...
Fixes #230
2020-12-10 19:02:09 +01:00
Christoph Oelckers
94d3d643d7
- fixed: the file system's entry count was not updated before rehashing.
...
This broke Blood's RFS parser.
2020-12-09 18:56:17 +01:00
Christoph Oelckers
b98e06cd20
- Blood: header dependency cleanup.
...
These are extremely ordering dependent so now blood.h serves as an umbrella header for most.
2020-12-09 15:56:32 +01:00
Christoph Oelckers
2c917ca7e1
- fixed cherry picked commit from upstream.
2020-12-08 22:21:03 +01:00
Christoph Oelckers
b3988165e2
- SW: fixed bad sector iterator in DriveCrush.
...
This was causing spurious crashes.
Fixes #218
2020-12-08 22:09:17 +01:00
Szilárd Biró
3713cb0f09
PCExhumed: Torch bouncing fix
2020-12-08 22:03:43 +01:00
Christoph Oelckers
1a2b93f402
- fixed sky panning in Duke.
...
This needs to take the composite texture into account because panning in Build is based on tile size, not map dimension.
It was also redone to use floating point to get rid of the horrible precision of the scrolling effect.
2020-12-06 20:49:32 +01:00
Christoph Oelckers
88bed95400
- Exhumed: Changed visibility from 2048 to 1024 because 2048 is clearly far too dark.
...
GDX also uses 1024 - I have no idea how PCExhumed gets away with 2048 here.
2020-12-06 20:25:23 +01:00
Christoph Oelckers
8d659bad32
- fixed V5/V6 format map loader.
2020-12-06 20:17:27 +01:00
Mitchell Richters
1e8fe482f3
- Duke: Partially address excessively fast sky in E4L1 as reported in #217 .
...
* Before d545eb7aa9
, `moveclouds()` simply set `ceilingxpanning`/`ceilingypanning`. Afterwards, it was accumulating with every passing loop.
* Despite fixing this, still seems a bit fast.
2020-12-06 23:51:20 +11:00
Christoph Oelckers
51205fbdac
- split actInit into several smaller functions.
2020-12-06 12:52:08 +01:00
Christoph Oelckers
eee972d446
- removed some unused functions from actor.cpp.
2020-12-06 12:51:46 +01:00
Christoph Oelckers
19b731bc8f
- removed the owner fuckery in Blood.
...
Par for course I'd say - instead of checking for replaced player actors at the only time it really matters - i.e. when respawning, it was encoded into the stored value, making the entire thing very messy.
For mow, multiplayer handling is not needed, but when it does, better go over all actors and manually substitute the two relevant fields, i.e. sprite.owner and xsprite.burnsource.
2020-12-06 12:51:46 +01:00
Christoph Oelckers
045e487859
- actInit cleanup, new iterators returning DBloodActor.
2020-12-06 12:51:46 +01:00
Christoph Oelckers
c92aaaee20
- This is version 0.8.0
...
Finally out of alpha, now that the model code is working. :)
2020-12-06 10:51:35 +01:00
Gaerzi
d644065103
- SW: Fix another bad line from 06a069750f
that was missed when doing a36c122ff1
.
2020-12-06 20:11:26 +11:00
Mitchell Richters
a36c122ff1
- SW: Fix bad copy-paste from 06a069750f
that was causing issues with SO vehicles and turrets.
...
* Fixes #211 .
2020-12-06 19:16:59 +11:00
Christoph Oelckers
d4198a5b1a
- Exhumed: 'paused' should not be part of the 'in a game' check.
...
Fixes #209
2020-12-06 08:39:40 +01:00
Christoph Oelckers
5fc8859342
- Blood: instead of messing around with the damage factors when toggling god mode, let the game check the actual god mode flag itself.
...
This was just too volatile and prone to breakage.
Fixes #210 .
2020-12-06 08:36:54 +01:00
Christoph Oelckers
99da4151d1
- fixed duplicate "snakecam" key in Exhumed savegame
...
This could cause the snake cam to be activated just by reloading a save.
Fixes #213
2020-12-06 08:22:56 +01:00
Christoph Oelckers
2f4abf93af
- fixed loading of Blood savegames.
...
This was a strange case of C++ not doing what was to be expected due to hidden semantics.
Note: never assign {} to a type that has a non-default constructor!
Fixes #212
2020-12-06 08:18:03 +01:00
Christoph Oelckers
d04013066c
- build a composite texture of all the segments for sky rendering to reduce the seams between the single segments.
2020-12-04 22:29:25 +01:00
Christoph Oelckers
aba3539275
- moved dudeSlope fully into DBloodActor.
2020-12-04 18:03:02 +01:00
Christoph Oelckers
99c0b77cf2
- rerouted all accesses to gDudeSlope.
2020-12-04 18:03:02 +01:00
Christoph Oelckers
7e78bc1c14
- refactored the SEQ callback to receive an actor pointer instead of an xsprite index.
2020-12-04 18:03:01 +01:00
Christoph Oelckers
44805e29b3
- changed parameter of aiNewState to DBloodActor
2020-12-04 18:03:01 +01:00
Christoph Oelckers
502d911a95
- refactored Blood's AI callback interface to only use a single DBloodActor parameter.
2020-12-04 18:03:01 +01:00
Christoph Oelckers
0ac41e0b5a
- drafted a DBloodActor to wrap the multitude of arrays (12 overall!) in which an actor is split up.
2020-12-04 18:03:01 +01:00
Christoph Oelckers
bc1adc9c51
- Blood: fixed cl_autorun affecting bobbing intensity even when no movement takes place.
...
Blood uses the state of the 'run' bit as the sole information that the player is running, which leads to very different behavior with cl_autorun on or off.
Apparently Raze's semantics here do not agree with how it was handled originally and the residual bobbing when coming to a stop was more than a little bit distracting.
2020-12-04 00:06:23 +01:00
Christoph Oelckers
396e3cd524
- actually call the model animation timer somewhere.
...
Now models also animate properly. :)
2020-12-02 00:19:22 +01:00
Christoph Oelckers
25ef58f897
- re-enabled all model specific code in Duke's animatesprites function and removed some remaining software renderer-only code in the engine.
2020-12-01 23:57:39 +01:00
Christoph Oelckers
9a507e5d0a
- fixed model rendering.
...
(What a stupid mistake... :?)
Model animations still do not work as intended, though.
2020-12-01 22:03:20 +01:00
Christoph Oelckers
b0bf51ec5c
- Duke/RR: Selecting the alternative weapon must set the proper bits in 'subweapon'.
...
Otherwise the weapon cycling breaks.
Fixes #182
2020-12-01 21:07:38 +01:00
Christoph Oelckers
06a069750f
- addressed more type casting issues in SW.
...
This should cover everything with coordinates.
2020-12-01 19:01:38 +01:00
Christoph Oelckers
39b67b4086
- SW: removed some very dangerous type casting.
2020-12-01 18:30:21 +01:00
Christoph Oelckers
b52668ecdf
- SW: added some simple allocation wrappers around common code sequences.
2020-12-01 16:53:29 +01:00
Christoph Oelckers
6dfe869614
- shorten the struct for puser to what actually gets used from it.
...
This is preparation for making USER more serialization friendly as it was copied to puser.
2020-12-01 16:22:32 +01:00
Christoph Oelckers
dd75c8dbe4
- weaken the reverb in Duke.
...
Unfortunately the entire thing is very poorly defined, not setting it for sectors but for sprites with a distance. But some of these sprites cover non-reverb sectors as well and this can produce some ugly sound field in spots where this isn't wanted at all.
2020-12-01 16:34:47 +01:00
Christoph Oelckers
1d6d58538c
- cleaned out the remains of the old savegame code.
2020-12-01 12:58:10 +01:00
Christoph Oelckers
67dff2a863
- Exhumed: Serialize global state as JSON.
...
This was the last item to be converted.
2020-12-01 12:58:10 +01:00
Christoph Oelckers
487d62e264
- Exhumed: Bullet and Grenade.
2020-12-01 12:58:10 +01:00
Christoph Oelckers
54eec61828
- Exhumed: Init
2020-12-01 12:58:10 +01:00
Christoph Oelckers
15579798ad
- Exhumed: bubbles and gun.
2020-12-01 12:58:09 +01:00