Christoph Oelckers
509d56d042
- handle bunny scaling in SW
2022-10-30 16:51:29 +01:00
Christoph Oelckers
2ceb41fcf4
- BuildAnim in Exhumed
2022-10-30 16:51:28 +01:00
Christoph Oelckers
f30a76dfc9
- BuildAnim wrapper
2022-10-30 16:51:28 +01:00
Christoph Oelckers
43b8f92f91
- all of Exhumed except BuildAnim
2022-10-30 16:51:28 +01:00
Christoph Oelckers
62427f8260
- handle xrepeat abuse in Exhumed’s energy blocks
2022-10-30 16:51:28 +01:00
Christoph Oelckers
42679d58bb
- lots of repeats in Exhumed
2022-10-30 16:51:28 +01:00
Christoph Oelckers
558eaf38e1
- the last repeats in Duke
...
Mostly constants in the spawn code
2022-10-30 16:51:27 +01:00
Christoph Oelckers
bda616eb01
- fixed warning
2022-10-30 16:51:27 +01:00
Christoph Oelckers
2a4483e860
- all remaining repeats in Duke except spawn_d and spawn_r
2022-10-30 16:51:27 +01:00
Christoph Oelckers
38f7935ee9
- repeats in actors_d.cpp and actors_r.cpp
2022-10-30 16:51:27 +01:00
Christoph Oelckers
bc26f16ed5
- refactoring CreateActor - part 2
2022-10-30 16:51:26 +01:00
Christoph Oelckers
1a22127123
- refactoring CreateActor - part 1
2022-10-30 16:51:26 +01:00
Christoph Oelckers
44f0a6ae67
- handle the bolts
...
These used temp_data which was remapped to temp_pos for being floats.
2022-10-30 16:51:26 +01:00
Christoph Oelckers
dd3346cbc5
- mostly comparisons and code surrounding them
2022-10-30 16:51:26 +01:00
Christoph Oelckers
fb164450a7
- use MultScale
2022-10-30 16:51:25 +01:00
Christoph Oelckers
e749a0e9a4
- a bunch of repeats in actor_d.cpp
2022-10-30 16:51:25 +01:00
Christoph Oelckers
4c151ef15a
- the remaining repeats in Duke’s actor.cpp
2022-10-30 16:51:25 +01:00
Christoph Oelckers
5700d25120
- minor cleanup on scaling code
2022-10-30 16:51:25 +01:00
Mitchell Richters
befa5a933c
- Duke: Fix questionable setup in previous commit to interpolate SE_20_STRETCH_BRIDGE
.
2022-10-30 16:51:25 +01:00
Mitchell Richters
05a05c6406
- Duke: Fix interpolation for SE_20_STRETCH_BRIDGE
, such as curtains in E1L1/2/3.
...
* I'm not sure if there's a better way to handle this, but I had to do the nested `twoSided()` checks to ensure all walls of E1L3's curtains in the execution chair viewing room interpolated as expected.
2022-10-30 16:51:24 +01:00
Mitchell Richters
b3943a0c04
- Duke: Maintain x/y/z velocity when falling through a portal, such as E1L1's air duct.
2022-10-30 16:51:24 +01:00
Mitchell Richters
7e7c1b1179
- Duke: Fix hitching going up/down on SE17 elevators, and Z interpolation while jumping, etc.
2022-10-30 16:51:24 +01:00
Mitchell Richters
ffc16635b2
- Blood: Make bobPhase
a proper float.
2022-10-30 16:51:24 +01:00
Mitchell Richters
80f4124b17
- Duke: Fix integer division in shootrpg()
.
...
* Stems from initial floatification in `- floatified Duke's shootrpg`.
2022-10-30 16:51:23 +01:00
Christoph Oelckers
520d838a8c
- use Scale wrappers in global code and parts of Duke.
2022-10-30 16:51:23 +01:00
Christoph Oelckers
1c82d19d37
- handled all remaining x/yrepeat in Blood.
2022-10-30 16:51:23 +01:00
Christoph Oelckers
1d48b0776e
- cleanup in Blood plus repeats in aiunicult.cpp
...
* removed the picWidth/Height functions because their one use can be easily inlined
* deleted the unused initvals in GENDUDEEXTRA
2022-10-30 16:51:23 +01:00
Christoph Oelckers
1085752e01
- added more Scale wrappers to spritetype.
2022-10-30 16:51:23 +01:00
Christoph Oelckers
8a8ef22e53
- mostly '>' comparisons with scale values.
2022-10-30 16:51:22 +01:00
Christoph Oelckers
f5e1709c37
- renamed yet another bunch of repeat variables.
2022-10-30 16:51:22 +01:00
Christoph Oelckers
78bf99434e
- removed some pointless comments.
2022-10-30 16:51:22 +01:00
Christoph Oelckers
4a3ff0bd50
- fixed two bad scale checks in Blood's fat zombie.
2022-10-30 16:51:22 +01:00
Christoph Oelckers
6a3a811a42
- repeats in the wall sprite renderer
2022-10-30 16:51:22 +01:00
Christoph Oelckers
a11a366697
- some automatic replacements.
2022-10-30 16:51:21 +01:00
Christoph Oelckers
730c0ef66d
- lots of repeats in RR's spawn code.
2022-10-30 16:51:21 +01:00
Christoph Oelckers
9d8df61324
- got rid of the int version of GetOffsetAndHeight.
2022-10-30 16:51:21 +01:00
Christoph Oelckers
a6fb831894
- scaling demessification in the voxel renderer
...
(needs thorough testing!!!)
2022-10-30 16:51:21 +01:00
Christoph Oelckers
91c318b708
- renamed most non-sprite xrepeat and yrepeat as refactpring aid.
...
These will be renamed back later but now they create too much search noise.
A few local variables have been permanently renamed to scale*.
2022-10-30 16:51:20 +01:00
Christoph Oelckers
c678298141
- wrap repeats in the renderer.
2022-10-30 16:51:20 +01:00
Christoph Oelckers
cf5d787f40
- manual repeats in Duke.
2022-10-30 16:51:20 +01:00
Christoph Oelckers
adb3cb888e
- manual repeats in Blood.
2022-10-30 16:51:20 +01:00
Christoph Oelckers
2589e7030c
- more repeats replaced by SetScale.
2022-10-30 16:51:19 +01:00
Mitchell Richters
b004de9fb0
- Remove leftover x/y repeats from - several manual replacements with SetScale.
.
2022-10-30 16:51:19 +01:00
Christoph Oelckers
71d61b26df
- 34 more uses of SetScale.
2022-10-30 16:51:19 +01:00
Christoph Oelckers
e60fafec52
- got rid of most REPEAT_SCALE factors.
2022-10-30 16:51:19 +01:00
Christoph Oelckers
8c308c8d3e
- added ScaleY method to spritetype and used it to get rid of a large amount of 'yrepeat * REPEAT_SCALE'
2022-10-30 16:51:18 +01:00
Christoph Oelckers
8d1626de02
- yet more SetScale uses.
2022-10-30 16:51:18 +01:00
Christoph Oelckers
e6a97157d7
- several manual replacements with SetScale.
2022-10-30 16:51:18 +01:00
Christoph Oelckers
d8fac32459
- more simple SetScale replacements.
2022-10-30 16:51:17 +01:00
Christoph Oelckers
86d6ba43d4
- more automatic SetScale replacement, plus all of SetScale(0.5, 0.5);
2022-10-30 16:51:17 +01:00
Christoph Oelckers
c7c3b2a20c
- added a SetScale method to spritetype and used it for all places setting x/yrepeat to 0.
2022-10-30 16:51:17 +01:00
Christoph Oelckers
35fbc634de
- silence some warnings
2022-10-30 16:51:17 +01:00
Christoph Oelckers
30112e1289
- deal with clipdist in nnexts
2022-10-30 16:51:17 +01:00
Christoph Oelckers
9f19a1315b
- replaced most native_clipdist() calls
...
Only those in nnext using internal int storage remain.
2022-10-30 16:51:16 +01:00
Christoph Oelckers
e80c32cfd4
- handle magic clipdist values
2022-10-30 16:51:16 +01:00
Christoph Oelckers
a6e35edc6c
- replaced all set_native_clipdist
...
Note that truncation has to be preserved here to ensure the size stays the same as before so the MulScales were not resolved into their factors.
2022-10-30 16:51:16 +01:00
Christoph Oelckers
84dfe98f17
- replaced all set_native_clipdist in Blood
2022-10-30 16:51:16 +01:00
Christoph Oelckers
ed5b35453a
- ';;' cleanup
2022-10-30 16:51:15 +01:00
Christoph Oelckers
7ed45d713a
- refactor all oclipdist uses
2022-10-30 16:51:15 +01:00
Christoph Oelckers
d22c473c31
- manual set_const_clipdist replacements
2022-10-30 16:51:15 +01:00
Christoph Oelckers
48fda0cafd
- second batch of set_const_clipdist replacements
2022-10-30 16:51:15 +01:00
Christoph Oelckers
03d6826fce
- first batch of set_const_clipdist replacements
2022-10-30 16:51:14 +01:00
Christoph Oelckers
4af4983d3e
- floatified clipdist and replaced fClipdist wrapper.
...
This uses a new variable because a few things use clipdist as a flag byte
2022-10-30 16:51:14 +01:00
Christoph Oelckers
3577b53c4d
- GetWallSpritePosition also benefits from using .dot
2022-10-30 16:51:14 +01:00
Christoph Oelckers
f1baf5c69c
- use dot product for getslopeval as well
2022-10-30 16:51:13 +01:00
Christoph Oelckers
02f1f79333
- use .dot() for calculating slopes
2022-10-30 16:51:13 +01:00
Christoph Oelckers
e83d0930bf
- clean out the unused sintable stuff
2022-10-30 16:51:13 +01:00
Christoph Oelckers
88dcc37e94
- got rid of the wrappers for the SO angles.
2022-10-30 16:51:13 +01:00
Christoph Oelckers
7cb2545f4b
- let TranslateSector update the player's angle if not in vanilla mode.
2022-10-30 16:51:13 +01:00
Christoph Oelckers
ce9bda47fe
- deleted unused getwalldist function.
2022-10-30 16:51:12 +01:00
Mitchell Richters
215fc7d407
- SW: Optimise DoPlayerDeathHoriz()
a bit.
2022-10-30 16:51:12 +01:00
Mitchell Richters
94941adce8
- Duke: Fix sign on 4x tangent offsets.
2022-10-30 16:51:12 +01:00
Mitchell Richters
cea2b6b428
- Rename PlayerHorizon::__horiz
back to horiz
.
2022-10-30 16:51:12 +01:00
Mitchell Richters
ff1d51b4fe
- Fix 4x horiz negation issues.
2022-10-30 16:51:11 +01:00
Christoph Oelckers
a928a99328
- adjusted Exhumed's gun code to the horizon sign flip
2022-10-30 16:51:11 +01:00
Mitchell Richters
0600bf5860
- Negate everything to do with PlayerHorizon::__horiz
where appropriate, including some loose horizoff
members.
2022-10-30 16:51:11 +01:00
Mitchell Richters
619b8005ac
- Rename PlayerHorizon::horiz
in prep for negating this angle throughout code.
2022-10-30 16:51:11 +01:00
Christoph Oelckers
4becce9bf4
- replaced the one use of uhypsq to delete the function.
2022-10-30 16:51:11 +01:00
Christoph Oelckers
a6b55dca74
- removed handling for Exhumed clipping mode.
...
All this does is disable slopes in a few places and use extremely less precise math. Nothing critical is guarded by it.
2022-10-30 16:51:10 +01:00
Christoph Oelckers
513fc478bf
- moved clipupdatesector to updatesector.h
2022-10-30 16:51:10 +01:00
Christoph Oelckers
479c732a72
- moved some more things out of build.h
2022-10-30 16:51:10 +01:00
Christoph Oelckers
0eea776065
- moved RS_ bits to gamehud.h because that's all that uses these flags.
2022-10-30 16:51:09 +01:00
Christoph Oelckers
94b91f6ec3
- build.h cleanup
...
* moved krand and krandf into the games/duke folder because no other game uses them
* moved CVARS to gamefuncs.h.
2022-10-30 16:51:09 +01:00
Christoph Oelckers
679e029c6d
- do not save randomseed twice.
2022-10-30 16:51:09 +01:00
Christoph Oelckers
4af1461ec3
- got rid of int_clipdist.
2022-10-30 16:51:09 +01:00
Mitchell Richters
29eb729cd3
- Fix multiple bad calls to pushmove()
.
2022-10-30 16:51:09 +01:00
Christoph Oelckers
7d3babd678
- ported all pushmove calls to the float version.
2022-10-30 16:51:08 +01:00
Christoph Oelckers
f45acdc2a8
- floatified two SOP clipdist variables
2022-10-30 16:51:08 +01:00
Christoph Oelckers
69f27d42aa
- same for Blood's ClipMove
2022-10-30 16:51:08 +01:00
Christoph Oelckers
9257fe0078
- fixed clipmove factors.
2022-10-30 16:51:08 +01:00
Christoph Oelckers
600c2a0243
- map all clipmove calls to the version with a full float interface.
2022-10-30 16:50:48 +01:00
Christoph Oelckers
63c8960769
- deleted mdsprite.* files.
2022-10-27 16:55:54 +02:00
Christoph Oelckers
a4dd5bb4ce
- rewrote the model storage code.
...
Using proper C++ containers now.
2022-10-27 16:55:54 +02:00
Mitchell Richters
8bc34f3dac
- Handle all remaining VecToAngle()
calls.
2022-10-27 16:55:53 +02:00
Mitchell Richters
e7dff22095
- Duke: Fix some badly negated angle setups.
2022-10-27 16:55:53 +02:00
Mitchell Richters
1e7cce28af
- VecToAngle() with delta()
inside to .Angle() replacements.
2022-10-27 16:55:53 +02:00
Mitchell Richters
9b98388215
- VecToAngle() with XY()
inside to .Angle() replacements.
2022-10-27 16:55:53 +02:00
Mitchell Richters
c00c8d196e
- Simple VecToAngle() > .Angle() replacements.
2022-10-27 16:55:52 +02:00
Mitchell Richters
75047b6ad5
- Eliminate MulScaleF()
.
2022-10-27 16:55:52 +02:00
Mitchell Richters
d15e1017bd
- Exhumed: Restore original tangent-based slope tilting code.
...
* Pitch-based version just doesn't work, and hasn't since it was changed to pitch before the fixedhoriz > DAngle changeover.
2022-10-27 16:55:52 +02:00
Mitchell Richters
355860f662
- Blood: Slightly cleaner view bobbing math.
2022-10-27 16:55:52 +02:00
Mitchell Richters
7eda11fa2c
- Blood: Move some effect code into viewUpdateShake()
along with the other effect code.
2022-10-27 16:55:52 +02:00
Christoph Oelckers
6636064d1f
- did a few checks with the compatibility optioned slope adjustment and decided to enable it unconditionally.
...
A CVar was added to make it user-settable, but having this dramatically improves handling on slope edges.
2022-10-27 16:55:52 +02:00
Christoph Oelckers
c505da79e4
- fixed: getzrange must look a bit further for sprites affecting the current position.
...
This was missed when the function was rewritten because the code was too unclear about it.
2022-10-27 16:55:52 +02:00
Christoph Oelckers
8e9ddf370c
- rewrote getzrange
...
Not using any old Build code anymore. Aside from the trivial stuff this uses code from Doom and SW instead.
2022-10-27 16:55:28 +02:00
Mitchell Richters
13d643deb5
- Duke: Move Duke-exclusive code from PlayerHorizon
struct into displayweapon_d()
and clamp tangent to handle high pitches.
...
* Clamped range is slightly higher than original (200 vs. 256), however when tested with idle knuckle cracking, etc, hands were drawn not above the screen unlike unclamped tangent.
2022-10-25 07:07:15 +02:00
Mitchell Richters
dbdcdb934f
- Blood: Clamp tangent applied as Z offset in view.
...
* Value of `1.171875` == 150 (value between 180/120 - old min/max) / 128 (Build to pure Tan).
2022-10-25 07:07:15 +02:00
Mitchell Richters
c3adf5ea58
- Slight clean up of input constants.
2022-10-25 07:07:14 +02:00
Mitchell Richters
fc8c0b80aa
- Clean up chase cam backwards scaling since we're now using floats of the same scale.
2022-10-25 07:07:14 +02:00
Mitchell Richters
3db6a38b4b
- Make dragpoint()
inline since its a wrapper for another function anyway.
2022-10-25 07:07:14 +02:00
Mitchell Richters
9dd27ee3a2
- Remove old integer dragpoint()
interface that was used by floats in lots of places.
...
* Cannot wait until all the narrowing warnings can be re-enabled...
2022-10-25 07:07:14 +02:00
Mitchell Richters
5cc9774873
- Apply same signedness fix from - fixed signedness issue with slope sprite coefficient.
to spriteGetSlope()
.
2022-10-25 07:07:14 +02:00
Mitchell Richters
2e8e5f99e7
- Fix mixed X/Y pos subtraction in spriteGetZOfSlopef()
and use a bit more of the backend.
...
* Confirmed coordinate mix-up when reviewing commit `- added spriteGetZOfSlopeF for the backend`.
2022-10-25 07:07:14 +02:00
Christoph Oelckers
22ccf33569
- floatified walldist parameter of getzrange
2022-10-25 07:07:14 +02:00
Christoph Oelckers
3c3b602989
- made getzrangepoint slope sprite aware.
2022-10-25 07:07:13 +02:00
Christoph Oelckers
d11f6819db
- got rid of the getzrange wrapper.
2022-10-25 07:07:13 +02:00
Christoph Oelckers
55b055e654
- deleted the deprecated getzrange versions.
2022-10-25 07:07:13 +02:00
Christoph Oelckers
a5afbce59d
- fixed fxSpawnActor calls
2022-10-25 07:07:13 +02:00
Christoph Oelckers
d41e370aad
- angular cleanup.
2022-10-25 07:07:13 +02:00
Christoph Oelckers
65a5394cf0
- only have one version of fxSpawnActor
2022-10-25 07:07:13 +02:00
Christoph Oelckers
10144b0436
- floatified tesla missile offset.
...
This was the last use of inttoworld outside of clipmove.
2022-10-25 07:07:13 +02:00
Christoph Oelckers
c0a628dc7f
- floatified SpawnBulletEject and SpawnShellEject
2022-10-25 07:07:13 +02:00
Christoph Oelckers
d525d41ed2
- floatified smaller stuff
2022-10-25 07:07:13 +02:00
Christoph Oelckers
f3bae2b0b8
- deleted several unused functions.
2022-10-25 07:07:12 +02:00
Christoph Oelckers
7684b64b28
- floatified GENDUDEEXTRA::fireDist and all related things.
2022-10-25 07:07:12 +02:00
Christoph Oelckers
47dff8e656
- added clean handling for the one case where a custom range needs to be passed to actFireVector.
...
This removes one godawful hack that forced an otherwise constant data table to be non-const.
2022-10-25 07:07:12 +02:00
Christoph Oelckers
e52c311592
- added a wrapper for VECTORDATA::maxDist
2022-10-25 07:07:12 +02:00
Christoph Oelckers
f0b9509503
- deleted integer actFireThing version.
2022-10-25 07:07:12 +02:00
Christoph Oelckers
b30c6137d5
- used maptoworld in Quake code.
2022-10-25 07:07:12 +02:00
Christoph Oelckers
2afea7c477
- TranslateSector cleanup.
2022-10-25 07:07:12 +02:00
Christoph Oelckers
c6e8f0bcdb
- merged the TranslateSector wrapper into the main function.
...
No floatification yet.
2022-10-25 07:07:12 +02:00
Christoph Oelckers
3df5fb112e
- remove leftover conversion code.
2022-10-25 07:07:12 +02:00
Christoph Oelckers
ca96a2b41c
- move coordinate conversion from GetClosestSpriteSectors to CheckProximityWall.
2022-10-25 07:07:11 +02:00
Christoph Oelckers
3c2e4a9c59
- deleted integer GetActorExtents version
2022-10-25 07:07:11 +02:00
Christoph Oelckers
5ab75f45e9
- floatified and consolidated throwPower handling.
2022-10-25 07:07:11 +02:00
Christoph Oelckers
a87c4809f5
- deleted unused mulscale30r functions.
2022-10-25 07:07:11 +02:00
Christoph Oelckers
b176ceda38
- floatified playerFireThing
2022-10-25 07:07:11 +02:00
Christoph Oelckers
cab00d05dc
- got rid of the int version of playerFireMissile
2022-10-25 07:07:11 +02:00
Christoph Oelckers
8673d692f0
- floatified genDudeAdjustSlope's dist.
2022-10-25 07:07:11 +02:00
Christoph Oelckers
77d712dbc4
- got rid of the int aiSetTarget variant.
2022-10-25 07:07:11 +02:00
Christoph Oelckers
fbed29e6ca
- bubbletime has no relation to world size so it should not use worldtoint.
2022-10-25 07:07:10 +02:00
Christoph Oelckers
310eff6e71
- clean out many wrappers.
2022-10-25 07:07:10 +02:00
Christoph Oelckers
d013e6fbd9
- eliminate the last 5 Sin calls
2022-10-25 07:07:10 +02:00
Christoph Oelckers
312b96fedc
- floatified aim and relAim
2022-10-25 07:07:10 +02:00
Christoph Oelckers
a9095a5a1e
- floatified all FireSpread functions.
2022-10-25 07:07:10 +02:00
Christoph Oelckers
bd011c69a6
- wrapped most of aim
2022-10-25 07:07:10 +02:00
Christoph Oelckers
1283c4d757
- renamed aim and relAim
2022-10-25 07:07:10 +02:00
Christoph Oelckers
b2dc69ad5d
- floatified dudeSlope.
2022-10-25 07:07:10 +02:00
Christoph Oelckers
27c0a00df6
- use dudeslope wrappers.
2022-10-25 07:07:10 +02:00
Christoph Oelckers
e44759d2ea
- renamed dudeSlope
2022-10-25 07:07:09 +02:00