Christoph Oelckers
83dfd77bd0
- eliminate picnums in QAV code.
2023-04-29 11:32:04 +02:00
Christoph Oelckers
9a703639cb
- final cleanup of Blood/Exhumed changes.
2023-04-29 11:32:04 +02:00
Christoph Oelckers
01b6d9f27f
- eliminated all remaining uses of picnum in Exhumed.
2023-04-29 11:32:03 +02:00
Christoph Oelckers
44e9a66319
- handle 3 more of Exhumed's picnums that were quick to refactor
2023-04-29 11:32:03 +02:00
Christoph Oelckers
0e097903c4
- got rid of a large chunk of picnum accesses in Exhumed.
2023-04-29 11:32:03 +02:00
Christoph Oelckers
f115f9427d
- got rid of a few more picnum references in Blood.
2023-04-29 11:32:03 +02:00
Christoph Oelckers
76c0de2ef1
- moved some of Blood's precaching info to external data.
2023-04-29 11:32:03 +02:00
Christoph Oelckers
52706e9afd
- handle the direct assignments of values to picnum in Blood.
2023-04-29 11:32:02 +02:00
Christoph Oelckers
36c07aaca5
- did some simple picnum replacements in Blood.
2023-04-29 11:32:02 +02:00
Christoph Oelckers
47f9642294
- added compile time validation for SetAction, SetAI and SetMove.
...
the expression classes were deleted again, this can be done without them.
2023-04-29 10:09:36 +02:00
Christoph Oelckers
bf577916ec
- made the is*** checkers compiler intrinsics.
...
With the exception of isWorldTour, isPlutoPak and isShareware when playing Duke these are always constant and this way can be used to completely eliminate unneeded code.
2023-04-29 10:09:36 +02:00
Christoph Oelckers
f1f1e54e04
- moved the remaining content of the flags* files directly into game.cpp
2023-04-29 09:59:54 +02:00
Christoph Oelckers
bfcceccc98
- consolidated checkhitdefault functions.
2023-04-29 09:58:42 +02:00
Christoph Oelckers
6fd4368592
- moved Duke/RR's tile name list to raze.pk3, now that internally it is not used anymore.
...
This way it can later also be used by editors.
2023-04-29 09:55:48 +02:00
Christoph Oelckers
44f4104eda
- got rid of the last tilenum uses in Duke.
...
This meant refactoring the crosshair drawer to work on a named texture called "CROSSHAIR" and hard coding the magic numbers for spawndebris.
2023-04-29 09:54:15 +02:00
Christoph Oelckers
bb08a118d9
- replaced the sprite precaching code with one that scans the actual content.
...
This will currently not do proper precacing for Duke, which requires actions to be defined as the ones from CON cannot be assigned to an actor.
2023-04-29 09:53:52 +02:00
Christoph Oelckers
83eb4852f7
- do not use literal tile numbers for initializing WW2GI's weapon gamevars.
...
Instead use the type numbers of the items to be spawned so it is derived from configurable data.
2023-04-29 09:51:51 +02:00
Mitchell Richters
312b649d93
- Duke: Pass HUD offsets to bike/moto drawers by const reference.
2023-04-29 09:19:09 +02:00
Christoph Oelckers
f278a29fad
- migrated all RR weapons to texture names.
2023-04-29 09:16:55 +02:00
Christoph Oelckers
5d4f137623
- migrated Duke's entire HUD weapon code to texture names.
2023-04-29 09:16:46 +02:00
Christoph Oelckers
d5f1a82f21
- Duke shotgun and chaingun handled.
2023-04-29 09:13:42 +02:00
Christoph Oelckers
1aa88bd201
- more HUD refactoring
2023-04-29 09:13:28 +02:00
Christoph Oelckers
8f61abdf75
- more HUD refactoring and fixed issues with badly named textures crashing the precacher.
2023-04-29 09:08:42 +02:00
Christoph Oelckers
8a331e226f
- handle cases where CON tries to spawn unknown actors.
...
It must fall back to spawning an inert sprite in these cases, not just fail.
2023-04-29 07:06:53 +02:00
Christoph Oelckers
34160a4354
- ported the scuba mask drawers to texture IDs.
...
These were also the last places in Duke using tileWidth and tileHeight.
2023-04-29 07:06:42 +02:00
Mitchell Richters
ef81e713e2
- Exhumed: Clamp off vale in fix from adbd5c3c69
.
...
* Fixes example situations where the player is underwater and smashing against the ceiling, etc.
2023-04-28 19:30:14 +10:00
Mitchell Richters
742d76a4bf
- Exhumed: Tidy up some unnecessarily nested if statements in movespritez()
.
2023-04-27 22:51:30 +10:00
Mitchell Richters
adbd5c3c69
- Exhumed: Fix velocity loss in movespritez()
when warping.
...
* Old code was adjusting the actor's Z to right off the ceiling with no factoring in of the old interpolation position.
* Due to this, we were hitting the `nCamerapos.Z = min(max(nCamerapos.Z, pSector->ceilingz + 1), pSector->floorz - 1);` bounding in the draw code.
* Since game puts you right at the ceiling, we apply this to the old interpolation position, as well as the current position, however we then add their velocity back onto the current position to make the warp seamless.
2023-04-27 22:51:30 +10:00
Mitchell Richters
78df82e1ed
- Exhumed: Clean up loHit
global in move.cpp
.
...
* More lazy arg passing via a global...
2023-04-27 22:51:30 +10:00
Mitchell Richters
4c5339274d
- Exhumed: Fix bad velocity zeroing from ece41ac84c
.
2023-04-27 21:32:36 +10:00
Mitchell Richters
3edc1a5a5a
- Exhumed: Make getSequence()
return a pointer instead of a reference.
...
* Gets rid of the awkward `operator[]()` calls.
* Gets rid of `std::ref()` setup in gun.cpp.
* Ensures a copy isn't made if the caller accidentally leaves off an ampersand.
* Allows us to use a consistent getter for native code and VM exports.
2023-04-27 20:16:14 +10:00
Mitchell Richters
ea7fe0e0b4
- Exhumed: Add fixSeqs()
and use it to patch OOB issue with skulstrt.seq
.
2023-04-26 20:27:28 +10:00
Mitchell Richters
33d4809663
- Exhumed: Ensure sequence data cannot be changed via the getters.
2023-04-26 20:13:26 +10:00
Mitchell Richters
64c47b0385
- Exhumed: Slightly tune damage pushback from previous commit.
...
* The logic here is that the player's running/double speed velocity is scaled by 0.375 in `updatePlayerVelocity()`, so 0.1875 is half of that scale.
2023-04-25 20:07:10 +10:00
Mitchell Richters
64745dff89
- Exhumed: Allow damage pushback behind CVAR cl_exdamagepush
.
...
* Fixes #907 .
* Works in conjunction with ece41ac84c
by using the player actor's velocity.
* Original game blanket reset the sprite/actor's vel each tic which cancelled this out.
* Original damage value is far, far too high. Had to scale it back by 1024 units to make it reasonable!
2023-04-25 19:55:05 +10:00
Mitchell Richters
0a6ff79f4f
- Exhumed: Give runlist_CheckRadialDamage()
a bit of a tidy.
2023-04-25 19:44:25 +10:00
Mitchell Richters
ece41ac84c
- Exhumed: Move player's velocity back into the actor, again.
...
* Was done in 67c7dd65f9
but caused issues.
* Reverted in 3d6f1e1a04
to ensure the game worked as expected.
* Actual problem identified and isolated to remove this duplication.
2023-04-25 19:36:46 +10:00
Mitchell Richters
7c2bd266b9
- Exhumed: Fix incorrect distance check operator for the rat.
2023-04-25 18:39:56 +10:00
Mitchell Richters
fe356f3183
- Exhumed: Fix OOB frame with the rat.
...
* No idea what this does in the original source... plays the first frame of the next sequence?
2023-04-25 18:18:26 +10:00
Mitchell Richters
52ab0fae19
- Duke: Allow reversing while moving forwards to act as the brake.
...
* Much more intuitive for controllers.
2023-04-25 11:30:48 +10:00
Mitchell Richters
6d2e114dec
- Duke: Move moto tilt scaling into main tilt function, not within the draw code.
2023-04-25 08:37:38 +10:00
Mitchell Richters
6004a9fb5a
- Exhumed: Fix bad jump setup from c252b19e9a
.
2023-04-24 23:27:02 +10:00
Mitchell Richters
fd1c3dffe8
- Duke: Allow view tilting for RRRA vehicles on separate CVAR.
...
* Tilts at the same angle as the HUD.
2023-04-24 23:20:14 +10:00
Mitchell Richters
918789705f
- Duke: Use the player's angle when adjusting vehicle's HUD rotation.
2023-04-24 22:44:22 +10:00
Mitchell Richters
14629e7b2b
- Clamp vehicle input to 1.5x the calculated velocity.
2023-04-24 22:18:40 +10:00
Mitchell Richters
6ac2af9f3c
- Duke: Convert RRRA's vehicle HUD tilting to a DAngle.
2023-04-24 22:17:37 +10:00
Mitchell Richters
11181f51f8
- Allow roll input through the packet system, giving us 6DOF for VR usage, etc.
2023-04-24 21:31:21 +10:00
Mitchell Richters
8e3df00b8b
- SW: Hook up InputPacket::uvel
to relevant code.
2023-04-24 21:01:32 +10:00
Mitchell Richters
67390511b7
- Blood: Hook up InputPacket::uvel
to relevant code.
2023-04-24 19:06:48 +10:00
Mitchell Richters
c252b19e9a
- Exhumed: Hook up InputPacket::uvel
to relevant code.
2023-04-24 19:06:48 +10:00
Mitchell Richters
80f2afd6a4
- Exhumed: Slightly tidy up updatePlayerWeapon()
.
2023-04-24 19:06:46 +10:00
Mitchell Richters
e29726370c
- Exhumed: Tidy up two if statements in AIPlayer::Damage()
.
2023-04-24 19:03:04 +10:00
Mitchell Richters
afcc65c332
- Duke: Hook up InputPacket::uvel
to remainder of relevant code.
2023-04-24 18:27:44 +10:00
Mitchell Richters
09ab66b8c9
- Duke: Clean up p->GetActor()
calls in movement()
funcs.
2023-04-24 16:16:07 +10:00
Christoph Oelckers
1c7ca7b63a
- moved all indirect precaching info to external definition files.
2023-04-23 17:43:22 +02:00
Christoph Oelckers
6924869895
- store texture IDs in the sprite set.
2023-04-23 17:42:07 +02:00
Christoph Oelckers
1bace1d508
- use texture IDs in the spawn records.
2023-04-23 17:33:50 +02:00
Christoph Oelckers
4692cc55f7
- cleaned up checkhitdefault
...
Only required 4 new flags plus one property...
2023-04-23 17:33:36 +02:00
Christoph Oelckers
125ea52e57
- handle special case for activation sounds when player bumps into other actors.
2023-04-23 17:33:35 +02:00
Christoph Oelckers
524df20d26
- renamed most local picnum variables in shaded code to reduce search noise.
2023-04-23 17:33:35 +02:00
Christoph Oelckers
fd7a4e050a
- no more picnum in gameexec.cpp
2023-04-23 12:15:36 +02:00
Christoph Oelckers
cd2cb8d60e
- minor cleanup
2023-04-23 12:15:36 +02:00
Mitchell Richters
a731db95ae
- Add initial support for up/down movement within the game, either by key or joystick axis.
...
* Started with Duke's jetpack, other games to follow for swimming, etc.
2023-04-23 19:53:45 +10:00
Mitchell Richters
87144564fd
- Duke: Consolidate the mostly duplicate underwater()
functions.
2023-04-23 19:21:04 +10:00
Mitchell Richters
02325c37bc
- Duke: Fix incorrect scaling of underwater bubble.
2023-04-23 19:21:04 +10:00
Mitchell Richters
8db8d43f89
- Duke: Tidy up underwater()
.
2023-04-23 19:21:04 +10:00
Mitchell Richters
95fe3d1bc4
- Duke: Tidy up operateJetpack()
.
2023-04-23 19:21:04 +10:00
Mitchell Richters
eca8526c11
- Exhumed: Unlimit the SeqNames[]
array.
2023-04-23 19:20:19 +10:00
Mitchell Richters
19501f3ed0
- Exhumed: Fix some typos in comments.
2023-04-23 19:19:47 +10:00
Mitchell Richters
e60e767232
- Break down some increasingly long lines in GameInput::processMovement()
.
2023-04-23 19:19:26 +10:00
Christoph Oelckers
07c4b61260
- make sure that the aplWeapon* stuff is never accessed outside of WW2GI.
2023-04-23 10:45:44 +02:00
Christoph Oelckers
f0a6c4ecd8
- check for NOGRAVITY in 'fall'.
2023-04-23 10:45:44 +02:00
Christoph Oelckers
17a8dd5c2e
- added tile names for all of Vacation's new actors.
...
Although several just replace existing actors, we want different names for these when replacing them.
2023-04-23 10:45:44 +02:00
Christoph Oelckers
4c1e379149
- only declare the weapon gamevars for WW2GI.
...
none of the other games uses any of this.
2023-04-23 10:45:44 +02:00
Christoph Oelckers
d5fa2d73ad
- removed code for unused ATWITH gamevar.
2023-04-23 10:45:44 +02:00
Christoph Oelckers
fc0c8e0787
- NOHITJIBS flag.
2023-04-23 10:45:44 +02:00
Christoph Oelckers
91ee3cb7b8
- got rid of the picnum CreateActor variant.
2023-04-23 10:45:43 +02:00
Christoph Oelckers
a6600c200f
- a lot of simple picnum or TILE_* replacements.
2023-04-23 10:45:43 +02:00
Christoph Oelckers
5d43975467
- store class pointers in weaprecs.
2023-04-23 10:36:39 +02:00
Christoph Oelckers
2f78a10ce1
- don't use picnum to address gs.actorinfo
2023-04-23 10:36:39 +02:00
Christoph Oelckers
b56aa1e1a3
- no more picnum in spawn CCMD
2023-04-23 10:36:38 +02:00
Christoph Oelckers
745275dc24
- use texture names for special player sprites,
2023-04-23 10:36:38 +02:00
Christoph Oelckers
bfc8862071
- use texture IDs in the sprite animator
2023-04-23 10:36:27 +02:00
Christoph Oelckers
cc83438e31
- replace dispicnum with dispictex
2023-04-23 10:32:58 +02:00
Christoph Oelckers
b2493116f8
- use texture IDs in the model interface.
2023-04-23 09:52:56 +02:00
Christoph Oelckers
1bc9de1cf0
- the last picnums in actors_r.cpp
2023-04-23 09:52:56 +02:00
Christoph Oelckers
14bf74c0f9
- turned adjustfall into a 'gravityfactor' property.
2023-04-23 09:51:24 +02:00
Christoph Oelckers
687cfd610f
- copied ST160/161 handling to movetransports_d.
2023-04-23 09:43:21 +02:00
Christoph Oelckers
ac50daf5f3
- split a large bunch of code out of movetransports that can be consolidated between Duke and RR.
2023-04-23 09:43:21 +02:00
Christoph Oelckers
a0de956bef
- got rid of tilenum checks in movetransports_r.
2023-04-23 09:43:21 +02:00
Christoph Oelckers
4812e1431e
- made fallspecial game independent and eliminated all the wrapping and callback weirdness with fall.
2023-04-23 09:43:20 +02:00
Christoph Oelckers
7f19a120a0
- clean out RRRA move flags in the CON parser for the other games.
...
This allows keeping their function enabled everywhere so that they can become a common feature without further need for validation.
2023-04-23 09:42:30 +02:00
Christoph Oelckers
b2b4d432fc
- handle tilenum access in movetransports_d.
2023-04-23 09:42:30 +02:00
Christoph Oelckers
91d864ac8f
- use classtypes in fallspecial.
2023-04-23 09:42:30 +02:00
Christoph Oelckers
35a088ba04
- added map flags to enable RR's special sector types in Duke as well.
2023-04-23 09:42:29 +02:00
Christoph Oelckers
c8853de0ef
- use the symbolic constants for ST_160 and ST_161 in the last remaining places where they hadn't been put before.
2023-04-23 09:42:29 +02:00
Christoph Oelckers
0b3f18a903
- consolidated move functions.
2023-04-23 09:42:29 +02:00
Christoph Oelckers
5a2410cbbb
- more properties to get rid of the remaining actor type checks in move_d and move_r.
2023-04-23 09:42:29 +02:00
Christoph Oelckers
c4c035a527
- handle more of move's special cases with flags and properties.
2023-04-23 09:42:28 +02:00
Christoph Oelckers
2d4eee4153
- eliminated the last references to picnum in actors.cpp.
2023-04-23 09:42:28 +02:00