Commit graph

11622 commits

Author SHA1 Message Date
Christoph Oelckers
58642c4d2f - cleaned up the distance checks in operatetripbomb 2022-10-14 23:55:31 +02:00
Christoph Oelckers
c45ecdae73 - wrapped all velocity access in Blood, except the places where an address of vel is taken 2022-10-14 23:55:30 +02:00
Christoph Oelckers
7a7a2cdb39 - various replacements of vel 2022-10-14 23:55:30 +02:00
Christoph Oelckers
f1d3126435 - vel assignments 2022-10-14 23:55:30 +02:00
Christoph Oelckers
151fc46ef3 - removed unused wrapper. 2022-10-14 23:53:56 +02:00
Christoph Oelckers
994cb47d36 - set_int_bvel_z 2022-10-14 23:52:44 +02:00
Christoph Oelckers
9cbffc998e - set_int_bvel_y 2022-10-14 23:52:44 +02:00
Christoph Oelckers
761da2b06e - set_int_bvel_x 2022-10-14 23:52:43 +02:00
Christoph Oelckers
b78d5a95ac - more add_int_bvel_ 2022-10-14 23:52:43 +02:00
Christoph Oelckers
1999340c8a - add_int_bvel_z 2022-10-14 23:52:43 +02:00
Christoph Oelckers
49d280c665 - add_int_bvel_y 2022-10-14 23:52:43 +02:00
Christoph Oelckers
12e5fd133c - add_int_bvel_x 2022-10-14 23:52:43 +02:00
Christoph Oelckers
49f0e9c57d - batch 3 of vel. 2022-10-14 23:52:43 +02:00
Christoph Oelckers
193d20bb4d - wrapped more xvels 2022-10-14 23:52:43 +02:00
Christoph Oelckers
e3758d6adc - started wrapping vel 2022-10-14 23:52:42 +02:00
Christoph Oelckers
e7b09dbaac - renamed vel. 2022-10-14 23:52:42 +02:00
Christoph Oelckers
cb81a50752 - Blood vel wrappers. 2022-10-14 23:52:42 +02:00
Christoph Oelckers
a5a04b1123 - moved Blood's velocity vector to DCoreActor. 2022-10-14 23:52:42 +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
9ba03ac53f - renamed yvel to yint in Duke.
It's never used as velocity, but as an auxiliary parameter so name it appropriately.
2022-10-14 23:17:45 +02:00
Christoph Oelckers
5f4a0cf208 - removed bogus velocity code for RRRA's empty bike and boat. 2022-10-14 23:17:45 +02:00
Christoph Oelckers
9621cd08d2 - use PlayerIndex plus a bit of cleanup. 2022-10-14 23:17:45 +02:00
Christoph Oelckers
45d95ec053 - spr.yvel is gone in Exhumed 2022-10-14 23:13:34 +02:00
Christoph Oelckers
490d4d3555 - set_int_yvel 2022-10-14 23:13:34 +02:00
Christoph Oelckers
b0e67ab88d - clear_yvel 2022-10-14 23:13:34 +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
fb1a9881e3 - half done with 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
0740ccbef1 - use PlayerIndex where appropriate. 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
aa22e48036 - preparations for xvel wrapping.
Mainly providing alternative names for the spritetype members and redirecting all relevant access to those.
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
a98e37b345 - handle int_zvel() == 0 2022-10-14 22:57:36 +02:00
Christoph Oelckers
9f9858d8f4 - handle remaining zvel comparisons. 2022-10-14 22:57:36 +02:00
Christoph Oelckers
56e5388150 - handle 'zvel >' comparisons with constants. 2022-10-14 22:55:27 +02:00
Christoph Oelckers
7e8afd58da - handle 'zvel <' comparisons with constants. 2022-10-14 22:53:22 +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
446b02c11b - Exhumed: separate AngleChase abuse from zvel variable. 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
05f488ce3c - add more wrappers and use 'inittype' where the actual zvel member of spritetype is wanted.
This will avoid problems with search&replace later.
2022-10-14 20:31:56 +02:00
Christoph Oelckers
8946a66350 - handle zvel multiplications with a wrapper.
This completes wrapping of zvel.
2022-10-14 20:31:56 +02:00
Christoph Oelckers
231107921e - handle a few more operators 2022-10-14 20:31:56 +02:00
Christoph Oelckers
588af5aa71 - add_int_zvel with - 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
Christoph Oelckers
09b31afd40 - movieplayer update from GZDoom. 2022-10-14 20:20:06 +02:00
Christoph Oelckers
5a580c145e - Backend update from GZDoom. 2022-10-14 20:19:48 +02:00
Christoph Oelckers
972df67d92 - sound system update from GZDoom. 2022-10-14 19:58:39 +02:00
Mitchell Richters
03bb820944 - Removed unused variable CamRoll from TRotator<> class.
* Residual value left behind in be9b25e760.
2022-10-14 18:19:04 +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
9e93b417b7 - Blood: Some missed MaxSmoothRatio changes. 2022-10-14 18:19:03 +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
Christoph Oelckers
463e1a8047 - account for stupid GCC limitation. 2022-10-14 18:19:03 +02:00
Mitchell Richters
04d20a52c3 - Duke: Set both orotscrnang and rotscrnang when being called from a script, since the former is an addition. 2022-10-14 18:19:03 +02:00
Mitchell Richters
681bd640ed - Make drawlinergb() use twod->AddThickLine() for when am_linethickness is greater than 1, not 2. 2022-10-14 18:19:02 +02:00
Mitchell Richters
0baaad7c23 - Blood: Add seemingly forgotten call to MarkSectorSeen().
* Automap wasn't updating upon movement into new sectors unless the automap was toggled on and off.
2022-10-14 18:19:02 +02:00
Mitchell Richters
d427fc3e02 - Duke: Slightly tidy up CSTAT_SPRITE_ALIGNMENT_FACING automap code. 2022-10-14 18:19:02 +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
5e2d3f5c46 - deleted unused variables from Duke's DrawAutomapPlayer 2022-10-14 18:13:51 +02:00
Christoph Oelckers
3ce9c15829 - floatified SpawnShrap 2022-10-14 18:13:50 +02:00
Mitchell Richters
79f4702d1e - Exhumed: Floatify automap draw code. 2022-10-14 18:13:50 +02:00
Mitchell Richters
56b0661f81 - Blood: Floatify automap draw code. 2022-10-14 18:13:50 +02:00
Mitchell Richters
c2e9e06d2a - Duke: Floatify last part of automap draw code. 2022-10-14 18:13:50 +02:00
Mitchell Richters
ccfaa76da4 - Duke: Floatify CSTAT_SPRITE_ALIGNMENT_FLOOR|CSTAT_SPRITE_ALIGNMENT_SLOPE automap draw code. 2022-10-14 18:13:50 +02:00
Mitchell Richters
6a4812ce48 - Duke: Floatify CSTAT_SPRITE_ALIGNMENT_WALL automap draw code. 2022-10-14 18:13:49 +02:00
Mitchell Richters
986466de67 - Commence updating gi->DrawAutomapPlayer() for floatification, beginning with Duke's CSTAT_SPRITE_ALIGNMENT_FACING code. 2022-10-14 18:13:49 +02:00
Mitchell Richters
d9f8ac4d2a - Convert automap's follow_x/follow_y variables into a proper vector.
* Should have done this from the start, but anyhow...
2022-10-14 18:13:49 +02:00
Mitchell Richters
059f15c786 - Refactor floatified vector math to use inline wrapped around TVector2's Rotated() method.
* This will be used extensively in Duke and the other game as we finalise this conversion.
2022-10-14 18:13:49 +02:00
Mitchell Richters
e9d5cd2a3a - Flatten automap's zoom values from Q20.10 to floating point. 2022-10-14 18:13:49 +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