Commit graph

713 commits

Author SHA1 Message Date
Mitchell Richters
977d8f8109 - Convert gi->chaseCamPos() to return a floating point DVector3 object. 2022-10-15 12:16:53 +02:00
Mitchell Richters
5685af33d8 - Exhumed: Remove zbob from draw code, it's not used at all. 2022-10-15 12:16:53 +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
b84158ecec - Exhumed snake stuff 2022-10-15 11:35:38 +02:00
Christoph Oelckers
486ef8bfc5 - floatify VelFromAngle 2022-10-15 11:35:38 +02:00
Christoph Oelckers
b462c3d998 - consolidated Exhumed’s velocity setters 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
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
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
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
0aad018796 - second batch of xvel wraps. 2022-10-14 23:13:32 +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
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
446b02c11b - Exhumed: separate AngleChase abuse from zvel variable. 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
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
5a580c145e - Backend update from GZDoom. 2022-10-14 20:19:48 +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
79f4702d1e - Exhumed: Floatify automap draw code. 2022-10-14 18:13:50 +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
70d0b2ea93 - Exhumed: floatified most of CreatePushBlock 2022-10-13 22:54:42 +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
f4d8ccf7b9 - floatified WarpToCoords 2022-10-13 20:58:12 +02:00
Christoph Oelckers
93fd94ecbb - partial floatification of movesprite 2022-10-13 20:23:52 +02:00
Christoph Oelckers
21feb41d78 - Exhumed: gave local variables in FindWallSprites meaningful names 2022-10-13 19:59:16 +02:00
Christoph Oelckers
7ddfd944e6 - floatified position in BuildEnergyBlock 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
Christoph Oelckers
d573ba4cad - pass map start as DVector3 2022-10-13 00:59:01 +02:00
Christoph Oelckers
45be09e6ab - more angle assignments 2022-10-13 00:59:01 +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
9af2045dee - code cleanup in Exhumed's Lion AI. 2022-10-12 22:10:36 +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
72187a7f3b - mummy’s cansee and FindPlayer 2022-10-11 18:09:05 +02:00
Christoph Oelckers
209867e036 - cleaned out some unnecessary inlines. 2022-10-09 22:00:43 +02:00
Christoph Oelckers
766ddeb445 - one more batch of trivial replacements 2022-10-09 08:21:53 +02:00
Christoph Oelckers
7152868077 - trivial replacements in Exhumed. 2022-10-09 08:21:53 +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
c0c74fca84 - fishy grenade stuff 2022-10-08 19:28:56 +02:00
Christoph Oelckers
163146250d - Exhumed: clean up PlayFXAtXYZ interface and its global variable abuse 2022-10-08 19:28:43 +02:00
Christoph Oelckers
de18371e06 - handle lasthit in Exhumed 2022-10-08 16:11:24 +02:00
Christoph Oelckers
0ee39bfad9 - getangle cleanup 2022-10-08 16:11:23 +02:00
Christoph Oelckers
4403a6a411 - eliminated redundant and less precise GetMyAngle function
The engine's getangle function just works fine here.
2022-10-08 16:11:23 +02:00
Christoph Oelckers
c66c750547 - handle all constant add_int_z calls in Exhumed 2022-10-08 16:11:23 +02:00
Christoph Oelckers
3a77742b72 - handle most set_int_z calls in Exhumed 2022-10-08 16:11:23 +02:00
Christoph Oelckers
ae79f3e3c3 - half of GetActorHeight 2022-10-08 16:11:23 +02:00
Christoph Oelckers
f78ecd22a4 - Exhumed: eliminated several set_int_pos calls 2022-10-08 16:11:01 +02:00
Christoph Oelckers
7d9406bf01 - AngleDiff 2022-10-08 10:06:04 +02:00
Christoph Oelckers
9d5acf8350 - getangle calls 2022-10-08 10:06:04 +02:00
Christoph Oelckers
d5bcc64206 - Exhumed: AddFlash floatified 2022-10-08 10:06:04 +02:00
Christoph Oelckers
f6c7a1c41d - final BuildAnim calls
This was a bit more complex.
2022-10-08 10:06:04 +02:00
Christoph Oelckers
8ee10c5488 - Exhumed: use DVector3 in BuildAnim and some related code 2022-10-08 10:06:03 +02:00
Christoph Oelckers
4d02cdcce9 - use explicit types in hitscan calls 2022-10-06 20:50:47 +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
b9d0c9d6ba - simplified slope sprite code a bit and got rid of clipinsidebox overload. 2022-10-05 18:29:30 +02:00
Christoph Oelckers
e6f1d92567 - use floats for spawning Exhumed actors 2022-10-05 18:25:57 +02:00
Christoph Oelckers
5505c362e2 - floatified hitpos 2022-10-05 18:11:59 +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
8f4c418a1b - pos simplifications 2022-10-05 18:00:25 +02:00
Christoph Oelckers
360e01a778 another batch of set_int_pos in Exhumed. 2022-10-05 17:38:44 +02:00
Christoph Oelckers
f485f9d42e - batch of set_int_pos in Exhumed 2022-10-05 17:36:31 +02:00
Mitchell Richters
d28d6cd4cf - Utilise actor sprite's full precision in instances where angle was converted to Build and back again. 2022-10-05 00:36:30 +02:00
Mitchell Richters
5c84f93c08 - Use the static constexpr nullAngle everywhere possible. 2022-10-05 00:36:30 +02:00
Mitchell Richters
02dfe2cb62 - Repair interpolation issues following change of sprite angles from integer to DAngle types. 2022-10-05 00:36:30 +02:00
Christoph Oelckers
fe6fcdff1f - use DAngle for actors
Note that intangle needs to be kept - primarily for SW's ST tags.
2022-10-05 00:36:29 +02:00
Mitchell Richters
abb8b87be1 - Eliminate last remaining binangle inline utilities. 2022-10-05 00:36:28 +02:00