Commit graph

4973 commits

Author SHA1 Message Date
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
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
5a580c145e - Backend update from GZDoom. 2022-10-14 20:19:48 +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
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
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
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
01bb7aa9f5 removed player_set_int_z 2022-10-14 00:06:29 +02:00
Christoph Oelckers
f33ecbc14f - Duke/RR: floatified position stuff in unterwater() 2022-10-14 00:06:29 +02:00
Christoph Oelckers
bbdb3379d6 - RR: partially floatified movement() 2022-10-14 00:06:29 +02:00
Christoph Oelckers
0dbe224ad1 - Duke: floatified movement 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
05a7fe8f36 - renamed walltype::fdelta and fcenter 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
ee41cda31e - Duke: floatified pyoff 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
70d0b2ea93 - Exhumed: floatified most of CreatePushBlock 2022-10-13 22:54:42 +02:00
Christoph Oelckers
32dab95c8d - DukeWT’ s Firefly shot 2022-10-13 22:54:42 +02:00
Christoph Oelckers
24f46771a1 - floatified shootflamethrowerflame 2022-10-13 22:52:51 +02:00
Christoph Oelckers
06e86735fc - use temp_pos instead of maintaining yet another variable for FIREBALL 2022-10-13 20:58:13 +02:00
Christoph Oelckers
559c24fa92 - 3 simple set_int_pos replacements 2022-10-13 20:58:12 +02:00
Christoph Oelckers
ac3302733f - floatified FindWallSprites 2022-10-13 20:58:12 +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
161153c783 - variable replacements 2022-10-13 20:58:12 +02:00
Christoph Oelckers
f4d8ccf7b9 - floatified WarpToCoords 2022-10-13 20:58:12 +02:00
Christoph Oelckers
38a2d31907 - use floating point rotation in SE14. 2022-10-13 20:58:12 +02:00
Christoph Oelckers
55455ea4fa - use floating point for the last remaining rotation in TranslateSector 2022-10-13 20:58:11 +02:00
Christoph Oelckers
decaff78dc - floatified parts of useSeqSpawnerGen.
Also fixing a sprite size bug in here.
2022-10-13 20:58:11 +02:00
Christoph Oelckers
5fba68ffe1 - floatified Blood’s kViewEffectTrail 2022-10-13 20:58:11 +02:00
Christoph Oelckers
b73314579a - floatified Blood’s kViewEffectAtom
This also gets rid of the rather pointless rotation functions that were just added for this.
2022-10-13 20:58:11 +02:00
Christoph Oelckers
ea9c88d952 - floatified Blood’s MoveMissile function 2022-10-13 20:56:38 +02:00
Christoph Oelckers
978c35fda1 - mess reduction in Blood’s TranslateSector
We can also get rid of set_int_xy now.
2022-10-13 20:42:29 +02:00
Christoph Oelckers
5f93ba9053 - use temp_pos for TRIPBOMB and SE26 2022-10-13 20:42:29 +02:00
Christoph Oelckers
bdeb056727 - added temp_pos to DDukeActor
Same reasons as for temp_angle apply.
2022-10-13 20:41:54 +02:00
Christoph Oelckers
cceecb4ab6 - use ToVector where appropriate 2022-10-13 20:41:54 +02:00
Christoph Oelckers
0c757ff96a - use temp_angle for TRIPBOMB’s saved angle 2022-10-13 20:41:14 +02:00
Christoph Oelckers
a1b2f7d555 - floatified initshell 2022-10-13 20:23:52 +02:00
Christoph Oelckers
93fd94ecbb - partial floatification of movesprite 2022-10-13 20:23:52 +02:00
Christoph Oelckers
33a3a36da1 - floatify pos in movesprite_ex_r 2022-10-13 20:23:52 +02:00
Christoph Oelckers
ae0640b1ca - floatify pos in movesprite_ex_d 2022-10-13 20:23:52 +02:00
Christoph Oelckers
2895e8ac05 - partial floatification of handle_se26 2022-10-13 20:23:51 +02:00
Christoph Oelckers
5bb9a16d34 - floatified TRACK_ACTOR_CLIMB_LADDER case in ActorTrackDecide 2022-10-13 20:23:34 +02:00
Christoph Oelckers
21feb41d78 - Exhumed: gave local variables in FindWallSprites meaningful names 2022-10-13 19:59:16 +02:00
Christoph Oelckers
aec74d5d0d - added temp_angle variable to DDukeActor
To avoid using temp_data as storage for angles in TRIPBOMB.
2022-10-13 19:59:15 +02:00
Christoph Oelckers
7ddfd944e6 - floatified position in BuildEnergyBlock 2022-10-13 19:59:15 +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
23bd9918af - pass a DVector3 to updatesectorneighbor 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
bdf35ac3a9 - Eliminate spritetypebase::__interpolatedvec2(). 2022-10-13 00:59:03 +02:00
Mitchell Richters
19d21555a6 - Duke: Change int_ang() usage in camera().
* This commit also restores the original method of incrementing the camera's angle that was replaced due to a hiccup/stutter where the angle suddenly skipped forward by 16 instead of 8, but with a fix from EDuke32. This avoids using 3x extra `temp_data[]` slots.
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
d133839e2e - Fix a few uses of interpolatedvalue() with floating point numbers. 2022-10-13 00:59:03 +02:00
Mitchell Richters
92b16907d2 - Use getincangle() in more places so it can be refactored easier later on. 2022-10-13 00:59:02 +02:00
Mitchell Richters
2e25ccaa4d - SW: Replace some set_int_ang() usage. 2022-10-13 00:59:02 +02:00
Mitchell Richters
a22300fe01 - Blood: Replace some set_int_ang() usage.
* A lot of this repeated code should be factored out into repeated blocks when all of this floatification is done.
2022-10-13 00:59:02 +02:00
Christoph Oelckers
8f5340c3a7 - set_int_ang(...int_ang()) 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
40312d64c8 -coordinates 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
45be09e6ab - more angle assignments 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
25949ce6ab - gut stuff 2022-10-13 00:59:00 +02:00
Christoph Oelckers
d700b11887 - getangle in animatesprites 2022-10-13 00:59:00 +02:00
Christoph Oelckers
478672879e - partial HitScan parameter change
The really easy stuff…
2022-10-13 00:59:00 +02:00
Christoph Oelckers
f45e6317ab - SpriteWarpToSurface 2022-10-13 00:59:00 +02:00
Christoph Oelckers
54cf1aea6f - got rid of CGibPosition 2022-10-13 00:59:00 +02:00
Christoph Oelckers
3d29c8f3ad - floatified position in checkhitwall 2022-10-13 00:59:00 +02:00
Christoph Oelckers
2aec324a25 - EGS with hitpos 2022-10-13 00:58:59 +02:00
Christoph Oelckers
f80b228a83 - deal with int positions in approxdist calls 2022-10-13 00:58:59 +02:00
Christoph Oelckers
c53a2ac93a - one final batch of AI stuff 2022-10-13 00:58:59 +02:00
Christoph Oelckers
230913bad3 - another large AI cleanup batch 2022-10-13 00:58:59 +02:00
Christoph Oelckers
ea04f5f800 - more vector stuff in Blood AI
all the same pattern
2022-10-12 22:18:11 +02:00
Christoph Oelckers
67d0e51919 - migrate Blood AI to floating point vectors, part 1
Velocity is still left untouched.
2022-10-12 22:18:11 +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
e26d6aec14 - 3* EGS->CreateActor 2022-10-12 22:10:37 +02:00
Christoph Oelckers
97e93004b1 - quick’n easy replacements 2022-10-12 22:10:37 +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
18a445aee5 - added ZeroVelocity function to DBloodActor. 2022-10-12 22:10:36 +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
00436bfdac - eliminated one UpdateActor pverload. 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
9af2045dee - code cleanup in Exhumed's Lion AI. 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
8a86cc26b6 - floatified Recon. 2022-10-12 22:10:35 +02:00
Christoph Oelckers
9275c14c9c - floatify SE18 handler.
To store floars in temp_data without relying on map format conventions, the FixedTo functions were extended to allow custom precision.
2022-10-12 22:10:35 +02:00
Christoph Oelckers
1131eeb443 - setfloorz and setceilingz must be called for changing sector planes 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
a0c0894e41 - aiSetTarget 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
db0ce36143 - use engine's updatesector in Blood instead of the limited homegrown FindSector variant. 2022-10-11 18:09:48 +02:00
Christoph Oelckers
72187a7f3b - mummy’s cansee and FindPlayer 2022-10-11 18:09:05 +02:00
Mitchell Richters
b804d7fe15 - Duke: Fix bad setups when calling cansee(). Fixes issues with pigcop on kerb in E2L1. 2022-10-11 18:07:40 +02:00