Christoph Oelckers
a825dfb8ca
- Duke sound is working again.
2022-12-11 18:41:52 +01:00
Christoph Oelckers
f103e33300
- fixed code up to the point where everything compiles again. Duke sounds are currently non-functional.
...
All Duke script code has been changed to use strings as sound names now, just like GZDoom these will be looked up at compile time.
Original Duke sound indices still exist but are now being managed as resource IDs, not sound engine indices anymore.
2022-12-11 18:41:51 +01:00
Christoph Oelckers
4983f8e671
wipstuff
2022-12-11 18:41:51 +01:00
Mitchell Richters
a5e35637ac
- Duke: Remove 2x player sprite Z setters that shouldn't be necessary.
2022-12-11 18:41:51 +01:00
Mitchell Richters
4848a844af
- Duke: Use getPosWithOffsetZ()
in a few places.
2022-12-11 18:41:51 +01:00
Mitchell Richters
4a6e2683f2
- Duke/RR: Properly fix movement()
so the player's Z always makes it back to floorz.
...
* The `abs(k)` here was really messing it up.
* RR's height of 40 is actually a fix of Duke's 38, which left the player slightly off the ground.
* Duke when returning from crouching, jumping, or otherwise changing the Z always correctly ends up at the floor's Z now.
2022-12-11 18:41:51 +01:00
Christoph Oelckers
1ac4aee0c1
- RR cactus stuff
2022-12-11 18:41:50 +01:00
Christoph Oelckers
c48dfc082f
- scriptified RR's lumber blade.
2022-12-11 18:41:50 +01:00
Christoph Oelckers
7188956702
- minor cleanup.
2022-12-11 18:41:50 +01:00
Christoph Oelckers
76fabcd1c7
- chickenplant scriptified.
2022-12-11 18:41:50 +01:00
Mitchell Richters
39d1a758ed
- Remove DCoreActor::ZeroVelocityXY()
.
2022-12-11 18:41:44 +01:00
Mitchell Richters
4de1b8ad86
- Create DCoreActor::getRenderPos()
and use within Duke.
2022-12-11 18:41:44 +01:00
Mitchell Richters
d1c5f9516f
- Duke: Remove player_struct::posoldAdd()
and player_struct::posoldGet()
.
2022-12-11 18:41:44 +01:00
Mitchell Richters
f10f1b9154
- Duke: Remove player_struct::posoldZset()
and player_struct::posoldZget()
.
2022-12-11 18:41:44 +01:00
Mitchell Richters
66a08a26e8
- Duke: Remove player_struct::posoldX()
, player_struct::posoldY()
, and player_struct::posoldXY()
.
2022-12-11 18:41:44 +01:00
Mitchell Richters
4551274e7d
- Duke: Remove player_struct::posSet()
.
2022-12-11 18:41:44 +01:00
Mitchell Richters
a1e68f88a5
- Duke: Remove player_struct::posAdd()
.
2022-12-11 18:41:44 +01:00
Mitchell Richters
27be72c7ec
- Duke: Remove player_struct::posGet()
.
2022-12-11 18:41:43 +01:00
Mitchell Richters
b42672dcf9
- Duke: Remove player_struct::posZget()
.
2022-12-11 18:41:43 +01:00
Mitchell Richters
bd8a6dd956
- Duke: Remove player_struct::posZadd()
.
2022-12-11 18:41:43 +01:00
Mitchell Richters
78b04649f1
- Duke: Remove player_struct::posZset()
.
2022-12-11 18:41:43 +01:00
Mitchell Richters
92dd6c9795
- Duke: Remove player_struct::posXY()
.
2022-12-11 18:41:43 +01:00
Mitchell Richters
6f102e1171
- Duke: Remove player_struct::posX()
and player_struct::posY()
.
2022-12-11 18:41:43 +01:00
Mitchell Richters
b1bd59db41
- Duke: Clean up all player position calls referencing gs.playerheight
that don't need it when using the sprite height.
2022-12-11 18:41:42 +01:00
Mitchell Richters
29f2212d8f
- Duke: Remove player_struct::backupz()
in lieu of actor variant.
2022-12-11 18:41:42 +01:00
Mitchell Richters
a8c923f05c
- Duke: Remove player_struct::backupxy()
in lieu of actor variant.
2022-12-11 18:41:42 +01:00
Mitchell Richters
6eeedbd38a
- Duke: Move player_struct::restorexyz()
to DCoreActor::restorepos()
.
2022-12-11 18:41:42 +01:00
Mitchell Richters
a78d976352
- Duke: Remove player_struct::backupxyz()
in lieu of actor variant.
2022-12-11 18:41:42 +01:00
Mitchell Richters
4e4e457cfe
- Duke: Fix doanimations()
following position change to sprite.
2022-12-11 18:41:42 +01:00
Mitchell Richters
6d1370dcab
- Duke: Fix a few more sector effector after position change to sprite.
2022-12-11 18:41:42 +01:00
Mitchell Richters
4a9775fde7
- Duke: Fix SE17 elevators after change to player position internals.
2022-12-11 18:41:41 +01:00
Christoph Oelckers
bfa7fddcea
- always set the sound listener position to something valid.
...
Otherwise OpenAL throws lots of warning messages.
2022-12-11 18:41:41 +01:00
Mitchell Richters
dd5834444e
- Duke: Swap out the internals of the player's pos methods and get the game going again.
2022-12-11 18:41:41 +01:00
Mitchell Richters
202137ed69
- Duke: Fix interpolation issues with player's XY coordinates while drawing using the sprite.
2022-12-11 18:41:41 +01:00
Mitchell Richters
9972c65842
- Duke: Back up all sprites as soon as possible.
...
* The player's input is processed before the sprites were backed up, causing interpolation issues with the player's Z.
2022-12-11 18:41:41 +01:00
Mitchell Richters
abd6275f17
- Add new double DCoreActor::viewzoffset
set in spawning code during level loads.
...
* Interpolated backup copy isn't needed for Duke, but will be for SW.
2022-12-11 18:41:41 +01:00
Mitchell Richters
b0c95f69c5
- Duke: Wrap calls that get player_struct::PlayerOldPosition
.
2022-12-11 18:41:41 +01:00
Mitchell Richters
1962d85f99
- Duke: Wrap calls that subtract from player_struct::PlayerOldPosition
.
2022-12-11 18:41:40 +01:00
Mitchell Richters
fffc1915a9
- Duke: Wrap calls that add to player_struct::PlayerOldPosition
.
2022-12-11 18:41:40 +01:00
Mitchell Richters
e4dd69f5b0
- Duke: Wrap calls that get player_struct::PlayerOldPosition.Z
.
2022-12-11 18:41:40 +01:00
Mitchell Richters
830480b8b9
- Duke: Wrap calls that set player_struct::PlayerOldPosition.Z
.
2022-12-11 18:41:40 +01:00
Mitchell Richters
4027f7256d
- Duke: Wrap calls to player_struct::PlayerOldPosition.Y
.
2022-12-11 18:41:40 +01:00
Mitchell Richters
823c5a7a47
- Duke: Wrap calls to player_struct::PlayerOldPosition.X
.
2022-12-11 18:41:40 +01:00
Mitchell Richters
fa16d5d344
- Duke: Wrap calls to player_struct::PlayerOldPosition.XY()
.
2022-12-11 18:41:40 +01:00
Mitchell Richters
a3b1ab10fe
- Duke: Wrap calls that get player_struct::PlayerNowPosition
.
2022-12-11 18:41:39 +01:00
Mitchell Richters
e9dcffc5ec
- Duke: Route all clipmove()
/pushmove()
calls through a new interface that accepts a separated Z coordinate.
2022-12-11 18:41:39 +01:00
Mitchell Richters
a6a4cefa6c
- Duke: Wrap calls that add to player_struct::PlayerNowPosition
.
...
* The only adds were from DVector2 objects.
2022-12-11 18:41:39 +01:00
Mitchell Richters
58381c6eca
- Duke: Wrap calls that set player_struct::PlayerNowPosition
.
2022-12-11 18:41:39 +01:00
Mitchell Richters
25e6c4ecf8
- Duke: Wrap calls that get player_struct::PlayerNowPosition.Z
.
2022-12-11 18:41:39 +01:00
Mitchell Richters
adc78c81c6
- Duke: Wrap calls that subtract from player_struct::PlayerNowPosition.Z
.
2022-12-11 18:41:39 +01:00
Mitchell Richters
44166ae9e6
- Duke: Wrap calls that add to player_struct::PlayerNowPosition.Z
.
2022-12-11 18:41:39 +01:00
Mitchell Richters
93189037c3
- Duke: Wrap calls that set player_struct::PlayerNowPosition.Z
.
2022-12-11 18:41:38 +01:00
Mitchell Richters
008c05710b
- Duke: Wrap calls to player_struct::PlayerNowPosition.Y
.
2022-12-11 18:41:38 +01:00
Mitchell Richters
3a07c05af7
- Duke: Wrap calls to player_struct::PlayerNowPosition.X
.
2022-12-11 18:41:38 +01:00
Mitchell Richters
5d3878eb55
- Duke: Wrap calls to player_struct::PlayerNowPosition.XY()
.
2022-12-11 18:41:38 +01:00
Mitchell Richters
4b7d2fcfcc
- Duke: Rename player's opos to something identifiable.
2022-12-11 18:41:38 +01:00
Mitchell Richters
4aa63b5446
- Duke: Rename player's pos to something identifiable.
2022-12-11 18:41:38 +01:00
Mitchell Richters
64e53ffc7e
Revert "- Duke: Invert the horizon offset in displayweapon_d()
as it makes more sense."
...
This reverts commit 2d2f628b95
.
This made sense for things such as cracking knuckles on idle as if you're looking up, the Y should drop down, however the setup of other areas such as `animateknee()` depend on the pitch being inverted like this.
2022-12-11 20:01:41 +11:00
Christoph Oelckers
7d82ae28f4
- Duke/RR: fixed: animates array must be cleared on map change.
...
There was also some undefined behavior when an entry was deleted, this seems to originate from the original code.
2022-12-10 10:20:01 +01:00
Christoph Oelckers
1061e3e2ca
- backend update from GZDoom.
2022-12-04 16:51:44 +01:00
Christoph Oelckers
4666c4a4b5
- RR: initialize the bowling lane displays after loading a savegame.
2022-12-02 15:45:19 +01:00
Christoph Oelckers
a0c7be9138
- try to address some occasional crash with chickens on the bowling lane.
...
Since this frequently swaps out some actors, it may be advisable to delay destruction by one frame to avoid actor chain consistency issues by writing into the just destroyed object.
2022-12-02 12:46:11 +01:00
Mitchell Richters
a580e9d884
- Duke: Increase the precision of the angle in handle_se00()
.
2022-12-01 08:56:12 +01:00
Christoph Oelckers
f30abffa82
- uncommented line in savegame code that was disabled for testing and missed afterward.
2022-12-01 08:48:28 +01:00
Mitchell Richters
2d2f628b95
- Duke: Invert the horizon offset in displayweapon_d()
as it makes more sense.
2022-11-30 10:03:58 +01:00
Mitchell Richters
a5e6e80c24
- Duke: Fix RPG from excess recoiling.
2022-11-30 10:03:58 +01:00
Mitchell Richters
3233a25e3a
- Duke: Move WW2GI pistol aplWeapon*() calls to the stored ones.
2022-11-30 10:03:58 +01:00
Mitchell Richters
73705801e4
- Duke: Move 3x WW2GI aplWeaponTotalTime() calls to the stored one.
2022-11-30 10:03:57 +01:00
Mitchell Richters
7a3e4de913
- Duke: Move WW2GI handbomb aplWeapon*() calls to the stored ones.
2022-11-30 10:03:57 +01:00
Mitchell Richters
c48e95a710
- Duke: Store some repeated aplWeapon*() calls.
2022-11-30 10:03:57 +01:00
Mitchell Richters
59bafd6a37
- Duke: Clean up the addition/subtractions to the offsets vector in displayweapon_d()
.
2022-11-30 10:03:57 +01:00
Mitchell Richters
33af8130b1
- Duke: General tidy-up of displayweapon_d()
.
2022-11-30 10:03:57 +01:00
Mitchell Richters
4298f5011f
- Duke: Clean up interface to animateknee()
.
2022-11-30 10:03:57 +01:00
Mitchell Richters
436ed0288b
- Duke: Clean up interface to animateaccess()
.
2022-11-30 10:03:56 +01:00
Mitchell Richters
21df86d570
- Duke: Clean up interface to animatetip()
.
2022-11-30 10:03:56 +01:00
Mitchell Richters
92a063b078
- Duke: Clean up interface to animateknuckles()
.
2022-11-30 10:03:56 +01:00
Mitchell Richters
715ed3f279
- Duke: Clean up interface to animatefist()
.
2022-11-30 10:03:56 +01:00
Mitchell Richters
81c3afcda0
- Duke: Move displayflamethrower()
lambda to new weapon offsets.
2022-11-30 10:03:56 +01:00
Mitchell Richters
14ecd639dc
- Duke: Move displayshrinker()
lambda to new weapon offsets.
2022-11-30 10:03:56 +01:00
Mitchell Richters
ec3ccc18a5
- Duke: Move displaygrower_ww()
lambda to new weapon offsets.
2022-11-30 10:03:56 +01:00
Mitchell Richters
68291bb595
- Duke: Move displayshrinker_ww()
lambda to new weapon offsets.
2022-11-30 10:03:55 +01:00
Mitchell Richters
4d3f5fe3a0
- Duke: Move displayfreezer()
lambda to new weapon offsets.
2022-11-30 10:03:55 +01:00
Mitchell Richters
99d7b763e4
- Duke: Move displaydevastator()
lambda to new weapon offsets.
2022-11-30 10:03:55 +01:00
Mitchell Richters
6f6b52ee5d
- Duke: Move displaydevastator_ww()
lambda to new weapon offsets.
2022-11-30 10:03:55 +01:00
Mitchell Richters
624e28bf55
- Duke: Move displayhandremote()
lambda to new weapon offsets.
2022-11-30 10:03:54 +01:00
Mitchell Richters
c126619d6d
- Duke: Move displayhandbomb()
lambda to new weapon offsets.
2022-11-30 10:03:54 +01:00
Mitchell Richters
e33ce4b7ac
- Duke: Move displaychaingun()
lambda to new weapon offsets.
2022-11-30 10:03:54 +01:00
Mitchell Richters
c7274ff5fb
- Duke: Move displaychaingun_ww()
lambda to new weapon offsets.
2022-11-30 10:03:54 +01:00
Mitchell Richters
35a26a1cb5
- Duke: Move displayshotgun()
lambda to new weapon offsets.
2022-11-30 10:03:54 +01:00
Mitchell Richters
2c770706b8
- Duke: Move displayshotgun_ww()
lambda to new weapon offsets.
2022-11-30 10:03:53 +01:00
Mitchell Richters
5935f860e4
- Duke: Bring displayrpg()
lambda inline with standard look offsets since we're using widescreen assets now.
2022-11-30 10:03:53 +01:00
Mitchell Richters
7b3f8b0caf
- Duke: Move displayrpg()
lambda to new weapon offsets.
2022-11-30 10:03:53 +01:00
Mitchell Richters
71f5b7d9df
- Duke: Move displaytripbomb()
lambda to new weapon offsets.
2022-11-30 10:03:53 +01:00
Mitchell Richters
bd6e1d4f89
- Duke: Move displayknee()
lambda to new weapon offsets.
2022-11-30 10:03:53 +01:00
Mitchell Richters
a6cfdea480
- Improved weapon drawing, based on the new crosshair drawing offset code, starting with Duke's pistol.
2022-11-30 10:03:52 +01:00
Mitchell Richters
ef52694365
- Improved crosshair drawing that factor's in look_ang better I've had stashed away for a little bit.
2022-11-30 10:03:52 +01:00
Christoph Oelckers
1d39e1edc1
- fixed bouncing of freezer's projectile.
2022-11-30 09:57:27 +01:00
Mitchell Richters
098542de69
- Duke: Call movetransports()
before processing any player movement.
...
* This simply works much better. In addition to being able to revert commits like `- Duke: Maintain x/y/z velocity when falling through a portal, such as E1L1's air duct.`, transitioning from above water to underwater and vice-versa is interpolated, smooth and seamless, something that I was unable to hack in without this change.
2022-11-30 09:53:51 +01:00
Mitchell Richters
641b22addf
Revert "- Duke: Maintain x/y/z velocity when falling through a portal, such as E1L1's air duct."
...
This reverts commit 1cb57a813948a494197e7df67dd6f58ae987b7db.
2022-11-30 09:53:51 +01:00
Mitchell Richters
ec16fd9310
- Duke: Soften the blood splats in Duke when the timer is at the end.
2022-11-29 21:08:49 +11:00
Mitchell Richters
537e9df6ec
- Duke: Repair Z height when dead.
2022-11-29 20:59:35 +11:00
Christoph Oelckers
c9a94a4899
- fixed bad angle use in move_d.
2022-11-27 11:56:27 +01:00
Christoph Oelckers
dc60c643c9
- Duke: added an ammo check to the chaingun firing loop
...
With weapon switching disabled it would not stop firing.
2022-11-26 17:59:22 +01:00
Christoph Oelckers
0e1121ed51
- reinstated original distance math for SE20.
...
This one's a catastrophic combination of a bad algorithm depending on equally bad math to calculate distance.
It simply does not do what one would expect - it should have calculated the distance to a wall's center to be robust.
2022-11-26 15:58:55 +01:00
Christoph Oelckers
d43ebd22ae
- fixed merge errors from backend update.
2022-11-24 18:05:47 +01:00
Christoph Oelckers
ed4f49ac86
- fixed sound code for backend update.
2022-11-24 17:46:39 +01:00
Mitchell Richters
f1bfaac301
- Duke: Minor fixes to some angle checks.
2022-11-24 23:08:28 +11:00
Mitchell Richters
4f59e8a3d1
- Duke: Fix delta angle setup in alterang()
.
2022-11-24 22:03:47 +11:00
Mitchell Richters
fb74ece44b
- Duke/RR: Fix up 2x missed Z changes.
2022-11-24 19:41:58 +11:00
Christoph Oelckers
4d6920e80b
- fixed failiure to initialize the ambient tags array.
...
Also adding range checks to all places where it gets used. This is from CON code so proper values are never guaranteed.
2022-11-24 09:01:44 +01:00
Christoph Oelckers
13e19bad36
- fixed handling of bad class assignment to map picnums.
2022-11-24 08:12:18 +01:00
Christoph Oelckers
6cb3e2f457
- Duke: fixed operator precedence in scrap spawning code.
2022-11-21 10:48:47 +01:00
Christoph Oelckers
ae37461feb
- one more stat constant.
2022-11-21 10:24:42 +01:00
Christoph Oelckers
29c4c77e55
- fixed bad StopSound implementation.
2022-11-21 09:25:46 +01:00
Mitchell Richters
fd8ac602f0
- Duke: Fix a few missed names from the last commit.
2022-11-21 13:22:25 +11:00
Christoph Oelckers
49055f1bfd
- named a few more of RR's items.
2022-11-20 21:39:56 +01:00
Christoph Oelckers
1e421af8bc
- renamed one more sprite.
...
Unused, non-functional, but it got some text on the actual sprite, which was used for naming it.
2022-11-20 21:29:39 +01:00
Christoph Oelckers
476dd138c9
- renamed several of RR's sprites, mostly related to the chicken processing plant.
2022-11-20 21:22:04 +01:00
Christoph Oelckers
a76d166966
- scriptified tongue actor.
...
This seems to be develpment garbage. No proper sprites exist for this.
2022-11-20 20:40:46 +01:00
Christoph Oelckers
5528725985
- got rid of deletesprite, plus one new flag.
2022-11-20 19:25:23 +01:00
Christoph Oelckers
65a5e5e29a
- unlimized two map resources - cyclers and ambient tags.
2022-11-20 14:13:11 +01:00
Christoph Oelckers
b069904be1
- scriptified the remaining controller sprites.
2022-11-20 13:57:51 +01:00
Christoph Oelckers
cb005062cd
- scriptified activators and locators.
2022-11-20 12:43:24 +01:00
Christoph Oelckers
9fa2fb75cf
- scriptified the respawn controller.
...
This also handles one special RRRA controller which was just easier to scriptify right away than temporarily work around it.
2022-11-20 11:58:19 +01:00
Christoph Oelckers
31b1898c30
- deleted movecanwithsomething native function.
...
This was already scriptified.
2022-11-20 08:52:58 +01:00
Christoph Oelckers
d44b637f1b
- fixed touchplate initialization
...
This was still using older code - the current native version was also not removed from the spawn function.
2022-11-20 08:51:09 +01:00
Christoph Oelckers
f515939fde
- scriptified the sound controller.
2022-11-20 08:46:49 +01:00
Christoph Oelckers
714a2ef70e
- scriptified canwithsomething, the last internal STAT_STANDABLE item.
2022-11-19 19:01:17 +01:00
Christoph Oelckers
c6b3cf3e0a
- Duke: fixed long standing problem that pressing Escape or walking backwards does not switch off the camera view.
2022-11-19 18:26:17 +01:00
Christoph Oelckers
dee33ba4dd
- scriptified viewscreen and camera.
2022-11-19 17:35:04 +01:00
Christoph Oelckers
046ba1ae0c
- scriptified touchplate
2022-11-19 15:40:35 +01:00
Christoph Oelckers
63a8c3148c
- scriptified doorshock
2022-11-19 15:40:21 +01:00
Christoph Oelckers
15cd80cad3
- scriptified the waterdrip
2022-11-19 15:40:09 +01:00
Christoph Oelckers
11acb92553
- scriptified the bolts.
2022-11-19 12:54:50 +01:00
Christoph Oelckers
676ca73983
- scriptified the trash actor.
2022-11-19 12:54:15 +01:00
Christoph Oelckers
9cf6f5dabc
- fixed handling of actor defaults.
...
Order of application with map sprites was not correct.
This also simplifies how the defaults are stored - the separate data is gone, they now use the regular defaults.
2022-11-19 11:24:47 +01:00
Christoph Oelckers
5ae7011e41
- converted the masterswitch.
2022-11-19 11:24:39 +01:00
Christoph Oelckers
b106fb693a
- scriptified OozFilter + Seenine
...
Also fixing the default handling for onHit.
2022-11-17 21:46:24 +01:00
Christoph Oelckers
26ba1f601e
- scriptified the fire extinguisher.
2022-11-17 20:19:22 +01:00
Christoph Oelckers
f9826241ef
- scriptied the cracks.
2022-11-17 20:18:46 +01:00
Christoph Oelckers
8ce358fc24
- scriptified the trip bombs.
2022-11-17 18:38:25 +01:00
Christoph Oelckers
42e02d2956
- eliminated firstWall as well.
2022-11-15 15:44:33 +01:00
Christoph Oelckers
5798fa067f
- cleaned up all -> accesses through firstWall().
2022-11-15 15:33:35 +01:00
Christoph Oelckers
af60408e63
- sector wall access cleanup.
...
lastWall was only used twice and firstWall() + index can be done better now.
2022-11-15 15:31:52 +01:00
Christoph Oelckers
7d9a4ea70d
- eliminated wallsofsector.
2022-11-15 15:24:17 +01:00
Christoph Oelckers
84b17a8a53
- eliminate wall_count.
2022-11-15 14:59:28 +01:00
Christoph Oelckers
bfae5ce1bc
- use a TArrayView to store the wall references in a sector.
...
This is a lot more scripting friendly than hacking around the indices.
2022-11-15 14:53:39 +01:00
Christoph Oelckers
34333302f9
- wrapped all reading wallptr references.
2022-11-15 12:37:14 +01:00
Christoph Oelckers
c23db8ea35
- wrapped all reads of sectortype::wallnum and renamed all other wallnum variables.
2022-11-15 12:21:21 +01:00
Christoph Oelckers
b7a7584059
- renamed wallnum and sectnum functions.
...
These were creating a lot of search noise because local variables had the same name.
2022-11-15 12:03:44 +01:00
Christoph Oelckers
a2683559ce
- refactored Duke's cactus.
2022-11-15 10:44:06 +01:00
Christoph Oelckers
ad7cf290d2
- restricted use of gs.firstdebris to the only place where it is really needed.
...
Also no script export for this, it is only needed for converting CON parameters to propr indices.
2022-11-15 08:28:05 +01:00
Christoph Oelckers
d253468b22
- scriptified the scraps.
...
A Duke-ish mess of epic proportions.
2022-11-15 00:06:21 +01:00
Christoph Oelckers
94a13118b3
- handle nofloorpal for CallAnimate overrides.
2022-11-15 00:06:21 +01:00
Christoph Oelckers
c94d2fb3d0
- made DDukeActor::movflag unsigned.
...
Due to the values it holds it cannot be a signed short as this would wrap around to something negative.
2022-11-14 19:25:28 +01:00
Christoph Oelckers
e867c4603f
- Duke: fixed issues with CON-based movement.
...
Bad integer divisions and one incorrect check for X instead of Z.
2022-11-14 18:48:31 +01:00
Christoph Oelckers
5fea500f92
- flammable actors scriptified.
2022-11-14 16:31:45 +01:00
Christoph Oelckers
190fd1827e
- scriptified Dukes water fountain.
...
That's this thingy in the first corridor of E2L1.
2022-11-14 12:10:13 +01:00
Christoph Oelckers
306db376d9
- added script exports for 'spawn' and 'lotsofglass' and made the spawn variant using class names operational.
2022-11-14 10:30:59 +01:00
Christoph Oelckers
317968c45a
- exported DukeGameInfo.
...
Only the parts that can be considered stable.
2022-11-14 10:25:17 +01:00
Christoph Oelckers
ced22bb0a8
- added onUse virtual to DukeActor.
2022-11-14 10:22:22 +01:00
Christoph Oelckers
36f753df8f
- RR: fixed weapon switching code.
2022-11-13 19:47:10 +01:00
Christoph Oelckers
f23ddc28f0
- Duke: scriptified the crane
2022-11-13 18:55:32 +01:00
Christoph Oelckers
660c546266
- actor interface fixes.
2022-11-13 18:51:23 +01:00
Christoph Oelckers
9bf3642cb8
- named the scrap sprites.
2022-11-13 11:51:44 +01:00
Christoph Oelckers
e3aa1da175
- CallOnanimate
2022-11-13 11:50:28 +01:00
Christoph Oelckers
ba016c7c3a
- added CallOnHit and named spawn.
2022-11-13 10:30:52 +01:00
Christoph Oelckers
bab750c156
- MAXCRANES is obsolete
2022-11-13 10:21:09 +01:00
Christoph Oelckers
9d1ddb72d4
- added some texture names.
2022-11-13 10:13:49 +01:00
Christoph Oelckers
48d1367a7e
- added some VM exports for DukePlayer
2022-11-13 08:59:08 +01:00
Christoph Oelckers
de51b65ead
- reimplemented Duke's scripted actor iterators in a more lightweight fashion.
...
This now works without allocating garbage collected objects.
2022-11-13 08:59:07 +01:00
Christoph Oelckers
c32a695384
- DukeActor scriptification framework.
2022-11-13 08:55:20 +01:00
Christoph Oelckers
ac4be79e96
- implemented cl_weaponswitch for Duke.
2022-11-12 09:34:08 +01:00
Mitchell Richters
bd5d96df10
- Duke: Fix chaingunner spit velocity that was still in fixed point.
...
* Fixes #742 .
2022-11-11 21:34:23 +11:00
Mitchell Richters
60366d298e
- Duke: Use player's pitch sine rather than tangent when throwing a pipebomb while crouched.
...
* Maintains the feel of the weapon by having the pipebomb roll along the ground.
* Sign of sine is correct and allows for an expected throw behavior when looking up/down unlike original code.
* Prevents an infinite tangent value from messing things up.
2022-11-11 21:10:41 +11:00
Christoph Oelckers
53341ee525
- Duke: lower conveyor player carry speed.
...
Still no match to the animation, but these games seemingly never cared.
2022-11-10 08:40:14 +01:00
Christoph Oelckers
a8585d72c7
- fixed velocity for Duke's pipe bomb and RR's dynamite when crouching.
...
These cases may not use the generic free aim adjustment.
2022-11-09 22:50:13 +01:00
Christoph Oelckers
32a447ea54
- RR: fixed velocity of dynamite projectile.
2022-11-09 15:39:16 +01:00
Christoph Oelckers
3c7810a229
- RR: fixed movement direction when throwing a bowling ball.
2022-11-09 15:21:08 +01:00
Christoph Oelckers
5ebf2fef89
- fixed handle_st18's ceiling movement.
2022-11-07 18:16:41 +01:00
Mitchell Richters
88e92a15a6
- Clean up some interpolatedvalue()
calls.
2022-11-07 17:52:53 +11:00
Mitchell Richters
274899c9db
- Get rid of useless lerp()
function I added last night for lack of C++20.
...
* We already have a generic linear interpolator that _I_ added, so let's use it.
2022-11-07 17:31:17 +11:00
Mitchell Richters
043ebadbee
- Remove 2x Normalized180()
method calls on pitch where it's not needed.
...
* Pitch should always be +/- 90 degrees and never need normalization. If it's not, then this shouldn't mask an error caused elsewhere.
2022-11-07 16:53:55 +11:00
Mitchell Richters
c8114e7ed0
- Revert change to TAngle<T>
's /
operator that snuck in.
2022-11-07 15:43:00 +11:00
Mitchell Richters
0c4ad84c2e
- RR: Pitch-adjusted velocity for operateweapon()
when free-aiming.
2022-11-06 21:59:06 +11:00
Mitchell Richters
9a25b1d3f5
- RR: Pitch-adjusted velocity for shootweapon()
when free-aiming.
2022-11-06 21:59:06 +11:00
Mitchell Richters
b14525b47b
- RR: Pitch-adjusted velocity for shootmelee()
when free-aiming.
2022-11-06 21:59:06 +11:00
Mitchell Richters
24dcd26e64
- RR: Pitch-adjusted velocity for shootwhip()
when free-aiming.
2022-11-06 21:59:06 +11:00
Mitchell Richters
211b2cc349
- RR: Pitch-adjusted velocity for shootrpg()
when free-aiming.
2022-11-06 21:59:06 +11:00
Mitchell Richters
b9bd02299a
- RR: Pitch-adjusted velocity for shootstuff()
when free-aiming.
2022-11-06 21:59:06 +11:00
Mitchell Richters
7941f3cde3
- Duke: Pitch-adjusted velocity for aim()
.
2022-11-06 21:59:06 +11:00
Mitchell Richters
f2674e95d3
- Duke: Pitch-adjusted velocity for operateweapon_ww()
when free-aiming.
2022-11-06 21:59:06 +11:00
Mitchell Richters
3a1f1c7580
- Duke: Pitch-adjusted velocity for operateTripbomb()
when free-aiming.
2022-11-06 21:59:05 +11:00
Mitchell Richters
3908ec0c42
- Duke: Pitch-adjusted velocity for operateweapon()
when free-aiming.
2022-11-06 21:59:05 +11:00
Mitchell Richters
fe7c49fcac
- Duke: Pitch-adjusted velocity for shootlaser()
when free-aiming.
2022-11-06 21:59:05 +11:00
Mitchell Richters
9e60284ff6
- Duke: Pitch-adjusted velocity for shootlaser()
when free-aiming.
2022-11-06 21:59:05 +11:00
Mitchell Richters
1b499520a5
- Duke: Pitch-adjusted velocity for shootweapon()
when free-aiming.
2022-11-06 21:59:05 +11:00
Mitchell Richters
63917fd158
- Duke: Pitch-adjusted velocity for shootknee()
when free-aiming.
2022-11-06 21:59:05 +11:00
Mitchell Richters
a200db6f3a
- Duke: Pitch-adjusted velocity for shootstuff()
when free-aiming.
2022-11-06 21:59:05 +11:00
Mitchell Richters
73477a722c
- Duke: Pitch-adjusted velocity for shootshrinker()
when free-aiming.
2022-11-06 21:59:04 +11:00
Mitchell Richters
9f32eae1a7
- Duke: Pitch-adjusted velocity for shootflamethrowerflame()
when free-aiming.
2022-11-06 21:59:04 +11:00
Mitchell Richters
64f55726c9
- Duke: Pitch-adjusted velocity for shootfireball()
when free-aiming.
2022-11-06 21:59:04 +11:00
Mitchell Richters
33e2de70a2
- Duke: Pitch-adjusted velocity for shootrpg()
when free-aiming.
2022-11-06 21:59:04 +11:00
Mitchell Richters
8ec475aec8
- Replace clamped off tangent values with a linear interpolation of the player's pitch.
...
* Gives a tangent-like ramping where it's noticeable without having to use the tangent at all.
* Had to do homegrown lerper since we're not C++20 yet.
2022-11-06 21:59:04 +11:00
Christoph Oelckers
b4a49ea228
- fixed movement speed for SE25 (Piston)
2022-11-05 16:00:39 +01:00
Christoph Oelckers
77ae3b3b71
- RR: fixed bad angle math in shootmortar
2022-11-03 11:08:40 +01:00
Christoph Oelckers
f5ce60fa6e
- fixed issues with negative values being passed to sqrt für calculating RRRA's motorcyle and boat.
2022-11-02 13:32:07 +01:00
Christoph Oelckers
0e113dab79
- added true level compatibility map processing and deleted all related map hack code.
2022-10-31 10:45:47 +01:00
Christoph Oelckers
06c9296932
- added a quick hack to move a misplaced vertex in RR E1L1's barn.
2022-10-30 16:51:41 +01:00
Christoph Oelckers
0f57685f48
- updatesector interface cleanup.
2022-10-30 16:51:41 +01:00
Christoph Oelckers
c5523a99ee
- fixed issues with Duke's poolballs.
2022-10-30 16:51:41 +01:00
Christoph Oelckers
09df4da241
- fixed scaling issue with Duke's green slimer.
2022-10-30 16:51:40 +01:00
Christoph Oelckers
0c87bcb91b
- renamed getzsofslopeptr to calcSlope and removed one redundant inline.
2022-10-30 16:51:40 +01:00
Christoph Oelckers
32b2e84fdc
- added episode and total episode time display to alt HUD
2022-10-30 16:51:40 +01:00
Christoph Oelckers
ffd284d233
- Duke: use player palette only on the foot weapon.
...
This is the only one showing Duke's clothes - the translation may cause discoloration on the others.
2022-10-30 16:51:39 +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
Mitchell Richters
65acafc2bd
- Duke: Move new blood spat code into function for use in RR code as well.
2022-10-30 16:51:39 +01:00
Mitchell Richters
f149410750
- Duke: New setup for blood splatters against walls, taking full account of the float precision.
2022-10-30 16:51:38 +01:00
Christoph Oelckers
35f6ece473
- renamed RR’s weapon sprites to match their weapons
2022-10-30 16:51:38 +01:00
Christoph Oelckers
88d421300a
- made DukeActor::timetosleep unsigned.
...
Although mostly theoretical it is possible for this to overflow and render the actor non-functional.
If the value is unsigned the overflow will wrap around to 0 which is not critical.
2022-10-30 16:51:37 +01:00
Christoph Oelckers
15fc9e47fd
- use symbolic STAT_ constants in spawninit where available.
2022-10-30 16:51:37 +01:00
Christoph Oelckers
98e2fecd37
- another bunch of type conversion warnings fixed.
...
the ones in the findplayer functions are not critical in singleplayer.
2022-10-30 16:51:35 +01:00
Christoph Oelckers
902f8c9706
- silenced lots of warnings for deliberate type conversions.
...
The ones in d_net.cpp are not in active code.
2022-10-30 16:51:35 +01:00
Christoph Oelckers
5a045a6232
- deleted deprecated zrand variant
2022-10-30 16:51:35 +01:00
Mitchell Richters
2fc115a23d
- Duke: Remove only place rotatepoint()
is called where no pivot is used.
2022-10-30 16:51:34 +01:00
Christoph Oelckers
4df875e860
- use setfloorz/setceilingz in a few places where it wasn't done.
...
This isn't critical in any way so no need to merge, but let's be consistent, in case future changes rely on it.
2022-10-30 16:51:34 +01:00
Mitchell Richters
e07785e85b
- Duke: Use pitch difference between player and shrunken actor to adjust horizon.
...
* Works a lot better, and is uncapped pitch compatible unlike the old setup.
2022-10-30 16:51:34 +01:00
Mitchell Richters
e099a19f03
- Duke: Fix bad x/yrepeat scaling.
...
* Merge with or above `- use Scale wrappers in global code and parts of Duke.`.
2022-10-30 16:51:33 +01:00
Christoph Oelckers
3c6b64d621
- renamed everything back
2022-10-30 16:51:33 +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
8265239d2d
- removed AddScale wrappers.
2022-10-30 16:51:32 +01:00
Christoph Oelckers
85b52b1c77
- removed Scale(), CopyScale() and MultScale wrappers.
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
558eaf38e1
- the last repeats in Duke
...
Mostly constants in the spawn code
2022-10-30 16:51:27 +01:00
Christoph Oelckers
bda616eb01
- fixed warning
2022-10-30 16:51:27 +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
38f7935ee9
- repeats in actors_d.cpp and actors_r.cpp
2022-10-30 16:51:27 +01:00
Christoph Oelckers
bc26f16ed5
- refactoring CreateActor - part 2
2022-10-30 16:51:26 +01:00
Christoph Oelckers
1a22127123
- refactoring CreateActor - part 1
2022-10-30 16:51:26 +01:00
Christoph Oelckers
44f0a6ae67
- handle the bolts
...
These used temp_data which was remapped to temp_pos for being floats.
2022-10-30 16:51:26 +01:00
Christoph Oelckers
dd3346cbc5
- mostly comparisons and code surrounding them
2022-10-30 16:51:26 +01:00
Christoph Oelckers
fb164450a7
- use MultScale
2022-10-30 16:51:25 +01:00
Christoph Oelckers
e749a0e9a4
- a bunch of repeats in actor_d.cpp
2022-10-30 16:51:25 +01:00
Christoph Oelckers
4c151ef15a
- the remaining repeats in Duke’s actor.cpp
2022-10-30 16:51:25 +01:00
Christoph Oelckers
5700d25120
- minor cleanup on scaling code
2022-10-30 16:51:25 +01:00
Mitchell Richters
befa5a933c
- Duke: Fix questionable setup in previous commit to interpolate SE_20_STRETCH_BRIDGE
.
2022-10-30 16:51:25 +01:00
Mitchell Richters
05a05c6406
- Duke: Fix interpolation for SE_20_STRETCH_BRIDGE
, such as curtains in E1L1/2/3.
...
* I'm not sure if there's a better way to handle this, but I had to do the nested `twoSided()` checks to ensure all walls of E1L3's curtains in the execution chair viewing room interpolated as expected.
2022-10-30 16:51:24 +01:00
Mitchell Richters
b3943a0c04
- Duke: Maintain x/y/z velocity when falling through a portal, such as E1L1's air duct.
2022-10-30 16:51:24 +01:00
Mitchell Richters
7e7c1b1179
- Duke: Fix hitching going up/down on SE17 elevators, and Z interpolation while jumping, etc.
2022-10-30 16:51:24 +01:00