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