Christoph Oelckers
e3ea4cd55c
- floatified animation code.
2022-10-20 23:08:22 +02:00
Christoph Oelckers
0c7274752c
- falladjustz
2022-10-20 22:25:10 +02:00
Christoph Oelckers
6482fefeb3
- 3x add_int_z.
2022-10-20 22:25:10 +02:00
Christoph Oelckers
fe0a10ed29
- handle neartag calls in checksectors.
2022-10-20 22:25:10 +02:00
Christoph Oelckers
13fc658c1f
-floatified findplayer and findotherplayer.
2022-10-20 22:25:09 +02:00
Christoph Oelckers
68bc812681
- floatify hande_se35
...
This looks broken because the destination height is never set anywhere.
2022-10-20 22:25:09 +02:00
Christoph Oelckers
4196195b89
- floatified handle_se25
2022-10-20 22:25:09 +02:00
Mitchell Richters
8bfcb8c939
- Floatify InputPacket::fvel
and InputPacket::svel
.
...
* Since all velocities are floated, we can now take each game's keymove scaling into its ticker and use a consistent keymove size, making non-mouselook and controller input truly identical across the games without having to try and fudge any values.
2022-10-20 00:48:09 +02:00
Mitchell Richters
a178ef1ff6
- Duke: Floatify player_struct::fric
.
2022-10-20 00:48:09 +02:00
Christoph Oelckers
6310b06118
- got rid of set_int_z in Blood.
2022-10-20 00:48:09 +02:00
Mitchell Richters
def2b9d483
- Flip svel
around in the input code so we can use proper anti-clockwise vector math.
2022-10-20 00:48:09 +02:00
Mitchell Richters
1eaab2f531
- Blood: Floatify POSTURE::xOffset
and POSTURE::zOffset
.
...
* POSTURE struct is now completely handled.
2022-10-20 00:48:09 +02:00
Mitchell Richters
6fa3e3fc23
- Blood: Swap around POSTURE::xOffset
and POSTURE::zOffset
given how they're used.
2022-10-20 00:48:09 +02:00
Mitchell Richters
3b5f4b9222
- Blood: Floatify POSTURE
accel values.
2022-10-20 00:48:08 +02:00
Mitchell Richters
bbb0cf73f2
- Blood: Floatify POSTURE::normalJumpZ
and POSTURE::pwupJumpZ
.
2022-10-20 00:48:08 +02:00
Christoph Oelckers
9426f42f41
- replaced old refactoring wrapper.
2022-10-20 00:48:08 +02:00
Christoph Oelckers
088699f5c8
- floatified handle_se20.
2022-10-20 00:48:08 +02:00
Christoph Oelckers
471f64cf72
- fixes for player velocity.
2022-10-20 00:48:08 +02:00
Christoph Oelckers
a847b23e7c
- made player.vel a real float vector with proper value range.
2022-10-20 00:48:07 +02:00
Christoph Oelckers
417dc7c330
- floatified gs.gravity and all relations to player.vel.
2022-10-20 00:47:32 +02:00
Christoph Oelckers
6f8d0e7870
- handle all remaining vel uses not related to gravity and clipmove
2022-10-20 00:47:32 +02:00
Christoph Oelckers
3e05acfcc9
- handle ca. half of the remaining use of vel.
2022-10-20 00:47:31 +02:00
Christoph Oelckers
bca4819841
- handle some simple vector additions with velocity.
2022-10-20 00:47:31 +02:00
Christoph Oelckers
c821683bc5
- copy Duke handling of movement code to RR.
2022-10-20 00:47:31 +02:00
Christoph Oelckers
cebecabe66
- search& replace of zero assignments and comparisons.
2022-10-20 00:47:31 +02:00
Christoph Oelckers
2266ae1cd6
- converted vel use in player_d.cpp's main movement functions
...
Still using conversion factors until all code has been processed.
2022-10-20 00:47:31 +02:00
Christoph Oelckers
b46b087e0c
- first round of vel refactoring.
...
VEL_FACTOR is used as a marker that later can be quickly removed once the data type gets changed over.
2022-10-20 00:47:19 +02:00
Christoph Oelckers
50a9ca49f3
- floatified player_struct::hitang
2022-10-20 00:33:31 +02:00
Christoph Oelckers
a5652655db
- floatified gs.playerfriction
2022-10-20 00:20:41 +02:00
Christoph Oelckers
477120923f
- made player.vel and gs.playerfriction floating point.
...
No change in value range yet, but having them as floats now allows easier refactoring.
2022-10-20 00:20:40 +02:00
Christoph Oelckers
8171927c2a
- renamed player_struct::vel
2022-10-20 00:19:56 +02:00
Christoph Oelckers
03a0eb7284
- floatified and consolidated handle_se29.
2022-10-20 00:19:56 +02:00
Christoph Oelckers
9a07dc5b7b
- floatified handle_se21 and most of movetongue
2022-10-20 00:19:33 +02:00
Christoph Oelckers
a9c7a5e62f
- floatified handle_se21
2022-10-19 18:26:16 +02:00
Christoph Oelckers
b0b5dbc55b
- eliminated add_int_ceilingz
2022-10-19 18:26:16 +02:00
Christoph Oelckers
81d4ca71d7
- floatified movetouchplate
2022-10-19 18:26:16 +02:00
Christoph Oelckers
8e4a3f1946
- floatified position in RANDOMSCRAP
2022-10-19 18:26:16 +02:00
Christoph Oelckers
23c529589e
- eliminated add_int_xvel
2022-10-19 18:26:16 +02:00
Christoph Oelckers
ccbe472444
- added NULL check where it can crash when noclipping.
2022-10-19 18:25:43 +02:00
Christoph Oelckers
a6bf98399c
- fixed inconsistency between angle and intangle use.
...
Angles abused as flag words should always use intangle.
2022-10-19 18:02:05 +02:00
Christoph Oelckers
1553ec812d
- magic carpet fixes for SW's $woods.map
...
* the track point code needs to retain the original distance function because in this case the difference can be critical as it interprets map data.
* two cases of bad vertical distance calculation due to unclear original code.
2022-10-19 17:49:19 +02:00
Christoph Oelckers
6e11a4317e
- SW: fixed savegame pic generation corrupting the actor list.
...
This case missed the call to PostDraw which is responsible for cleaning up some temporary data.
2022-10-19 00:11:44 +02:00
Christoph Oelckers
0cef35c345
- SW: when an actor is killed, all attached ambient sounds must be deleted.
...
Not only did the sound not stop but what happened here was very much undefined behavior as the ambient sound retained its pointer to now undefined memory.
2022-10-19 00:05:35 +02:00
Christoph Oelckers
11735c2963
- floatified handle_se13.
2022-10-18 20:02:30 +02:00
Christoph Oelckers
998d71875f
- floatified handle_se11.
2022-10-18 20:02:30 +02:00
Christoph Oelckers
b62c081d37
- renamed variables in handle_se08
2022-10-18 20:02:30 +02:00
Christoph Oelckers
845287a7ba
- floatified handle_se05
2022-10-18 20:02:30 +02:00
Christoph Oelckers
49125ffed5
- floatified handle_se02
2022-10-18 20:02:29 +02:00
Christoph Oelckers
3898e2fa4c
- floatified handle_se06 (both variants)
2022-10-18 20:02:29 +02:00
Christoph Oelckers
228db5839a
- floatified handle_se30.
2022-10-18 20:02:28 +02:00
Christoph Oelckers
e7ba113402
- use high precision storage for all of SE00's work data.
2022-10-18 20:02:28 +02:00
Christoph Oelckers
2be133aaee
- poolball stuff in Duke
2022-10-18 20:02:01 +02:00
Christoph Oelckers
fe7dfa1c53
- floatify angle stuff for bowling, henstand etc. in RR.
2022-10-18 20:02:01 +02:00
Christoph Oelckers
c30493c344
- floatified handle_se14
2022-10-18 20:02:01 +02:00
Christoph Oelckers
bd3f96e779
- floatified handle_se00
2022-10-18 20:02:01 +02:00
Christoph Oelckers
b5b159f45b
- unlimited and floatified the movesector position array.
2022-10-18 20:02:00 +02:00
Christoph Oelckers
4f9718e8a8
- added velocity checks when attempting to dive or surface.
...
This could misbehave at low velocities that could be misinterpreted as a boundary crossing due to the missing check for the movement direction.
2022-10-18 19:59:07 +02:00
Mitchell Richters
0a4ee4ac07
- Blood: Don't use degrees in the QAV drawer until hud_drawsprite()
is uplifted.
2022-10-18 19:52:02 +02:00
Mitchell Richters
f56cb7de48
- Blood: Floatify QAV's x/y coordinates.
2022-10-18 19:52:02 +02:00
Mitchell Richters
b127c37939
- Blood: Floatify all the bobbing/swaying code.
2022-10-18 19:52:02 +02:00
Mitchell Richters
33def4bd6e
- Duke: Clean up some long VecToAngle()
calls.
2022-10-18 19:52:02 +02:00
Christoph Oelckers
c84bf46611
- eliminated add_int_ceilingz in handle_se32.
2022-10-18 19:51:53 +02:00
Christoph Oelckers
b467e6c6cf
- handled a few easy to change distance calculations and nearby assignments.
2022-10-18 19:36:25 +02:00
Christoph Oelckers
4cb214f3ab
- int_vel stuff with constants.
2022-10-18 19:36:17 +02:00
Christoph Oelckers
901728d88f
- int_vel stuff with constants.
2022-10-18 19:31:11 +02:00
Christoph Oelckers
d34a423272
- int_vel stuff with constants.
2022-10-18 19:31:11 +02:00
Christoph Oelckers
eaf8a8ccca
- some minor random changes.
2022-10-18 19:31:11 +02:00
Christoph Oelckers
f7fdbcaa59
- handle the only two occurences of add_int_ang in Blood.
2022-10-18 19:01:45 +02:00
Christoph Oelckers
72dc3d5da9
- use mapangle in more places, mainly constants and random values using special formula
2022-10-18 19:01:45 +02:00
Christoph Oelckers
0e1a566d62
- added mapangle function for converting angles from map data.
...
This is just a wrapper around DAngle::fromBuild, its purpose is to clearly highlight data that cannot be refactored and needs to be converted
2022-10-18 19:01:45 +02:00
Christoph Oelckers
fdeb060ccd
- got rid of lPlayerVel
2022-10-18 19:01:45 +02:00
Christoph Oelckers
f16f9b302f
- floatified player input velocity.
2022-10-18 19:01:45 +02:00
Christoph Oelckers
b14ab1bde3
- use a lower value range for the xy factor in movespritevel.
2022-10-18 19:01:45 +02:00
Christoph Oelckers
59950062b7
- removed useless utility function
2022-10-18 19:01:44 +02:00
Christoph Oelckers
42389133d3
- function separators.
...
Also removing some dead code.
2022-10-18 19:01:44 +02:00
Christoph Oelckers
e2a6353182
- eliminated AngleDiff.
2022-10-18 19:01:44 +02:00
Christoph Oelckers
e3e11300ac
- floatify nPlayerD
2022-10-18 19:01:44 +02:00
Christoph Oelckers
3709b61fd1
- floatified PlotCourseToSprite's return
2022-10-18 18:55:22 +02:00
Christoph Oelckers
7b8b4a48f7
- floatified all of movesprite.
2022-10-18 18:34:30 +02:00
Christoph Oelckers
6854e8030d
- floatify half the movesprite calls.
2022-10-18 18:34:30 +02:00
Christoph Oelckers
ab3184eed8
- set up proper scaling of the grenade's movement vector.
2022-10-18 18:34:29 +02:00
Christoph Oelckers
1dff710a23
- floatified ThrowGrenade
2022-10-18 18:34:29 +02:00
Christoph Oelckers
a043c7fa4d
floatified body of movesprite and prepared the calls for adjustment.
2022-10-18 18:34:29 +02:00
Christoph Oelckers
98eb4a169d
- renamed movesprite functions as preparation
2022-10-18 18:34:29 +02:00
Christoph Oelckers
c41af213b4
- another set of simple changes.
2022-10-18 18:34:29 +02:00
Christoph Oelckers
efb538ba69
- floatify AISnake::Tick
2022-10-18 18:34:29 +02:00
Christoph Oelckers
f393b7e917
- floatified GetAngleToSprite
2022-10-18 18:34:29 +02:00
Christoph Oelckers
b5c315978c
- rename GetActorHeightF
...
(no edits here, just one replace.)
2022-10-18 18:34:28 +02:00
Christoph Oelckers
c65c317665
- eliminate GetActorHeight
2022-10-18 18:34:28 +02:00
Christoph Oelckers
55d01509fa
- handle most of move.cpp.
2022-10-18 18:34:28 +02:00
Christoph Oelckers
dd152f6406
- floatified BuildLavaLimb
2022-10-18 18:34:28 +02:00
Christoph Oelckers
58c2af168f
- floatified most of gun.cpp.
2022-10-18 18:34:28 +02:00
Christoph Oelckers
dc6745b935
- Set's movesprite.
2022-10-18 18:34:28 +02:00
Christoph Oelckers
31fcdd9e41
- sprite rotation angle math
2022-10-18 18:34:28 +02:00
Christoph Oelckers
18ade5e9bd
- extremely trivial angle stuff
2022-10-18 18:34:27 +02:00
Christoph Oelckers
c7d7ecb692
- floatified grenade vector.
2022-10-18 18:34:27 +02:00
Christoph Oelckers
d381b51fac
- trivial int_ang removals.
2022-10-18 18:34:27 +02:00
Christoph Oelckers
489f45ef99
- floatified AddFlow
2022-10-18 18:34:27 +02:00
Christoph Oelckers
029e0f6fa4
- floatified most of the grenade code and GetWallNormal
2022-10-18 18:34:27 +02:00
Christoph Oelckers
54a55b3d09
- floatified bobbing and a few other minor checks.
2022-10-18 18:34:27 +02:00