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
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
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
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
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
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
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
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
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
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
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
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
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
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
Christoph Oelckers
f286565abc
- floatifying player::slope, part 2
2022-10-25 07:07:09 +02:00
Christoph Oelckers
1a03c56eec
- floatifying player::slope, part 1
2022-10-25 07:07:09 +02:00
Christoph Oelckers
22cf0ea2ad
-deleted approxDist
2022-10-25 07:07:09 +02:00
Christoph Oelckers
f1b5bba035
- length calculation in teslaHit.
2022-10-25 07:07:09 +02:00
Christoph Oelckers
3814dfcf0e
- floatified distance in AltFireVoodoo
2022-10-25 07:07:09 +02:00
Christoph Oelckers
b2bf137d72
- floatified UpdateAimVector
...
the biggest mess of all.
2022-10-25 07:07:09 +02:00
Christoph Oelckers
a843c0bdb6
- removed some unnecessary factors.
2022-10-25 07:07:09 +02:00
Christoph Oelckers
8ac5884232
- the first HitScan_ variant is gone.
2022-10-25 07:07:08 +02:00
Christoph Oelckers
fcc0d3bfea
- deprecating HitScan_.
2022-10-25 07:07:08 +02:00
Christoph Oelckers
702553d65e
- floatified HitScan call in nnextCanMove.
2022-10-25 07:07:08 +02:00
Christoph Oelckers
7f5ae54f93
- 3x use proper HitScan call.
2022-10-25 07:07:08 +02:00
Christoph Oelckers
e793b878c1
3 HitScan fixes
2022-10-25 07:07:08 +02:00
Christoph Oelckers
b7c63e08ec
- floatified DoSectorPanning
2022-10-25 07:07:08 +02:00
Christoph Oelckers
580bbccdf5
- handle angles in voodooTarget
2022-10-25 07:07:08 +02:00
Christoph Oelckers
56429ebbba
- floatified MGunFireSeqCallback
2022-10-25 07:07:08 +02:00
Christoph Oelckers
32ed2dd596
- some trivial things.
2022-10-25 07:07:08 +02:00
Christoph Oelckers
0577b678d2
- all of int_ang in aizombf.cpp
...
Note that the z-offset in ThrowSeqCallback was not correct - eyeHeight is in pixels, but this was passed as a Build-z-parameter which is scaled by 256, effectively rendering the offset almost ineffective.
2022-10-25 07:07:07 +02:00
Christoph Oelckers
e4f8178947
- all int_ang() in aiunicult.cpp
2022-10-25 07:07:07 +02:00
Christoph Oelckers
049220239c
- get rid of vel wrappers for nnext conditions.
...
The fixed point conversion here is unavoidable, so make it explcit.
2022-10-25 07:07:07 +02:00
Christoph Oelckers
5dc2d467ee
- the last remaining approxDist calls in nnexts.
2022-10-25 07:07:07 +02:00
Christoph Oelckers
cf2d29e921
- floatified aiFightGetFineTargetDist
2022-10-25 07:07:07 +02:00
Christoph Oelckers
139f68c804
- deleted unused GetDistToLine
2022-10-25 07:07:07 +02:00
Christoph Oelckers
2692684e73
- floatified distance checks in unicultThinkChase
2022-10-25 07:07:07 +02:00
Christoph Oelckers
2eb068e4a6
- deleted unused CheckProximityPoint and cleaned up earthquake calculations.
2022-10-25 07:07:07 +02:00
Christoph Oelckers
d99ed7676b
- reroute player firing functions directly to the floating point variants of the actor versions.
2022-10-25 07:07:06 +02:00
Christoph Oelckers
607f119bad
- floatified aiPatrolAlarmFull
2022-10-25 07:07:06 +02:00
Christoph Oelckers
99da5d78ab
- floatified GetZRangeAtXYZ
2022-10-25 07:07:06 +02:00
Christoph Oelckers
9b9116986b
- removed redundant function call.
2022-10-25 07:07:06 +02:00
Christoph Oelckers
6e03f87671
- floatified GetZRange
2022-10-25 07:07:06 +02:00
Christoph Oelckers
60e9e4d93a
- floatified EnemyBubble
2022-10-25 07:07:06 +02:00
Christoph Oelckers
caf6dacbb5
- floatified PlayerBubble
2022-10-25 07:07:06 +02:00
Christoph Oelckers
a63527c892
- floatified fxDynPuff
2022-10-25 07:07:06 +02:00
Christoph Oelckers
24f4e1894c
- floatified fxFlameLick
2022-10-25 07:07:05 +02:00
Christoph Oelckers
d349eabcbc
- floatified dudeLeechOperate
2022-10-25 07:07:05 +02:00
Christoph Oelckers
e54719e6f5
- floatified coordinate stuff in ThrowThing
2022-10-25 07:07:05 +02:00
Christoph Oelckers
e8718826ba
- renamed Heardist to HearDist.
...
This had to wait until the variable was refactored out.
2022-10-25 07:07:05 +02:00
Christoph Oelckers
94403684b2
- changed 2 seeDist references to the SeeDist() wrapper.
...
Although not necessary this makes it easier later to refactor DUDEINFO.
2022-10-25 07:07:05 +02:00
Christoph Oelckers
f0dc95597b
- deleted several unused wrappers and overloads.
2022-10-25 07:07:05 +02:00
Christoph Oelckers
9cd5766cd0
- deleted unused GetWallAngle function and comment cleanup
2022-10-25 07:07:05 +02:00
Christoph Oelckers
89cdd17cc2
- floatified PukeSeqCallback
2022-10-25 07:07:05 +02:00
Christoph Oelckers
8dd646a24f
- floatified HackSeqCallback
2022-10-25 07:07:04 +02:00
Christoph Oelckers
8edd0530cb
- renamed two functions.
2022-10-25 07:07:04 +02:00
Christoph Oelckers
7ae1d6fdc1
- floatified another Tchernobog callback.
2022-10-25 07:07:04 +02:00
Christoph Oelckers
65d696c2bb
- floatified sub_71BD4
2022-10-25 07:07:04 +02:00
Christoph Oelckers
dcde92d629
- floatified cerberusThinkGoto
2022-10-25 07:07:04 +02:00
Christoph Oelckers
8c00af40d0
- eliminated the last set_int_bvel call in fxZombieBloodSpurt
2022-10-25 07:07:04 +02:00
Christoph Oelckers
d213f7c92f
- floatified useUniMissileGen
2022-10-25 07:07:04 +02:00
Christoph Oelckers
0999ffd5c0
- floatified fxSpawnEjectingBrass/Shell and got rid of the inlines.
2022-10-25 07:07:03 +02:00
Christoph Oelckers
ee255b533d
- floatified SpidBirthSeqCallback
2022-10-25 07:07:03 +02:00
Christoph Oelckers
4376bd6581
- floatified SpidBiteSeqCallback and SpidJumpSeqCallback
2022-10-25 07:07:03 +02:00
Christoph Oelckers
3abd6aa996
- floatified ratBiteSeqCallback
2022-10-25 07:07:03 +02:00
Christoph Oelckers
c58e0d84ad
- floatified podAttack
2022-10-25 07:07:03 +02:00
Christoph Oelckers
c2fbbfbefe
- floatified the remaining parts of aihound.cpp.
2022-10-25 07:07:03 +02:00
Christoph Oelckers
0a2274a41d
- the remaining bits in aigilbst.cpp
2022-10-25 07:07:03 +02:00
Mitchell Richters
bb6e12a2b1
- Eliminate remaining calls to TAngle<T>::fromBuildf()
.
2022-10-25 07:07:03 +02:00
Christoph Oelckers
b7afaf3ed5
- floatified most of aiPatrolSearchTargets
2022-10-25 07:07:02 +02:00
Christoph Oelckers
769565997f
- floatified zombfThinkChase
2022-10-25 07:07:02 +02:00
Christoph Oelckers
5ba2eb4f64
- floatified myThinkTarget
2022-10-25 07:07:02 +02:00
Christoph Oelckers
211c77138b
- floatified most of unicultThinkChase
2022-10-25 07:07:02 +02:00
Christoph Oelckers
8382f12af2
- floatified sub_725A4
2022-10-25 07:07:02 +02:00
Christoph Oelckers
2620a8f644
- floatified ratThinkChase
2022-10-25 07:07:02 +02:00
Christoph Oelckers
edf6c69159
- floatified gillThinkChase
2022-10-25 07:07:02 +02:00
Christoph Oelckers
523400772e
- floatified zombaThinkChase and zombaThinkPonder
2022-10-25 07:07:01 +02:00
Christoph Oelckers
4388401e6e
- floatified unicultThinkGoto
2022-10-25 07:07:01 +02:00
Christoph Oelckers
6b72414038
- floatified tchernobogThinkChase
2022-10-25 07:07:01 +02:00
Christoph Oelckers
0385897be4
- floatified spidThinkChase
2022-10-25 07:07:01 +02:00
Christoph Oelckers
9586a2f16d
- floatified aiPodChase
2022-10-25 07:07:01 +02:00
Christoph Oelckers
6b6ab4e81e
- floatified innocThinkChase.
2022-10-25 07:07:01 +02:00
Christoph Oelckers
648ff00caf
- floatified houndThinkChase.
2022-10-25 07:07:01 +02:00
Christoph Oelckers
71c1840566
- floatified handThinkChase
2022-10-25 07:07:01 +02:00
Christoph Oelckers
21afef19e9
- floatified gillBeastSwimChase.
2022-10-25 07:07:00 +02:00
Christoph Oelckers
5d78c81acb
- 11x replacing the same pattern.
2022-10-25 07:07:00 +02:00
Christoph Oelckers
e3cc9879eb
- floatified ghostThinkGoto
2022-10-25 07:07:00 +02:00
Christoph Oelckers
d3e8db8861
- floatified ghostThinkTarget
2022-10-25 07:07:00 +02:00
Christoph Oelckers
babb45318f
- floatified ghostBlastSeqCallback
2022-10-25 07:07:00 +02:00
Christoph Oelckers
491c5628ff
- floatified ghostThrowSeqCallback
2022-10-25 07:07:00 +02:00
Christoph Oelckers
fbf49bc247
- floatified ghostSlashSeqCallback
2022-10-25 07:07:00 +02:00
Christoph Oelckers
81456e4d33
- floatified wave parameters for TranslateSector
2022-10-25 07:06:59 +02:00
Christoph Oelckers
12bfd830c9
- removed the wrappers.
2022-10-25 07:06:59 +02:00
Christoph Oelckers
4eeeb00c1b
- floatified VDoorBusy
2022-10-25 07:06:59 +02:00
Christoph Oelckers
55dea1d348
- floatified VSpriteBusy
2022-10-25 07:06:59 +02:00
Christoph Oelckers
d96c7c64c7
- floatified VCrushBusy
2022-10-25 07:06:59 +02:00
Christoph Oelckers
b9f192d6ee
- floatified plane stuff in ZTranslateSector
2022-10-25 07:06:59 +02:00
Christoph Oelckers
23f2e5a7b2
- use floats for floor/ceiling conditions.
2022-10-25 07:06:59 +02:00
Christoph Oelckers
3b88f7db3e
- floatified the variables.
2022-10-25 07:06:58 +02:00
Christoph Oelckers
4114f21323
- added wrapper function for these variables.
2022-10-25 07:06:58 +02:00
Christoph Oelckers
6dbb5a0b8c
- renamed 4 fields in XSECTOR
2022-10-25 07:06:58 +02:00
Christoph Oelckers
9c698c6044
- 3 minor changes.
2022-10-25 07:06:58 +02:00
Christoph Oelckers
89cfb87072
- floatified 2 functions in aigarg.cpp
2022-10-25 07:06:58 +02:00
Christoph Oelckers
9d19b61cf9
- 4 functions in aicult.cpp
2022-10-25 07:06:58 +02:00
Christoph Oelckers
64619478fa
- floatified 2 functions in aicaleb.cpp
2022-10-25 07:06:58 +02:00
Christoph Oelckers
1c23a2aa32
- floatified SeqAttackCallback
2022-10-25 07:06:58 +02:00
Christoph Oelckers
37ca106417
- floatified gargThinkTarget
2022-10-25 07:06:58 +02:00
Christoph Oelckers
8d18c005de
- floatified ThrowSSeqCallback
2022-10-25 07:06:57 +02:00
Christoph Oelckers
a7b23fe9ea
- floatified BlastSSeqCallback
2022-10-25 07:06:57 +02:00
Christoph Oelckers
8b2ddfadf6
- restore code as it was, buggy as it may be.
2022-10-25 07:06:57 +02:00
Christoph Oelckers
0399cf17fe
- floatified cerberusBurnSeqCallback2
2022-10-25 07:06:57 +02:00
Christoph Oelckers
6c77d1d5d3
- floatified cerberusBiteSeqCallback
2022-10-25 07:06:57 +02:00
Christoph Oelckers
ca1e9efbea
- 2 functions in aicaleb.cpp.
2022-10-25 07:06:57 +02:00
Christoph Oelckers
5e2e53d684
- more CanMove fixes, plus salvaging the rest of the old commit.
...
CanMove twice uses the texel-based nRange as a Build-unit value, this caused strange problems with the initial floatification.
2022-10-25 07:06:57 +02:00
Christoph Oelckers
138ba53ace
- fix the HitScan call in CanMove.
...
This was picking an unexpected overload because the second parameter was a float but with an integer-range value.
2022-10-25 07:06:57 +02:00
Mitchell Richters
180d020620
- Blood: Floatified CanMove()
.
2022-10-25 07:06:56 +02:00
Christoph Oelckers
2af18ec277
- remap all easy HitScan calls with zero range to the new base function.
2022-10-25 07:06:56 +02:00
Christoph Oelckers
6b579156aa
- Blood HitScan fixes
...
- changed target parameter of hitscan to a double to simplify its handling.
- HitScan's nRange parameter may be an int, but it is in texel units, not Build units.
2022-10-25 07:06:56 +02:00
Christoph Oelckers
1d8dccca04
- floatified HitScan and use a proper vector calculation for hitscangoal.
...
This should be on the trace, not use a totally different direction.
2022-10-25 07:06:56 +02:00
Christoph Oelckers
a4ec938526
- renamed HitScan to HitScan_ as a refactoring aid.
2022-10-25 07:06:56 +02:00
Christoph Oelckers
049ced83f6
- floatified cerberusBurnSeqCallback
2022-10-25 07:06:56 +02:00
Mitchell Richters
1fb85b0a8d
- Use deltaangle()
in a few places with our DAngle horizon.
2022-10-25 07:06:55 +02:00
Mitchell Richters
8d3f3c6025
- Cut over to DAngle
from fixedhoriz
and remove the latter.
2022-10-25 07:06:55 +02:00
Mitchell Richters
41bbbd9df5
- Remove all remaining uses of fixedhoriz::asbuild()
.
2022-10-25 07:06:55 +02:00
Mitchell Richters
a952c35669
- SW: Convert DoPlayerDeathHoriz()
to work on pitch and remove now-unused buildhoriz()
.
2022-10-25 07:06:55 +02:00
Mitchell Richters
92798b5a07
- Remove most buildhoriz()
calls.
2022-10-25 07:06:55 +02:00
Mitchell Richters
293a71ed55
- Remove horizon from gi->WarpToCoords()
since we don't even print the horizon in our stats.
2022-10-25 07:06:54 +02:00
Mitchell Richters
ca8f8d6d36
- Remove all remaining q16horiz()
calls, also correcting a long-standing Duke bug.
2022-10-25 07:06:54 +02:00
Mitchell Richters
8697e5f054
- Replace all q16horiz(0)
calls.
2022-10-25 07:06:54 +02:00
Mitchell Richters
22a9f89b64
- Remove all uses of fixedhoriz::asq16()
.
2022-10-25 07:06:54 +02:00
Mitchell Richters
06a9a7b1a7
- SW: Change all weapon recoils to work on pitch.
2022-10-25 07:06:54 +02:00
Mitchell Richters
5851c0f2c6
- Clean up some q16horiz usage and how the view pitch is clamped.
2022-10-25 07:06:53 +02:00
Mitchell Richters
4ef9ec93ea
- Remove fixedhoriz::asbuildf()
and associated buildf friend.
...
* The new friend `tanhoriz()` is just for the input code for now.
2022-10-25 07:06:53 +02:00
Mitchell Richters
d8a6471680
- Add fixedhoriz::Tan()
and replace most asbuildf()
calls with it.
2022-10-25 07:06:53 +02:00
Mitchell Richters
f6f88f587d
- SW: Consolidate random range applied to weapon vel.Z into an inline.
2022-10-25 07:06:53 +02:00
Mitchell Richters
d00108b9cf
- Blood: Repair life leach turret mode where target's position and not velocity was used.
2022-10-25 07:06:52 +02:00
Mitchell Richters
ef4b72d18e
- Blood: Floatify LifeLeechOperate()
.
...
* These divscales hurt my soul...
2022-10-25 07:06:52 +02:00
Christoph Oelckers
1255fda4c1
- two more functions in aibeast.cpp.
...
Note that the eyeHeight adjustment was removed because it was applied incorrectly and essentially non-functional.
eyeHeight is in world coordinates but was used as if it was Q24.8, resulting in a value too small to be significant.
2022-10-25 07:06:52 +02:00
Christoph Oelckers
e9fc0d09a9
- renaming things in StompSeqCallback
2022-10-25 07:06:52 +02:00
Christoph Oelckers
0ed4b8b01a
- Blood: floatified SlashSeqCallback
2022-10-25 07:06:52 +02:00
Christoph Oelckers
c1da02de8a
- Blood: floatified calebThinkSwimChase
2022-10-25 07:06:52 +02:00
Christoph Oelckers
c85a95ca03
- Blood: floatified cultThinkChase
...
Welcome to spaghetti-land, this is one 400 line monstrosity. :(
2022-10-25 07:06:52 +02:00
Christoph Oelckers
3055a1e5a7
- Blood: renamed functions and floatified cultThrowSeqCallback3
2022-10-25 07:06:52 +02:00
Christoph Oelckers
fd7c47ce2b
- Blood: floatified cultThrowSeqCallback
2022-10-25 07:06:51 +02:00
Christoph Oelckers
c1e0e04016
- Blood: floatified cerberusThinkChase
2022-10-25 07:06:51 +02:00
Christoph Oelckers
79d17dc645
- floatified cerberusThinkTarget
2022-10-25 07:06:51 +02:00
Christoph Oelckers
d3c3363e92
- Blood: floatified calebThinkChase
2022-10-25 07:06:51 +02:00
Christoph Oelckers
9394691601
- Blood: floatified burnThinkGoto
2022-10-25 07:06:51 +02:00
Christoph Oelckers
3c2239533b
- Blood: floatified burnThinkChase
2022-10-25 07:06:51 +02:00
Christoph Oelckers
f2f74fc239
- Blood: floatified eelThinkChase
2022-10-25 07:06:51 +02:00
Christoph Oelckers
beefa700b7
- Blood: floatified eelThinkPonder
2022-10-25 07:06:51 +02:00
Christoph Oelckers
0672a1a958
- replaced mapangle(85) with DAngle15.
2022-10-25 07:06:50 +02:00
Christoph Oelckers
2c46d66c1e
- Blood: floatified beastThinkChase
2022-10-25 07:06:50 +02:00
Christoph Oelckers
105e20a32d
- eliminated lots of approxDist calls.
...
Only the really simple ones.
2022-10-25 07:06:50 +02:00
Christoph Oelckers
dcfac1c930
- handle a few nAccel values that do not match the generic pattern
2022-10-25 07:06:50 +02:00
Christoph Oelckers
9927d5e25d
- always use FrontSpeed() access function for nAccel.
...
This gets rid of a large amount of FixedToFloat calls.
2022-10-25 07:06:50 +02:00
Christoph Oelckers
8b96a93e80
- turned TurnRange calculation into a subfunction.
...
This formula was used in 36 places
2022-10-25 07:06:50 +02:00
Christoph Oelckers
e309d05161
- use literal constant for this.
2022-10-25 07:06:50 +02:00
Christoph Oelckers
6a0b552352
- floatified first half of aibat.cpp.
...
Note: The scale factor for actFireVector calls with XY set per ToVector is 64. The vector being passed to it uses the same scale for Z as for XY.
This means that XY is 1/16384 of the fixed point vector and Z is 1/256, meaning the scale for XY must be 64x higher.
2022-10-25 07:06:50 +02:00
Christoph Oelckers
ca58e3fc6b
- the rest of ai.cpp.
2022-10-25 07:06:49 +02:00
Christoph Oelckers
48cadbd392
remaining floatification on aiLookForTarget
2022-10-25 07:06:49 +02:00
Christoph Oelckers
fafb4cfc29
- remaining floatification on aiThinkTarget
2022-10-25 07:06:49 +02:00
Christoph Oelckers
298d029d55
- found one last place where an integer wrapper was called in actor.cpp
2022-10-25 07:06:49 +02:00
Christoph Oelckers
6c98a07a60
- elininated the actSpawnThing wrapper.
2022-10-25 07:06:49 +02:00
Christoph Oelckers
f7fe24b19e
- some remaining cleanup on actor.cpp
2022-10-25 07:06:49 +02:00
Christoph Oelckers
b0160bb87c
- removed the int vector in actCheckExplosion.
2022-10-25 07:06:49 +02:00