Commit graph

2161 commits

Author SHA1 Message Date
Christoph Oelckers
3f7b423a4a - zvel wrapping, part 1. 2022-10-14 20:31:55 +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
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
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
Christoph Oelckers
5e2d3f5c46 - deleted unused variables from Duke's DrawAutomapPlayer 2022-10-14 18:13:51 +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
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
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
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
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
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
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
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
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
d133839e2e - Fix a few uses of interpolatedvalue() with floating point numbers. 2022-10-13 00:59:03 +02:00
Christoph Oelckers
8f5340c3a7 - set_int_ang(...int_ang()) 2022-10-13 00:59:02 +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
45be09e6ab - more angle assignments 2022-10-13 00:59:01 +02:00