Commit graph

1852 commits

Author SHA1 Message Date
Christoph Oelckers
0794663601 - math cleanup of the first third of track.cpp 2022-10-15 13:31:58 +02:00
Christoph Oelckers
3bb0ee69a1 - initialize SOP angles to 0.
The memset to -1 turns them into NANs.
2022-10-15 13:31:58 +02:00
Christoph Oelckers
176afdc00a - seventh batch of migrations in track.cpp 2022-10-15 13:31:58 +02:00
Christoph Oelckers
4341578267 - sixth batch of migrations in track.cpp 2022-10-15 13:31:58 +02:00
Christoph Oelckers
a37fb3aded - fifth batch of migrations in track.cpp 2022-10-15 13:31:58 +02:00
Christoph Oelckers
7920e0e629 - fourth batch of migrations in track.cpp 2022-10-15 13:31:58 +02:00
Christoph Oelckers
ddb6ec68a1 - third batch of migrations in track.cpp 2022-10-15 13:31:58 +02:00
Christoph Oelckers
6c82f9be22 - second batch of migrations in track.cpp 2022-10-15 13:31:57 +02:00
Christoph Oelckers
398e66f359 - migrated all uses outside of track.cpp. 2022-10-15 13:31:57 +02:00
Christoph Oelckers
2148dba3a6 - floatified the angle variables. 2022-10-15 13:31:57 +02:00
Christoph Oelckers
d35785f1ee - added wrappers, part 7 and final 2022-10-15 13:31:57 +02:00
Christoph Oelckers
329a912041 - added wrappers, part 6 2022-10-15 13:31:57 +02:00
Christoph Oelckers
76b733b80d - added wrappers, part 5 2022-10-15 13:31:57 +02:00
Christoph Oelckers
8d3f95f101 - added wrappers, part 4 2022-10-15 13:31:57 +02:00
Christoph Oelckers
45bf11a341 - added wrappers, part 3 2022-10-15 13:31:57 +02:00
Christoph Oelckers
a3521c0b7e - added wrappers, part 2 2022-10-15 13:31:56 +02:00
Christoph Oelckers
d4a0972733 - added wrappers, part 1 2022-10-15 13:31:56 +02:00
Christoph Oelckers
d2253a3aec - renamed angle stuff. 2022-10-15 13:31:56 +02:00
Christoph Oelckers
8a320f6fa7 - OperateSectorObject 2022-10-15 13:31:56 +02:00
Christoph Oelckers
9df83edd10 - DoPlayerTurnVehicle 2022-10-15 13:31:56 +02:00
Christoph Oelckers
079fbd340f - floatified sop->floor_loz and floor_hiz 2022-10-15 13:31:56 +02:00
Christoph Oelckers
9aaae82de0 - variable renaming again 2022-10-15 13:31:56 +02:00
Christoph Oelckers
3a861e168c - floatified more movement code. 2022-10-15 13:31:55 +02:00
Christoph Oelckers
d0422ae1b5 - floatified scale_point stuff. 2022-10-15 13:31:55 +02:00
Christoph Oelckers
aa88eb49e0 - renamed another set of variables 2022-10-15 13:31:55 +02:00
Christoph Oelckers
85be297a2d - part of RefreshPoints 2022-10-15 13:31:55 +02:00
Christoph Oelckers
09104ba6fe - floatified ScaleRandomPoint 2022-10-15 13:31:55 +02:00
Christoph Oelckers
caa41e312d - floating point MultiClip API. 2022-10-15 13:31:55 +02:00
Christoph Oelckers
d80b39d184 - floatified clipbox/MultiClip of SW 2022-10-15 13:31:55 +02:00
Christoph Oelckers
17b117e86b - renamed another set of variables. 2022-10-15 13:31:55 +02:00
Christoph Oelckers
95477aaefb - add_int_ppos_Z is gone now. 2022-10-15 13:31:55 +02:00
Christoph Oelckers
0b642dc631 - floatified large parts of SO movement code. 2022-10-15 13:30:09 +02:00
Christoph Oelckers
212be963d9 - floatified SO scale_dist et.al. 2022-10-15 12:42:31 +02:00
Christoph Oelckers
189f791bc4 - renamed more fields. 2022-10-15 12:42:31 +02:00
Christoph Oelckers
42246f9a9d - floatified SW's sector object morph code. 2022-10-15 12:42:31 +02:00
Christoph Oelckers
30104fca50 - renamed some variables 2022-10-15 12:42:31 +02:00
Christoph Oelckers
e5b2a0f0a6 - simple angle stuff. 2022-10-15 12:42:31 +02:00
Christoph Oelckers
6b0b8f944c - floatified the height parameter of nextsectorneighborptr 2022-10-15 12:42:30 +02:00
Mitchell Richters
7d5040f560 - Fix all calls to interpolatedangle() that didn't revert smoothratio back to a float. 2022-10-15 12:16:53 +02:00
Mitchell Richters
f72d42bb8e - Uplift renderer entry point to DVector3 and provide wrappers for old setups. 2022-10-15 12:16:53 +02:00
Mitchell Richters
977d8f8109 - Convert gi->chaseCamPos() to return a floating point DVector3 object. 2022-10-15 12:16:53 +02:00
Mitchell Richters
e3bbb60de4 - SW: Test adding Duke's DrawAutomapAlignmentFacing() code into SW for consistency between the ports. 2022-10-15 12:16:53 +02:00
Mitchell Richters
ab77d77a53 - Optimise automap sector loops in Duke/SW automap code. 2022-10-15 12:16:53 +02:00
Mitchell Richters
18f97c3d7e - SW: Move player sprite loop out of sector loop, and eliminate goto crap. 2022-10-15 12:16:52 +02:00
Mitchell Richters
f236cc8728 - Consolidate some duplicated automap code between Duke and SW. 2022-10-15 12:16:52 +02:00
Mitchell Richters
ef56d00d78 - Pass automap angle vector as an actual vector.
* Also reconfigure setup so that angle requires zero pre-processing or setup in the automap code, have it all handled in `OutAutomapVector()`.
2022-10-15 12:16:52 +02:00
Christoph Oelckers
48c36bd4a2 - SW ladder climbing 2022-10-15 12:16:52 +02:00
Christoph Oelckers
712d28ff40 - clean out some stuff 2022-10-15 11:35:38 +02:00
Christoph Oelckers
6eb18eb3f6 - floatified all move_actor calls in SW 2022-10-15 11:35:37 +02:00
Christoph Oelckers
eed7f0806c - more quick replacements 2022-10-15 10:15:21 +02:00
Christoph Oelckers
3e76d49b6e - removed the mul vel wrappers 2022-10-15 10:15:21 +02:00
Christoph Oelckers
6fd8dae380 - removed the non-Blood float_* access wrappers 2022-10-15 10:15:21 +02:00
Christoph Oelckers
62ba753585 - remove vel clear wrappers 2022-10-15 10:15:21 +02:00
Christoph Oelckers
fca2f8c683 - replace all ‚labs‘ with ‚abs‘ 2022-10-14 23:55:31 +02:00
Mitchell Richters
4acce612cd - Take advantage of TVector2<>::Rotated90CW() in some automap code. 2022-10-14 23:55:31 +02:00
Christoph Oelckers
151fc46ef3 - removed unused wrapper. 2022-10-14 23:53:56 +02:00
Christoph Oelckers
2f7995619e - removed unused variables in SECTOR_OBJECT 2022-10-14 23:52:42 +02:00
Christoph Oelckers
491b6eb08c - floatified some angles. 2022-10-14 23:52:42 +02:00
Christoph Oelckers
c443d9ecb7 - floatified parts of InitUzi and InitGrenade. 2022-10-14 23:52:27 +02:00
Christoph Oelckers
d582cedaec - floatified parts of InitNuke and InitMicro 2022-10-14 23:51:15 +02:00
Christoph Oelckers
80034445b2 - floatified parts of InitRocket and InitBunnyRocket 2022-10-14 23:49:12 +02:00
Christoph Oelckers
8eab80bad2 - floatified parts of InitLaser and InitRail 2022-10-14 23:48:13 +02:00
Christoph Oelckers
b5f13c2a24 - floatified parts of InitShotgun 2022-10-14 23:47:05 +02:00
Christoph Oelckers
ce3d44f3b6 - floatify parts of InitStar 2022-10-14 23:46:00 +02:00
Christoph Oelckers
a9b19943dd - floatified bob_z and all actor spawns using it. 2022-10-14 23:39:33 +02:00
Christoph Oelckers
83adf5e88a - floatified PLAYER::Revolve 2022-10-14 23:17:46 +02:00
Christoph Oelckers
cebdc653bb - removed unused fields from PLAYER. 2022-10-14 23:17:46 +02:00
Christoph Oelckers
1300e76428 - vector assignment simplification 2022-10-14 23:17:46 +02:00
Christoph Oelckers
c3ac42a546 - removed unused PLAYER::up_speed and down_speed variables. 2022-10-14 23:17:46 +02:00
Christoph Oelckers
29d9d02b78 - floatified PLAYER::z_speed. 2022-10-14 23:17:46 +02:00
Christoph Oelckers
203e2c405f - floatified PLAYER::lv 2022-10-14 23:17:45 +02:00
Christoph Oelckers
6feb187a2a - floatified lo_step. 2022-10-14 23:17:45 +02:00
Christoph Oelckers
f8ba5bb660 - final xvel cleanup. 2022-10-14 23:13:33 +02:00
Christoph Oelckers
9600face4a - the rest. 2022-10-14 23:13:33 +02:00
Christoph Oelckers
567b20f9ef - almost the rest. 2022-10-14 23:13:33 +02:00
Christoph Oelckers
ce20bd9c56 - more wraps 2022-10-14 23:13:33 +02:00
Christoph Oelckers
643dda6085 -add_int_xvel(- 2022-10-14 23:13:33 +02:00
Christoph Oelckers
d19e99481d - add_int_xvel 2022-10-14 23:13:33 +02:00
Christoph Oelckers
33eeb8d9c2 - right shifts 2022-10-14 23:13:33 +02:00
Christoph Oelckers
ec88d1ea6c - set_int_xvel 2022-10-14 23:13:32 +02:00
Christoph Oelckers
434548a5aa - more xvel wraps. 2022-10-14 23:13:32 +02:00
Christoph Oelckers
cf90970121 - float_vel wraps 2022-10-14 23:13:32 +02:00
Christoph Oelckers
0aad018796 - second batch of xvel wraps. 2022-10-14 23:13:32 +02:00
Christoph Oelckers
ba044ac2f4 - first bunch of wrapping xvel. 2022-10-14 23:02:11 +02:00
Christoph Oelckers
f495650922 - clean out all residual access to yvel in SW.
The game never uses it aside from a sector trigger tag and one special case for the serpent ring.
2022-10-14 23:02:11 +02:00
Christoph Oelckers
36f109502d - use clear_xvel wrapper. 2022-10-14 23:02:11 +02:00
Christoph Oelckers
a006482c07 - this concludes all trivial int_zvel replacements. 2022-10-14 22:57:37 +02:00
Christoph Oelckers
56e5388150 - handle 'zvel >' comparisons with constants. 2022-10-14 22:55:27 +02:00
Christoph Oelckers
07bac24234 - quickly got rid of a significant bunch of int_zvel calls.
Mapping to float_zvel what could be done with search and replace.
2022-10-14 20:31:57 +02:00
Christoph Oelckers
9f08abc90e - eliminate the only use of zvel in tspritetype.
Since this never gets manipulated on the tsprite size, better get it directly from the actor so that the final velocity vector does not need to be in spritetype et.al.
2022-10-14 20:31:57 +02:00
Christoph Oelckers
bd520e63dd - use float_zvel in a few places. 2022-10-14 20:31:57 +02:00
Christoph Oelckers
999cd16b24 - use clear_zvel 2022-10-14 20:31:57 +02:00
Christoph Oelckers
231107921e - handle a few more operators 2022-10-14 20:31:56 +02:00
Christoph Oelckers
8bfedc327f - add_int_zvel 2022-10-14 20:31:56 +02:00
Christoph Oelckers
6ddfd8e97a - set_int_zvel 2022-10-14 20:31:55 +02:00
Christoph Oelckers
81fc066a5e - use zvel's alias inittype where it's not being used for velocity. 2022-10-14 20:31:55 +02:00
Christoph Oelckers
70d0d0622b - wrapped 0 assignments to zvel 2022-10-14 20:31:55 +02:00
Christoph Oelckers
a9d96864d3 - more zvel wrapping 2022-10-14 20:31:55 +02:00
Christoph Oelckers
3f7b423a4a - zvel wrapping, part 1. 2022-10-14 20:31:55 +02:00
Christoph Oelckers
f78cfb590d - minor cleanup 2022-10-14 20:31:54 +02:00
Christoph Oelckers
5d9a1d5ad5 - Facing 2022-10-14 20:31:54 +02:00
Christoph Oelckers
651bf324e3 - int_Actor* cleanup. 2022-10-14 20:31:54 +02:00
Christoph Oelckers
35d74c7f9f - some MOVExy replacements. 2022-10-14 20:31:54 +02:00
Christoph Oelckers
05ad1e38e9 - renamed PLAYER::bob_amt and minor cleanup. 2022-10-14 20:31:54 +02:00
Christoph Oelckers
b9906ad5ce - grate stuff 2022-10-14 20:31:54 +02:00
Christoph Oelckers
574a24aded - some simple stuff 2022-10-14 20:31:54 +02:00
Christoph Oelckers
c7c9ab52ce - the last remaining set_int_z calls in SW. 2022-10-14 20:31:53 +02:00
Christoph Oelckers
6b06d37d14 - the last uses of the int_Actor functions. 2022-10-14 20:31:53 +02:00
Christoph Oelckers
562ac2461d - InitSkelSpell 2022-10-14 20:31:53 +02:00
Christoph Oelckers
d815d0dfeb - two more functions 2022-10-14 20:31:53 +02:00
Christoph Oelckers
6a9972938e - position in InitZillaRail 2022-10-14 20:31:53 +02:00
Christoph Oelckers
bd54c4e8e2 - floatified WeaponHitscanShootFeet 2022-10-14 20:31:53 +02:00
Christoph Oelckers
12d182db6d - floatify InitEnemyUzi. 2022-10-14 20:31:52 +02:00
Christoph Oelckers
91a89cd0f5 - more SetZVelFromTarget. 2022-10-14 20:31:52 +02:00
Christoph Oelckers
c6d69da727 - serpent stuff 2022-10-14 20:31:52 +02:00
Christoph Oelckers
453c45e0dc - floatified InitVulcanBoulder 2022-10-14 20:31:52 +02:00
Christoph Oelckers
43a108bfb6 - consolidated and floatified 4 occurences of the same formula. 2022-10-14 20:31:52 +02:00
Mitchell Richters
d63fb33dd0 - Pass DVector2 objects directly through to F2DDrawer::AddLine() and F2DDrawer::AddThickLine().
* Since all the external code calling through to these methods are built on vectors, makes sense to pass them around by reference.
2022-10-14 18:19:04 +02:00
Mitchell Richters
e57ef59900 - Minor consistency fix with Duke and SW's automap code. 2022-10-14 18:19:03 +02:00
Mitchell Richters
5407de6924 - Use MaxSmoothRatio everywhere so refactoring is easier later on. 2022-10-14 18:19:03 +02:00
Mitchell Richters
7d85acac13 - Clean up remaining automap interfaces to finish the floatification.
* Even though we pre-calculate the sine/cosine needed in `DrawOverheadMap()`, Duke and SW require the full angle for their more mature automaps.
2022-10-14 18:19:02 +02:00
Mitchell Richters
a4ac9afa2f - SW: Floatify automap draw code (same math as Duke's, fortunately). 2022-10-14 18:19:02 +02:00
Christoph Oelckers
ca27a2e47f - floatified SpawnGrenadeExp 2022-10-14 18:19:02 +02:00
Christoph Oelckers
02ad203a79 - floatified SpawnCoolieExp 2022-10-14 18:19:01 +02:00
Christoph Oelckers
9d35e3efd4 - fix compiler warning 2022-10-14 18:19:01 +02:00
Christoph Oelckers
99b8457eb4 - FindDistance in DoExpDamageTest 2022-10-14 18:19:01 +02:00
Christoph Oelckers
e2fdb5fc02 - vneartag in ActorTrackDecide 2022-10-14 18:19:01 +02:00
Christoph Oelckers
91355e4b04 - floatified ActorDrop 2022-10-14 18:19:01 +02:00
Christoph Oelckers
cef65c4ba4 - very simple replacements 2022-10-14 18:19:01 +02:00
Christoph Oelckers
9a2929a9c6 - floatified BuildNearTagList calls 2022-10-14 18:19:00 +02:00
Christoph Oelckers
958ec46cbb - floatified InitRipper2Hang 2022-10-14 18:19:00 +02:00
Christoph Oelckers
984dfb9889 - floatified InitRipperHang 2022-10-14 18:19:00 +02:00
Christoph Oelckers
975e08666c - floatified 2 updatesectorz calls. 2022-10-14 18:19:00 +02:00
Christoph Oelckers
138e200510 - floatified UpdatePlayerUnderSprite 2022-10-14 18:19:00 +02:00
Christoph Oelckers
19f5eac518 - SpawnActor in SpawnShell 2022-10-14 18:19:00 +02:00
Christoph Oelckers
dd171cd158 - floatified GetRepeatFromHeight's input. 2022-10-14 18:18:59 +02:00
Christoph Oelckers
49b9863e42 - handle parts of CameraView 2022-10-14 18:18:59 +02:00
Christoph Oelckers
c6bb8cea89 - some simple replacements. 2022-10-14 18:18:59 +02:00
Christoph Oelckers
933e5eb35a - floatified WeaponAutoAimZVel 2022-10-14 18:18:59 +02:00
Christoph Oelckers
1bf6170fc1 - two one-liners 2022-10-14 18:18:59 +02:00
Christoph Oelckers
8a23a5d16b - floatified VectorWormSeek 2022-10-14 18:18:58 +02:00
Christoph Oelckers
07f2039095 - floatified most of WeaponAutoAim 2022-10-14 18:18:58 +02:00
Christoph Oelckers
cbf929fc50 - floatified VectorMissileSeek 2022-10-14 18:18:58 +02:00
Christoph Oelckers
c2064fc5c0 - floatified ComboMissileSeek 2022-10-14 18:18:58 +02:00
Christoph Oelckers
75d2b4560d - floatified MissileSeek. 2022-10-14 18:18:58 +02:00
Christoph Oelckers
02e411080c - SW: floatified SpawnBlood 2022-10-14 18:18:28 +02:00
Christoph Oelckers
3ce9c15829 - floatified SpawnShrap 2022-10-14 18:13:50 +02:00
Christoph Oelckers
c9ab96f504 - floatified SpriteOverlapZ 2022-10-14 18:13:48 +02:00
Christoph Oelckers
a5d6cbaa57 - floatified SpriteOverlap and user.OverlayZ 2022-10-14 18:13:48 +02:00
Christoph Oelckers
6d91838ae5 - floatified SpawnActor call in DoSpawnTeleporterEffect 2022-10-14 18:13:48 +02:00
Christoph Oelckers
bb8c12efb4 - inlined GetSpriteSizeY in the only place where it was used. 2022-10-14 18:13:48 +02:00
Christoph Oelckers
9717082759 - int_change is gone 2022-10-14 18:13:48 +02:00
Christoph Oelckers
4b25400e40 - floatified SlopeBounce 2022-10-14 18:13:47 +02:00
Christoph Oelckers
d946e5de70 - floatified WallBounce 2022-10-14 18:13:47 +02:00
Christoph Oelckers
9aedc3fe9e - more change wrappers removed 2022-10-14 18:13:47 +02:00
Christoph Oelckers
a5d6e1d406 - more int_change gone 2022-10-14 18:13:47 +02:00
Christoph Oelckers
a59f363224 - eliminated some int_change calls 2022-10-14 18:13:46 +02:00
Christoph Oelckers
620de9ebf7 - handle all remaining move_sprite calls.
int_ceiling_dist and int_floor_dist are gone
2022-10-14 18:13:46 +02:00
Christoph Oelckers
55eb824e7d - migrated several move_sprite calls 2022-10-14 18:10:45 +02:00
Christoph Oelckers
2838fa3e72 - floatified sectortype::ang 2022-10-14 17:17:37 +02:00
Christoph Oelckers
ce7533c1c4 - floatified move_missile’s API 2022-10-14 17:17:37 +02:00
Christoph Oelckers
e7197e2d73 - migrate all remaining move_missile calls 2022-10-14 17:17:37 +02:00
Christoph Oelckers
f7d2ab20d8 - handle more move_missile calls 2022-10-14 17:17:36 +02:00
Christoph Oelckers
9803041dfb - refactored move_missile calls 2022-10-14 17:17:36 +02:00
Christoph Oelckers
93ce8f77be - got rid of temporary helper wrappers 2022-10-14 17:17:36 +02:00
Christoph Oelckers
3d336bb7e7 - floatified USER::change 2022-10-14 17:17:01 +02:00
Christoph Oelckers
153b5b84f3 - wrapped almost everything 2022-10-14 17:17:01 +02:00
Christoph Oelckers
8bb609fbb1 - set_int_change_z 2022-10-14 17:17:01 +02:00
Christoph Oelckers
8bb4bc55eb - set_int_change_y 2022-10-14 17:17:01 +02:00
Christoph Oelckers
b6c0560430 - set_int_change_x 2022-10-14 17:17:01 +02:00
Christoph Oelckers
390dd4d9df - wrapped a few more 2022-10-14 17:17:00 +02:00
Christoph Oelckers
fbfec1f037 - avoid using change.X as a marker value 2022-10-14 17:17:00 +02:00
Christoph Oelckers
6334b7d3b8 - wrapped half of the remaining access to user.change
Strictly search and replace.
2022-10-14 17:17:00 +02:00
Christoph Oelckers
420636f7ee - a bit more lightening on change 2022-10-14 17:17:00 +02:00
Christoph Oelckers
10e08556c1 - put more access to user.change behind wrappers 2022-10-14 17:16:59 +02:00
Christoph Oelckers
f81aada041 - lightened the number of references to user.change by 1/3rd
The less, the better for refactoring
2022-10-14 17:16:31 +02:00
Christoph Oelckers
ab3e7df1b9 - use UpdateChangeXY in a few more places 2022-10-14 00:06:30 +02:00
Christoph Oelckers
61fc57131f - eliminated a few calls to int_Actor* functions 2022-10-14 00:06:30 +02:00
Christoph Oelckers
b557e5b5db - eliminated int_upos wrapper 2022-10-14 00:06:30 +02:00
Christoph Oelckers
3ac4e7ed2d - eliminated player_int_ceiling_dist, player_int_floor_dist wrappers 2022-10-14 00:06:30 +02:00
Christoph Oelckers
8c5e52938d - deleted int_loz/hiz wrappers 2022-10-14 00:06:30 +02:00
Christoph Oelckers
c59b052d19 - floatified PickJumpMaxSpeed 2022-10-14 00:06:29 +02:00
Christoph Oelckers
502994fb0a - floatified SpawnExpZadjust’s interface 2022-10-14 00:06:29 +02:00
Christoph Oelckers
f656d8b1a3 - floatified SpawnExpZadjust 2022-10-14 00:06:29 +02:00
Christoph Oelckers
4a486f5a10 - deal with an extremely redundant code fragment
Consolidates almost 100 lines that still need work in a small subfunction. :)
2022-10-13 22:54:43 +02:00
Christoph Oelckers
28c8efd104 - eliminated set_int_ppos_Z 2022-10-13 22:54:43 +02:00
Christoph Oelckers
785575604b - no need to use int_delta when all we want is the angle. 2022-10-13 22:54:43 +02:00
Christoph Oelckers
6ce01e24d2 - renamed walltype::delta and walltype::center 2022-10-13 22:54:42 +02:00
Christoph Oelckers
1d28ebec98 - eliminated add_int_z and add_int_y wrappers 2022-10-13 22:54:42 +02:00
Christoph Oelckers
ffba7996b3 - SW: floatified PLAYER::siang 2022-10-13 20:58:12 +02:00
Christoph Oelckers
634db656e7 - SW: floatified PLAYER::si 2022-10-13 20:58:12 +02:00
Christoph Oelckers
94e198f9a9 - SW: floatified DoPlayerTeleportToSprite 2022-10-13 20:58:12 +02:00
Christoph Oelckers
f4d8ccf7b9 - floatified WarpToCoords 2022-10-13 20:58:12 +02:00
Christoph Oelckers
cceecb4ab6 - use ToVector where appropriate 2022-10-13 20:41:54 +02:00
Christoph Oelckers
5bb9a16d34 - floatified TRACK_ACTOR_CLIMB_LADDER case in ActorTrackDecide 2022-10-13 20:23:34 +02:00
Christoph Oelckers
0fcbe57111 - pos in DoBloodWorm 2022-10-13 19:59:15 +02:00
Christoph Oelckers
06be4eeb91 - floatified most of SpriteWarpToUnderwater 2022-10-13 19:59:15 +02:00
Christoph Oelckers
db16eb9d19 - converted position in move_ground_missile 2022-10-13 19:59:15 +02:00
Christoph Oelckers
2044a7c562 - converted some simple assignments 2022-10-13 19:59:15 +02:00
Christoph Oelckers
07826c7791 - eliminated DCoreActor::copyXY 2022-10-13 00:59:05 +02:00
Mitchell Richters
4d04a4dd3a - Floatified automap's gZoom.
* Also use the global directly in automap functions instead of passing it around as function variables.
2022-10-13 00:59:04 +02:00
Mitchell Richters
f5116dd787 - Pass a DAngle through to all the automap code. 2022-10-13 00:59:04 +02:00
Mitchell Richters
e970ed0f27 - Migrate spritetypebase::interpolatedvec3() to backend solution.
* Also eliminate unused `interpolatedvec2() method from class.
2022-10-13 00:59:03 +02:00
Mitchell Richters
1e36aa0e7f - Move TAngle<> interpolation function to common and add ones for TVector<> classes. 2022-10-13 00:59:03 +02:00
Mitchell Richters
dbcde19834 - Remove some Normalized360() method calls I added where it shouldn't be necessary. 2022-10-13 00:59:03 +02:00
Mitchell Richters
2e25ccaa4d - SW: Replace some set_int_ang() usage. 2022-10-13 00:59:02 +02:00
Christoph Oelckers
5faeedc144 -refactored the remaining code using int_zclip. 2022-10-13 00:59:02 +02:00
Christoph Oelckers
78e8957043 -refactored the remaining code using int_zclip for move_missile. 2022-10-13 00:59:02 +02:00
Christoph Oelckers
d3715e3332 - floatified globloz and globhiz 2022-10-13 00:59:01 +02:00
Christoph Oelckers
d573ba4cad - pass map start as DVector3 2022-10-13 00:59:01 +02:00
Christoph Oelckers
b949f37be2 - Sound stuff for SW 2022-10-13 00:59:01 +02:00
Christoph Oelckers
0edd12bc11 - set_int_ang(getangle 2022-10-13 00:59:01 +02:00
Christoph Oelckers
f45e6317ab - SpriteWarpToSurface 2022-10-13 00:59:00 +02:00
Christoph Oelckers
2f896b859b - made the code mostly signed-char safe.
This eliminates all char function parameters that are not really ASCII characters and casts all char argument to the ctype is... functions.
2022-10-12 22:12:30 +02:00
Christoph Oelckers
f269ceff64 slope functions with position vectors 2022-10-12 22:10:37 +02:00
Christoph Oelckers
0499be0c26 - getting rid of some int_pos calls. 2022-10-12 22:10:37 +02:00
Christoph Oelckers
a5a3669238 - eliminated the SetActor/Z function receiving a vec3_t pointer.
The only one left is the one with a DVector3 now.
2022-10-12 22:10:36 +02:00
Christoph Oelckers
f750ea8a70 - twq more SpawnActor calls. 2022-10-12 22:10:36 +02:00
Christoph Oelckers
12b238b2bf - the remaining SpawnActor calls. 2022-10-12 22:10:36 +02:00
Christoph Oelckers
80f019c429 - next batch of SpawnActor calls. 2022-10-12 22:10:35 +02:00
Christoph Oelckers
c7437da255 - more SpawnActors 2022-10-12 22:10:35 +02:00
Christoph Oelckers
da6e8e9341 - several SpawnActor and getangle calls. 2022-10-12 22:10:35 +02:00
Christoph Oelckers
fe42de1fcb - the one add_int_floorz/add_int_ceilingz calls each in SW. 2022-10-12 22:10:35 +02:00
Christoph Oelckers
f0769048ed - yet another bunch of SpawnActor calls in weapon.cpp 2022-10-12 22:10:35 +02:00
Christoph Oelckers
5e28b2cca3 - lots of SpawnActor calls in weapon.cpp 2022-10-12 22:10:34 +02:00
Christoph Oelckers
446407cafe - more SpawnActor calls 2022-10-12 22:10:34 +02:00
Christoph Oelckers
d8c7054751 - many SpawnActor calls 2022-10-12 22:10:34 +02:00
Christoph Oelckers
2a8dd6b955 - improved RANDOM_P2F interface. 2022-10-12 22:10:34 +02:00
Christoph Oelckers
f77ecbed32 - several HitBreakWall calls 2022-10-12 22:10:34 +02:00
Christoph Oelckers
3a0eec76ad - some getangle and SpawnActor calls 2022-10-12 22:10:34 +02:00
Christoph Oelckers
97223af592 - silenced a few conversion truncation warnings. 2022-10-12 15:49:07 +02:00
Christoph Oelckers
f35c610328 - the remaining cansee calls 2022-10-11 18:09:48 +02:00
Christoph Oelckers
d8f379c8fa - SetActorZ vectors 2022-10-10 17:37:20 +02:00
Christoph Oelckers
e76dfa5d3c - GetActor pos replacement 2022-10-10 17:37:19 +02:00
Christoph Oelckers
e20b2ab872 - don't use labs. 2022-10-10 17:37:19 +02:00
Christoph Oelckers
0767ffe41b - eliminated the last wrapper call for track points 2022-10-10 17:37:17 +02:00
Christoph Oelckers
23a0433b95 - the remaining track point stuff. 2022-10-10 17:37:17 +02:00
Christoph Oelckers
aa584c51ac - trackpoint wrapper cleanup 2022-10-10 17:37:17 +02:00
Christoph Oelckers
90cbb1be13 - more track stuff 2022-10-10 17:37:17 +02:00
Christoph Oelckers
767933dff9 - track stuff in ai.cpp 2022-10-10 17:37:17 +02:00
Christoph Oelckers
27152ae189 - floatified track point storage. 2022-10-10 17:37:17 +02:00
Christoph Oelckers
3ac4b6300f - code cleanup to eliminate wrappers. 2022-10-10 17:36:41 +02:00
Christoph Oelckers
ed12e333e3 - RANDOM_ANGLE + move_debris 2022-10-10 17:31:30 +02:00
Christoph Oelckers
834f833298 - 2 getangle calls refactored 2022-10-10 17:31:30 +02:00
Christoph Oelckers
ef1e77514d - floatified DoActorOperate 2022-10-10 17:31:30 +02:00
Christoph Oelckers
072cb5ccdf - floatified CanHitPlayer and sanitized its overcomplicated and broken math. 2022-10-10 17:31:29 +02:00
Christoph Oelckers
bc5a92bcc9 - distance stuff in sound code. 2022-10-10 17:31:29 +02:00
Christoph Oelckers
9444bd4370 - last FAFcansee bunch 2022-10-10 17:31:29 +02:00
Christoph Oelckers
7aca321fab - FAFcansee refactoring, part 5. 2022-10-10 17:31:29 +02:00
Christoph Oelckers
9f9a315ce2 - FAFcansee refactoring, part 4. 2022-10-10 17:31:29 +02:00
Christoph Oelckers
4aa5de689c - renamed old FAFcansee function for easier searching. 2022-10-10 17:31:29 +02:00
Christoph Oelckers
ff6d1fd284 - FAFcansee refactoring, part 3. 2022-10-10 17:31:29 +02:00
Christoph Oelckers
7eb2dede6a - FAFcansee refactoring, part 2. 2022-10-10 17:31:29 +02:00
Christoph Oelckers
5b7b8233e7 - FAFcansee refactoring, part 1. 2022-10-10 17:31:28 +02:00
Christoph Oelckers
6ee24a2213 - let ANIM work on the native floating point data. 2022-10-10 17:31:28 +02:00
Christoph Oelckers
80e10d89f4 - added alignceilslope and alignflorslope variants receiving a position vector. 2022-10-10 17:31:28 +02:00
Christoph Oelckers
98b06697f7 - pass position pointers to DISTANCE. 2022-10-10 17:31:28 +02:00
Christoph Oelckers
bd497a7e68 - floatified remote.pos. 2022-10-09 23:59:01 +02:00
Christoph Oelckers
837b31c672 - got rid of int_ploz and int_phiz. 2022-10-09 23:59:01 +02:00
Christoph Oelckers
7475a6cfb7 - renamed variable back. 2022-10-09 23:57:17 +02:00
Christoph Oelckers
e089100ab1 - floatified PLAYER::bob_amt 2022-10-09 23:56:15 +02:00
Christoph Oelckers
4dc2fc9151 - floatified 3 function interfaces. 2022-10-09 22:30:51 +02:00
Christoph Oelckers
24b23d6919 - floatified PLAYER::ceiling_dist/floor_dist. 2022-10-09 22:30:51 +02:00
Christoph Oelckers
8aab82691b - renamed two PLAYER members for easier searching. 2022-10-09 22:30:51 +02:00
Christoph Oelckers
6497456471 - most of int_phiz,int_ploz 2022-10-09 22:29:54 +02:00
Christoph Oelckers
e1a26c157d - leftovers 2022-10-09 22:00:43 +02:00
Christoph Oelckers
13d9505662 - PLAYER::hiz,loz refactoring, part 1 2022-10-09 22:00:43 +02:00
Christoph Oelckers
30b620c700 - removed unused oz_speed member variable. 2022-10-09 22:00:43 +02:00
Christoph Oelckers
e1ceab240b - SW's quake stuff 2022-10-09 22:00:43 +02:00
Christoph Oelckers
31dfd1af7a - eliminated most int_upos calls. 2022-10-09 21:57:30 +02:00
Christoph Oelckers
df2f68efc1 - messy ladder stuff. 2022-10-09 14:53:11 +02:00
Christoph Oelckers
17d5242958 - got rid of int_z_tgt 2022-10-09 14:53:11 +02:00
Christoph Oelckers
d2818322b0 - 2x int_hiz 2022-10-09 14:53:11 +02:00
Christoph Oelckers
7e963cb7a3 - floatified DoHornetMatchPlayerZ 2022-10-09 14:53:11 +02:00
Christoph Oelckers
0d24aeb3f5 - handle all remaining trivial int_loz. 2022-10-09 14:53:11 +02:00
Christoph Oelckers
5e14361dd6 - another set of 2 Utilities prepared for floatification. 2022-10-09 14:53:11 +02:00
Christoph Oelckers
82968f876f - floatified most of DoEelMatchPlayerZ 2022-10-09 14:53:11 +02:00
Christoph Oelckers
9ed66acd44 - renamed 2 integer functions to add float variants 2022-10-09 14:53:10 +02:00
Christoph Oelckers
abf9d764c4 - fix some z scaling mishap (again...)
- shadow stuff
2022-10-09 14:53:10 +02:00
Christoph Oelckers
30e6db9e3b - floatified DoVatorMove and got rid of int_oz. 2022-10-09 14:53:10 +02:00
Christoph Oelckers
af7e63137f - got rid of most int_oz calls. 2022-10-09 14:53:10 +02:00
Christoph Oelckers
9433f2ada8 - floatified DoCoolgMatchPlayerZ. 2022-10-09 14:53:10 +02:00
Christoph Oelckers
f53a61693b - floatified user.pos.
Special care needed to be taken for two cases where it did not store a coordinate.
2022-10-09 08:21:56 +02:00
Christoph Oelckers
f43a8d4fce - user.pos wrapping. 2022-10-09 08:21:56 +02:00
Christoph Oelckers
bc853d3a00 - user.zclip floatified 2022-10-09 08:21:56 +02:00
Christoph Oelckers
a93349b445 - messy pointer use cleaned up. 2022-10-09 08:21:56 +02:00
Christoph Oelckers
a630f27a48 - wrapped user.zclip reads. 2022-10-09 08:21:56 +02:00
Christoph Oelckers
4021d13e8d - completed floatification of ceiling_dist and floor_dist. 2022-10-09 08:21:56 +02:00
Christoph Oelckers
5416100ba2 - trivial assignments
(does not compile, this commit is only supposed to reduce the noise on the next one.
2022-10-09 08:21:55 +02:00
Christoph Oelckers
5f12f0deaa - missed 3. 2022-10-09 08:21:55 +02:00
Christoph Oelckers
8672a9f051 - wrapped user.floor_dist reads. 2022-10-09 08:21:55 +02:00
Christoph Oelckers
4f073dec26 - wrapped user.ceiling_dist reads. 2022-10-09 08:21:55 +02:00
Christoph Oelckers
467ab9f7ee - int_hiz/int_loz replacements. 2022-10-09 08:21:55 +02:00
Christoph Oelckers
425f4055b4 - floatified user.z_tgt. 2022-10-09 08:21:55 +02:00
Christoph Oelckers
65d1e5cac9 - wrapped user.z_tgt reads. 2022-10-09 08:21:55 +02:00
Christoph Oelckers
620f7c5430 - floatified user.oz. 2022-10-09 08:21:54 +02:00
Christoph Oelckers
a7d62f944b - wrapped user.oz reads. 2022-10-09 08:21:54 +02:00
Christoph Oelckers
306e751a51 - floatified user.hiz and user.loz 2022-10-09 08:21:54 +02:00
Christoph Oelckers
d117544da8 - wrapped user.hiz reads. 2022-10-09 08:21:54 +02:00
Christoph Oelckers
ac3f6d73e3 - wrapped all reads to user.loz. 2022-10-09 08:21:54 +02:00
Christoph Oelckers
ade20cbfe2 - some angular stuff. 2022-10-09 08:21:54 +02:00
Christoph Oelckers
766ddeb445 - one more batch of trivial replacements 2022-10-09 08:21:53 +02:00
Christoph Oelckers
6111b11359 - trivial replacements in SW. 2022-10-09 08:21:53 +02:00
Christoph Oelckers
91acf93c7d - SW: fixed viewpoint interpolation 2022-10-09 08:21:53 +02:00
Christoph Oelckers
df9f444d88 - SW: fixed bad actor parameter in SpawnShell.
cherry pick on master
2022-10-09 08:18:38 +02:00
Christoph Oelckers
0e38d5e52b - SW: fixed sound owner issues with non-follow sounds.
These sounds were given the wrong type now.

cherry pick on master.
2022-10-08 19:28:57 +02:00
Christoph Oelckers
aa0080039f - refactored coordinate display to have a single unified printing function.
The games will now only return the data, this has also been added for Exhumed.
Printing will now be in actual map units, not build's internal mixed format.
2022-10-08 19:28:57 +02:00
Christoph Oelckers
b32c4444c4 - replaced all add_int_z calls with constants. 2022-10-08 19:28:57 +02:00
Christoph Oelckers
4a6f9f316a - one assignment 2022-10-08 19:28:57 +02:00
Christoph Oelckers
5df5520754 - one more 2022-10-08 16:11:23 +02:00
Christoph Oelckers
4d02cdcce9 - use explicit types in hitscan calls 2022-10-06 20:50:47 +02:00
Christoph Oelckers
5455ce42c0 -got rid of some simple int_ppos wrappers. 2022-10-06 20:50:47 +02:00
Christoph Oelckers
76569ffd9f - fix constants 2022-10-06 20:50:47 +02:00
Christoph Oelckers
eedac509a2 - LadderPosition 2022-10-06 20:50:47 +02:00
Christoph Oelckers
c6af5ff9e1 - removed all quickly doable ppos wrapper calls. 2022-10-06 20:50:47 +02:00
Christoph Oelckers
280cd8970e - floatify all 3 player position variables. 2022-10-06 20:50:47 +02:00
Christoph Oelckers
c5414bd29c - map to final names. 2022-10-06 20:50:46 +02:00
Christoph Oelckers
6ced076812 - ladder stuff 2022-10-06 20:50:46 +02:00
Christoph Oelckers
72869304ea - add_int_ppos_XY 2022-10-06 20:50:46 +02:00
Christoph Oelckers
8ff62c5a07 - sone remaining int_ppos. 2022-10-06 20:50:46 +02:00
Christoph Oelckers
f125d615c8 -more ppos setters. 2022-10-06 20:50:46 +02:00
Christoph Oelckers
55aa981f89 - ppos.Z assignments 2022-10-06 20:50:46 +02:00
Christoph Oelckers
5db79fecd7 - more int_ppos 2022-10-06 20:50:45 +02:00
Christoph Oelckers
8e966fc575 - int_ppos replacements 2022-10-06 20:50:45 +02:00
Christoph Oelckers
da73d2bba4 - renamed player position variables. 2022-10-06 20:50:45 +02:00
Christoph Oelckers
22dae296c6 - SW: SectorExp floatified 2022-10-06 20:50:45 +02:00
Christoph Oelckers
ed6adc33c4 - floatified SO rotations. 2022-10-06 20:50:45 +02:00
Christoph Oelckers
e71254dfa6 - floatified some parts of the SO interface for consistent use of MAXSO. 2022-10-06 20:50:45 +02:00
Christoph Oelckers
b9dbcebe2e - floatified SECTOR_OBJECT::pmid 2022-10-06 20:50:44 +02:00
Christoph Oelckers
9393170408 - new utilities for SO floatification. 2022-10-06 20:50:44 +02:00
Christoph Oelckers
48cbdeb697 - replaced all possible __int_pmid with access functions. 2022-10-06 20:50:44 +02:00
Christoph Oelckers
819297a409 - SW: renamed SECTOR_OBJECT::pmid 2022-10-06 20:50:44 +02:00
Christoph Oelckers
eef7802111 - SW: floatify some set_int_pos calls 2022-10-06 20:50:44 +02:00
Christoph Oelckers
049c6f948d - deleted unused SpawnWallHole function. 2022-10-06 20:50:43 +02:00
Christoph Oelckers
e8d18e42d1 - SW: QueueHole 2022-10-06 20:50:43 +02:00
Christoph Oelckers
661655fb67 - SW: use a DVector3 in SpawnVis 2022-10-06 20:50:43 +02:00
Christoph Oelckers
3a9f9988f4 - redid clipinsidebox* functions.
* Completely rewritten to be less obtuse.
* Consolidated the two variants.
* Renamed to be clearer about what they do.
2022-10-05 18:31:45 +02:00
Christoph Oelckers
21944d5ac2 - updatesectorz with DVector3. 2022-10-05 18:22:07 +02:00
Christoph Oelckers
643d3e7eba - SW’s BulletHitSprite 2022-10-05 18:19:56 +02:00
Christoph Oelckers
b3d9320d54 - Distance in SW 2022-10-05 18:18:27 +02:00
Christoph Oelckers
84f690654e - hitpos replacements in spawn calls 2022-10-05 18:17:15 +02:00
Christoph Oelckers
5505c362e2 - floatified hitpos 2022-10-05 18:11:59 +02:00
Christoph Oelckers
1f96b4eac6 - Warp wrappers 2022-10-05 18:11:12 +02:00
Christoph Oelckers
55ade2eda4 - use int_hitpos() access function where applicable 2022-10-05 18:10:44 +02:00
Christoph Oelckers
296b5d7edd - renamed HitInfo::hitpos 2022-10-05 18:03:41 +02:00
Christoph Oelckers
086c699df0 - use float coords for spawning some SW actors. 2022-10-05 18:01:57 +02:00
Christoph Oelckers
0c8ed75d54 - SW: SpawnActor with float vector 2022-10-05 18:01:21 +02:00
Christoph Oelckers
8f4c418a1b - pos simplifications 2022-10-05 18:00:25 +02:00
Christoph Oelckers
46aa695b54 - add a float version of ActorZOfMiddle. 2022-10-05 17:59:32 +02:00
Christoph Oelckers
cdff2b12cc - renamed ActorZOfMiddle 2022-10-05 17:58:37 +02:00