Mitchell Richters
669a6e8ac0
- Duke: Tidy up return setup in checkp()
.
2023-11-10 12:00:50 +11:00
Mitchell Richters
fd394cddad
- Duke: Remove a few remaining triple negations missed in 7498be6f5d
.
2023-11-10 12:00:49 +11:00
Mitchell Richters
3625a6af52
- Move PlayerAngles
class directly into DCorePlayer
.
...
* No refactoring around it yet.
* The #includes could use some cleaning up...
2023-11-04 19:10:03 +11:00
Mitchell Richters
03a69c24b3
- Move syncinput mechanism into GameInput
object.
2023-10-05 13:10:47 +11:00
Mitchell Richters
623e453d4d
- Fix all GCC warnings in the game-side code.
...
* Most of these were due to mixed spaces/tabs playing nastiness with non-braced if/else statements.
2023-10-04 19:28:25 +11:00
Mitchell Richters
a2c8066f78
- Duke: Clean up actor accesses in premap.cpp
.
2023-10-04 11:07:52 +11:00
Mitchell Richters
a8f03ed10d
- Duke: Clean up actor accesses in player.cpp
.
2023-10-03 23:07:50 +11:00
Mitchell Richters
a51521381f
- Duke: Clean up player/actor accesses in underwater()
.
2023-10-03 23:07:50 +11:00
Mitchell Richters
5d628d712c
- Duke: Clean up player/actor accesses in checkp()
.
2023-10-03 23:07:50 +11:00
Mitchell Richters
f80290d80e
- Duke: Clean up player/actor accesses in haslock()
.
2023-10-03 23:07:49 +11:00
Mitchell Richters
31a43cdd79
- Duke: Clean up player/actor accesses in shoot()
.
2023-10-03 23:07:49 +11:00
Mitchell Richters
8b62cf63fb
- Duke: Clean up player/actor accesses in all input look functions.
2023-10-03 23:07:49 +11:00
Mitchell Richters
2225fea10c
- Duke: Clean up player/actor accesses in playerJump()
.
2023-10-03 23:07:49 +11:00
Mitchell Richters
f135097193
- Duke: Clean up player/actor accesses in playerCrouch()
.
2023-10-03 23:07:49 +11:00
Mitchell Richters
ce2487e18a
- Duke: Clean up player/actor accesses in timedexit()
.
2023-10-03 23:07:49 +11:00
Mitchell Richters
2e2efaea11
- Duke: Clean up player/actor accesses in endoflevel()
.
2023-10-03 23:07:49 +11:00
Mitchell Richters
497d2d26dd
- Duke: Clean up player/actor accesses in playerisdead()
.
2023-10-03 23:07:48 +11:00
Mitchell Richters
7186c3e9f7
- Duke: Clean up player/actor accesses in footprints()
.
2023-10-03 23:07:48 +11:00
Mitchell Richters
079df4dd8f
- Duke: Clean up player/actor accesses in makepainsounds()
.
2023-10-03 23:07:48 +11:00
Mitchell Richters
0749a65c81
- Duke: Clean up player/actor accesses in dokneeattack()
.
2023-10-03 23:07:48 +11:00
Mitchell Richters
2ff4aaf6b8
- Duke: Clean up player/actor accesses in PlayerColorChanged()
.
2023-10-03 23:07:48 +11:00
Mitchell Richters
d8b670276a
- Duke: Convert all the aplWeapon* crap to work on player pointers.
2023-10-03 23:07:47 +11:00
Mitchell Richters
0d25bbe84a
- Duke: Remove PlayerInput()
wrapper.
...
* Regex used: `PlayerInput\(\w+\,\s?(SB_\w+)\)` -> `!!(p->cmd.ucmd.actions & $1)`.
2023-10-03 23:07:46 +11:00
Mitchell Richters
d6de57095d
- Take better advantage of InputPacket::ang
's FRotator
status.
...
* Change it to a DRotator as that's what the game is expecting. Too many narrowings against DAngle objects needed.
* Utilise object methods where possible.
* Do all math against the object where possible, not its members.
2023-10-03 23:07:45 +11:00
Mitchell Richters
1732cd2e83
- Change InputPacket
angles to an FRotator
.
2023-10-03 23:07:45 +11:00
Mitchell Richters
f570cb5d21
- Change InputPacket
velocities to an FVector3
.
2023-10-03 23:07:44 +11:00
Christoph Oelckers
dd2ea96d6c
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-10-02 21:03:59 +02:00
Mitchell Richters
d90aca9640
- Directly store a ticcmd_t
object within CorePlayer
.
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
6d2124dd01
- Duke: Initial setup to convert PlayerArray
array to array of DukePlayer
pointers.
2023-10-02 15:43:00 +11:00
Mitchell Richters
6a367c6184
- Duke: Rename ps[]
array to PlayerArray[]
and wrap its access.
2023-10-02 15:41:15 +11:00
Mitchell Richters
bd9e42bb40
- Duke: Rename player_struct
struct to DukePlayer
.
2023-10-02 15:41:13 +11:00
Mitchell Richters
6d6872fea7
- Duke: Ensure player_struct::GetActor()
is exclusively used to get the player's actor.
2023-10-02 15:30:34 +11:00
Mitchell Richters
719cc75fd2
- Duke: Rename player_struct::sync
to player_struct::input
to match the other games.
2023-10-02 15:30:32 +11:00
Christoph Oelckers
e0de0893a9
- autoaim must never apply to WW2GI's pistol.
2023-05-19 22:53:16 +02:00
Christoph Oelckers
bab432ed72
- refinement of aiming fix.
2023-05-19 22:53:15 +02:00
Christoph Oelckers
fa1e667140
- Duke/RR: Use the exact same trajectory for autoaiming and the actual attack hitscan for the pistol.
...
These were not identical so the pistol was likely to miss small targets the autoaim acquired. This was particularly bad for Duke's ceiling turret and RR's mosquito.
2023-05-19 22:52:36 +02:00
Mitchell Richters
afcc65c332
- Duke: Hook up InputPacket::uvel
to remainder of relevant code.
2023-04-24 18:27:44 +10:00
Christoph Oelckers
1bace1d508
- use texture IDs in the spawn records.
2023-04-23 17:33:50 +02:00
Mitchell Richters
87144564fd
- Duke: Consolidate the mostly duplicate underwater()
functions.
2023-04-23 19:21:04 +10:00
Christoph Oelckers
cc83438e31
- replace dispicnum with dispictex
2023-04-23 10:32:58 +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
f78c971eac
- refactored shoot API to exclusively work with class pointers.
2023-04-22 12:08:46 +02:00
Christoph Oelckers
65e66a573d
- Duke: look up all internally used actor classes at game startup.
...
This allows early validation of the names but is also more efficient.
2023-04-22 12:08:46 +02:00
Christoph Oelckers
a3da3a4c43
- added a large bunch of script exports.
2023-04-16 17:35:15 +02:00
Christoph Oelckers
cb8137c32b
- consolidated shoot_d and shoot_r.
2023-04-16 16:53:52 +02:00
Christoph Oelckers
afe7086189
- reimplemented WW2GI's hitscan related events in ZScript.
2023-04-16 16:53:51 +02:00
Christoph Oelckers
3af08ecbac
- scriptified and consolidated the hitscan attacks.
2023-04-16 16:53:51 +02:00
Christoph Oelckers
c73830992f
- added a few exports and properties for weapon shooting and added missing 'const' annotations for ShootThis overrides.
2023-04-15 23:23:09 +02:00
Christoph Oelckers
62ace9371f
- moved the 3 actor properties out of the global data.
2023-04-12 20:07:12 +02:00