Mitchell Richters
aea71092cc
- Clean up some GCC const warnings.
2023-12-05 22:39:33 +01:00
Mitchell Richters
be41bbcd28
- Move gi->getCrouchState()
into DCorePlayer
.
2023-12-05 22:39:33 +01:00
Mitchell Richters
085aefb1a5
- Repair issue where opening the menu cancels player's pitch returning to centre.
2023-12-05 22:39:32 +01:00
Mitchell Richters
98046afa28
- Consolidate player coord stat/CCMD into coreplayer.cpp
.
2023-12-05 22:39:31 +01:00
Mitchell Richters
f22b6b95d2
- Remove DCorePlayer::getCameraAngles()
.
...
* `CameraAngles` used to be private within `PlayerAngles` and accessed via a friendship with `GameInput`.
* Just make it public for now, its not worth the complex setup to protect against this as we can control access by simply not exporting it to ZScript.
2023-12-05 22:39:31 +01:00
Mitchell Richters
fcc09afa18
- Consolidate Exhumed's nCamerapos
and SW's DSWPlayer::si
into something inside DCorePlayer
.
2023-12-05 22:39:31 +01:00
Mitchell Richters
1c725377ea
- Interalise slope tilting checks for DCorePlayer::doViewPitch()
.
2023-12-05 22:39:31 +01:00
Mitchell Richters
59366d3ffc
- Internalise player velocity setup for DCorePlayer::doRollInput()
.
...
* Would have been nice to have this constexpr, but can only do that when we switch to C++20.
2023-12-05 22:39:30 +01:00
Mitchell Richters
ce75f7d7ef
- Internalise player InputPacket
access.
2023-12-05 22:39:30 +01:00
Mitchell Richters
531c95c7ca
- Move PlayerAngles
class directly into DCorePlayer
.
...
* No refactoring around it yet.
* The #includes could use some cleaning up...
2023-12-05 22:39:30 +01:00
Mitchell Richters
561d756baa
- Duke: Repair SB_CENTERVIEW
not re-applying on the first tic.
2023-12-05 22:39:18 +01:00
Christoph Oelckers
c02cff1e48
fix saving.
2023-12-05 22:39:07 +01:00
Christoph Oelckers
5448f6ec2c
turn players into DObjects and fix several bugs with bad memory access.
...
* DObjects may not be memset to 0.
* There was still code trying to retrieve the player index with pointer artithmetic. With an array of pointers this does not work.
2023-12-05 22:38:34 +01:00
Mitchell Richters
ac35e09d1c
- Move each game's stored nPlayer/pnum value to CorePlayer
.
2023-10-02 18:44:04 +11:00
Mitchell Richters
02bd017d07
- Directly set CorePlayer::ucmd
rather than copying it to a temporary array.
2023-10-02 17:00:50 +11:00
Mitchell Richters
d90aca9640
- Directly store a ticcmd_t
object within CorePlayer
.
2023-10-02 17:00:50 +11:00
Mitchell Richters
7953fe7425
- Delete all players upon engine shutdown.
2023-10-02 17:00:50 +11:00
Mitchell Richters
23d4cbc3bd
- Remove all game-side PlayerArray[]
objects and store within common code.
2023-10-02 15:43:00 +11:00
Mitchell Richters
1604cf009c
- Move the actor pointer for each game's player structures into CorePlayer
.
...
* Something strange was going on here with Blood where the static_cast would not work... Moved the player structure into `bloodactor.h` for now to work around it.
2023-10-02 15:42:59 +11:00
Mitchell Richters
6beec5eed2
- Set up initial implementation of CorePlayer
struct and make game-side player structs inherit from it.
2023-10-02 15:42:59 +11:00