Christoph Oelckers
|
e3aa1da175
|
- CallOnanimate
|
2022-11-13 11:50:28 +01:00 |
|
Mitchell Richters
|
79a1110d5f
|
- Duke: Create new flag SFLAG2_INTERPOLATEANGLE and use for the bearing plate on gears.
* Fixes #719.
|
2022-10-30 16:51:39 +01:00 |
|
Christoph Oelckers
|
35f6ece473
|
- renamed RR’s weapon sprites to match their weapons
|
2022-10-30 16:51:38 +01:00 |
|
Christoph Oelckers
|
81341ce4a6
|
- unwrapped SetScale as well.
Again no edits here - it's one big replace action.
|
2022-10-30 16:51:33 +01:00 |
|
Christoph Oelckers
|
15db7a7143
|
- unwrapped SetScaleX/Y.
|
2022-10-30 16:51:32 +01:00 |
|
Christoph Oelckers
|
51768439a9
|
- started removing wrappers. ScaleX() and ScaleY() done.
No manual changes in here.
|
2022-10-30 16:51:31 +01:00 |
|
Christoph Oelckers
|
2a4483e860
|
- all remaining repeats in Duke except spawn_d and spawn_r
|
2022-10-30 16:51:27 +01:00 |
|
Christoph Oelckers
|
8a8ef22e53
|
- mostly '>' comparisons with scale values.
|
2022-10-30 16:51:22 +01:00 |
|
Christoph Oelckers
|
a11a366697
|
- some automatic replacements.
|
2022-10-30 16:51:21 +01:00 |
|
Christoph Oelckers
|
71d61b26df
|
- 34 more uses of SetScale.
|
2022-10-30 16:51:19 +01:00 |
|
Christoph Oelckers
|
e60fafec52
|
- got rid of most REPEAT_SCALE factors.
|
2022-10-30 16:51:19 +01:00 |
|
Christoph Oelckers
|
e6a97157d7
|
- several manual replacements with SetScale.
|
2022-10-30 16:51:18 +01:00 |
|
Christoph Oelckers
|
d8fac32459
|
- more simple SetScale replacements.
|
2022-10-30 16:51:17 +01:00 |
|
Christoph Oelckers
|
86d6ba43d4
|
- more automatic SetScale replacement, plus all of SetScale(0.5, 0.5);
|
2022-10-30 16:51:17 +01:00 |
|
Christoph Oelckers
|
c7c3b2a20c
|
- added a SetScale method to spritetype and used it for all places setting x/yrepeat to 0.
|
2022-10-30 16:51:17 +01:00 |
|
Christoph Oelckers
|
a4dd5bb4ce
|
- rewrote the model storage code.
Using proper C++ containers now.
|
2022-10-27 16:55:54 +02:00 |
|
Mitchell Richters
|
8bc34f3dac
|
- Handle all remaining VecToAngle() calls.
|
2022-10-27 16:55:53 +02:00 |
|
Mitchell Richters
|
9b98388215
|
- VecToAngle() with XY() inside to .Angle() replacements.
|
2022-10-27 16:55:53 +02:00 |
|
Mitchell Richters
|
41bbbd9df5
|
- Remove all remaining uses of fixedhoriz::asbuild() .
|
2022-10-25 07:06:55 +02:00 |
|
Christoph Oelckers
|
05117f9f5d
|
- first part of final bsin replacement.
|
2022-10-22 12:09:54 +02:00 |
|
Christoph Oelckers
|
5f44dcc262
|
- refactor animatesprites API
|
2022-10-22 12:09:54 +02:00 |
|
Christoph Oelckers
|
eae2e638aa
|
- floatified all getangle calls.
|
2022-10-22 11:33:16 +02:00 |
|
Christoph Oelckers
|
4dfba60d99
|
- eliminated all ldist calls outside the weapon code.
|
2022-10-21 00:00:08 +02:00 |
|
Christoph Oelckers
|
ada4af8fb7
|
-consolidated sprite rotation formula in 2 inline functions.
|
2022-10-21 00:00:03 +02:00 |
|
Mitchell Richters
|
ea3ca4a4ea
|
- Duke: Tidy up old multiplayer variables to modern standards.
|
2022-10-16 10:59:04 +02:00 |
|
Mitchell Richters
|
45d4d3e41a
|
- Eliminate __interpvalue() and clean up Q16.16 smoothratio values where it made sense to do so.
* Also eliminates a now empty header.
|
2022-10-15 13:32:02 +02:00 |
|
Mitchell Richters
|
f02035b15a
|
- Eliminate __interpvaluef() and clean up Q16.16 smoothratio values where it made sense to do so.
|
2022-10-15 13:32:01 +02:00 |
|
Mitchell Richters
|
2c8cb8f052
|
- Rename DCoreActor method interpolatedvec3() to interpolatedpos() .
|
2022-10-15 13:32:01 +02:00 |
|
Mitchell Richters
|
74167e1a7c
|
- Remove interpolators for TVector and TAngle objects, replacing with single generic version.
|
2022-10-15 13:32:01 +02:00 |
|
Mitchell Richters
|
06e772b44b
|
- Rename interpolatedvalue() in preparation for replacement.
|
2022-10-15 13:32:01 +02:00 |
|
Mitchell Richters
|
8fd6452baf
|
- Rename interpolatedvaluef() in preparation for replacement.
|
2022-10-15 13:32:01 +02:00 |
|
Christoph Oelckers
|
e5219382f2
|
- added some Sector Effector symbolic names.
|
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 |
|
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
|
9621cd08d2
|
- use PlayerIndex plus a bit of cleanup.
|
2022-10-14 23:17:45 +02:00 |
|
Christoph Oelckers
|
0740ccbef1
|
- use PlayerIndex where appropriate.
|
2022-10-14 23:02:11 +02:00 |
|
Mitchell Richters
|
5407de6924
|
- Use MaxSmoothRatio everywhere so refactoring is easier later on.
|
2022-10-14 18:19:03 +02:00 |
|
Christoph Oelckers
|
cceecb4ab6
|
- use ToVector where appropriate
|
2022-10-13 20:41:54 +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
|
d133839e2e
|
- Fix a few uses of interpolatedvalue() with floating point numbers.
|
2022-10-13 00:59:03 +02:00 |
|
Christoph Oelckers
|
d700b11887
|
- getangle in animatesprites
|
2022-10-13 00:59:00 +02:00 |
|
Christoph Oelckers
|
f13d9892dc
|
- trivial wrapper replacements in Duke
|
2022-10-09 08:21:53 +02:00 |
|
Christoph Oelckers
|
b32c4444c4
|
- replaced all add_int_z calls with constants.
|
2022-10-08 19:28:57 +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 |
|
Christoph Oelckers
|
6aaee85875
|
- leftover binangle uses from the coordinate refactoring.
|
2022-10-05 00:36:29 +02:00 |
|
Christoph Oelckers
|
6bdfa09dd1
|
- the remaining angle stuff.
|
2022-10-05 00:36:21 +02:00 |
|
Christoph Oelckers
|
f54e4b8a9a
|
- more int_ang()
|
2022-10-04 23:56:43 +02:00 |
|
Christoph Oelckers
|
33d5b54ce0
|
- use int_ang().
|
2022-10-04 23:56:43 +02:00 |
|
Christoph Oelckers
|
735b9a8fed
|
- renamed ang to __int_angle
|
2022-10-04 23:56:42 +02:00 |
|
Christoph Oelckers
|
022f22cd10
|
-replaced tspritetype::set_int_x/y.
|
2022-10-04 18:44:16 +02:00 |
|
Christoph Oelckers
|
b327f7f03a
|
- some simple replacements.
|
2022-10-04 18:44:15 +02:00 |
|
Christoph Oelckers
|
95bc8a173f
|
- animatesprites clear of player_int_pos.
|
2022-10-04 18:44:15 +02:00 |
|
Christoph Oelckers
|
312ee075d2
|
- use wrapper functions for pos/opos where possible.
|
2022-10-02 20:46:58 +02:00 |
|
Christoph Oelckers
|
591dcc995a
|
- added a float version of gs.playerheight.
|
2022-10-02 20:46:58 +02:00 |
|
Christoph Oelckers
|
1e1188ae73
|
- use gs.playerheight consistently.
There were still several cases using the game specific constants.
|
2022-10-02 20:46:58 +02:00 |
|
Christoph Oelckers
|
564ec9e518
|
- renamed player_struct::opos
|
2022-10-02 20:46:58 +02:00 |
|
Christoph Oelckers
|
5f4c35e9aa
|
- renamed player_struct::pos
|
2022-10-02 20:46:58 +02:00 |
|
Christoph Oelckers
|
8f64518637
|
- Duke: cleanup on z-checks, part 4.
|
2022-10-02 20:46:57 +02:00 |
|
Christoph Oelckers
|
4787bddddd
|
- Duke: replaced most read access to DDukeActor::floorz/ceilingz with a wrapper function.
|
2022-10-02 20:46:56 +02:00 |
|
Christoph Oelckers
|
793e9b7623
|
- renamed DDukeActor::floorz, ceilingz.
|
2022-10-02 20:46:56 +02:00 |
|
Christoph Oelckers
|
6816e32d23
|
- call float 'interpolated' functions for setting tsprite's pos.
|
2022-10-02 20:46:56 +02:00 |
|
Christoph Oelckers
|
5df4caa82f
|
- renamed interpolate functions as preparation for floatifying opos.
|
2022-10-02 20:46:56 +02:00 |
|
Christoph Oelckers
|
c84d75b8bf
|
- use inline access functions to read floorz/ceilingz.
|
2022-08-27 09:58:16 +02:00 |
|
Christoph Oelckers
|
0672572e63
|
- renamed sectortype::floorz and ceilingz as preparation for floatification
|
2022-08-27 09:47:48 +02:00 |
|
Christoph Oelckers
|
4c6976baca
|
- looks I missed one last place...
|
2022-08-26 19:53:10 +02:00 |
|
Christoph Oelckers
|
1231f6025d
|
- handle the last remaining uses of __int_pos that can be done with the function interface.
|
2022-08-26 19:53:10 +02:00 |
|
Christoph Oelckers
|
8ccaa0ab8c
|
- more tsprite position stuff
|
2022-08-26 19:53:10 +02:00 |
|
Christoph Oelckers
|
170387ab26
|
- tspritetype::pos access wrappers, part 1.
|
2022-08-26 19:53:10 +02:00 |
|
Christoph Oelckers
|
dc94dedc6b
|
- renaming spritetype::pos
|
2022-08-26 19:53:10 +02:00 |
|
Christoph Oelckers
|
204d6018f4
|
- Duke: renamed all spr.pos
This was pure search&replace with no other code edits.
|
2022-08-26 19:53:07 +02:00 |
|
Christoph Oelckers
|
4d423004e9
|
- unlimited the displayable sprites.
Now with Polymost gone this can finally be done properly.
|
2022-08-07 10:25:15 +02:00 |
|
Christoph Oelckers
|
c0a40cb7d7
|
- renamed RR's TRIPBOMBSPRITE to POWDERKEG
|
2022-01-27 00:46:46 +01:00 |
|
Christoph Oelckers
|
125c3e8004
|
- flammable flags.
|
2022-01-27 00:41:33 +01:00 |
|
Christoph Oelckers
|
58b718d2a2
|
- turn all special actor type checks in moveflammable into flags.
Also wrap all flag checks in actorflag function
|
2022-01-27 00:34:21 +01:00 |
|
Christoph Oelckers
|
5bc8b1c2d3
|
- Duke: added two more flags to eliminate the references to the crane's tile numbers.
|
2022-01-25 22:26:53 +01:00 |
|
Christoph Oelckers
|
85cce1128a
|
- do proper handling of the 'no shadow' case for Duke's bad guys.
Using a flag like RedNukem instead of hacking dispicnum, which occasionally does reach the renderer and causes problems.
|
2022-01-13 00:42:34 +01:00 |
|
Christoph Oelckers
|
da5a92852f
|
- cleanup of Duke's actor flags.
|
2022-01-11 00:12:32 +01:00 |
|
Christoph Oelckers
|
e892de21ec
|
- preparations for unlimited tsprites.
Right now it is a no-op because Polymost cannot deal with this properly.
|
2022-01-11 00:12:32 +01:00 |
|
Christoph Oelckers
|
7f62df517d
|
- moved all interpolate* methods from spritetypebase to DCoreActor.
The places where it was used on tsprites were redone to use the actor's base coordinate, which at the point of the operation would always be the same.
|
2021-12-30 17:32:31 +01:00 |
|
Christoph Oelckers
|
6c381d4392
|
- removed sector() method from low level sprite type.
|
2021-12-30 16:58:48 +01:00 |
|
Christoph Oelckers
|
5498699faf
|
- use DCoreActor::sector() wherever possible.
|
2021-12-30 16:51:56 +01:00 |
|
Christoph Oelckers
|
af6ca40e3d
|
- use DCoreActor::insector instead of spritetype::insector.
|
2021-12-30 16:24:51 +01:00 |
|
Mitchell Richters
|
3adf81e4f9
|
- Duke: Replace player_struct oposz with opos.Z calls.
|
2021-12-30 09:57:07 +01:00 |
|
Mitchell Richters
|
111aa16e64
|
- Duke: Replace player_struct oposy with opos.Y calls.
|
2021-12-30 09:57:07 +01:00 |
|
Mitchell Richters
|
0e897c29b0
|
- Duke: Replace player_struct oposx with opos.X calls.
|
2021-12-30 09:57:07 +01:00 |
|
Mitchell Richters
|
baf78848eb
|
- Replace spritetypebase z with pos.Z calls and eliminate spritetypebase pos union.
|
2021-12-30 09:57:06 +01:00 |
|
Mitchell Richters
|
cecb8dc48e
|
- Replace spritetypebase y with pos.Y calls.
|
2021-12-30 09:57:05 +01:00 |
|
Mitchell Richters
|
33ca55023f
|
- Replace spritetypebase x with pos.X calls.
|
2021-12-30 09:57:05 +01:00 |
|
Mitchell Richters
|
b2ab64bb62
|
- Capitalise vec3_t z variable.
|
2021-12-30 09:57:03 +01:00 |
|
Mitchell Richters
|
68e2691be7
|
- Capitalise vec3_t y variable.
|
2021-12-30 09:57:03 +01:00 |
|
Mitchell Richters
|
c549cc5276
|
- Capitalise vec3_t x variable.
|
2021-12-30 09:57:02 +01:00 |
|
Christoph Oelckers
|
f216857f55
|
- Getting rid of DDukeActor::s, part 1.
|
2021-12-30 09:57:00 +01:00 |
|
Christoph Oelckers
|
c0ea208ba3
|
- animatesprites_d.cpp and animatesprites_r.cpp.
|
2021-12-30 09:56:57 +01:00 |
|
Christoph Oelckers
|
55cb5aaac6
|
- global search & replace of ->s-> with ->spr.
This is the largest part of uses of DDukeActor's 's' pointer.
|
2021-12-30 09:56:56 +01:00 |
|
Christoph Oelckers
|
8f0f0e8816
|
- manual sprite flag replacements in Duke.
|
2021-12-30 09:56:49 +01:00 |
|
Christoph Oelckers
|
8e0b9f7ce6
|
- some automatic, some manual sprite flag replacements
|
2021-12-30 09:56:49 +01:00 |
|
Christoph Oelckers
|
ace01d02bc
|
- alignment flags and a few leftovers.
|
2021-12-30 09:56:48 +01:00 |
|
Christoph Oelckers
|
c5ae454207
|
- another big batch of automatic replacements.
|
2021-12-30 09:56:48 +01:00 |
|
Christoph Oelckers
|
5b65e214e0
|
- global search & replace of the more frequent sprite flag patterns.
|
2021-12-30 09:56:48 +01:00 |
|
Christoph Oelckers
|
d0a06ae961
|
- deal with most of CSTAT_SECTOR_SKY and CSTAT_SECTOR_SLOPE
|
2021-12-30 09:56:45 +01:00 |
|