Christoph Oelckers
|
ae4ef6401c
|
- use the actual actor flags.
Not fully working yet...
|
2023-04-09 09:45:42 +02:00 |
|
Christoph Oelckers
|
8172a9ac0c
|
- moved all flags into the actor definitions.
|
2023-04-09 09:35:37 +02:00 |
|
Christoph Oelckers
|
9c164ad290
|
- fixed crash when stomping shrunk enemies.
|
2023-04-08 07:14:07 +02:00 |
|
Christoph Oelckers
|
60339a217c
|
- moved a lot of shareable code out of the CON interpreter.
|
2023-04-07 13:15:06 +02:00 |
|
Christoph Oelckers
|
9ba0b18013
|
- moved the 3 health related instructions out of the CON interpreter.
This code can be shared with ZScript so it needs to be elsewhere.
|
2023-04-07 13:15:06 +02:00 |
|
Christoph Oelckers
|
7a699e032f
|
- cleaned up Duke's very broken kill count system.
This now uses a static flag to denote an actor as countable and an internal flag to track its killed state, because CON can toggle that at will.
|
2023-04-07 09:49:20 +02:00 |
|
Christoph Oelckers
|
7f240a0a7a
|
- converted all remaining classes used by PicForName.
This means all functions using this can now pass class pointers directly to the native code.
|
2023-04-02 13:13:45 +02:00 |
|
Mitchell Richters
|
776c58c58a
|
- Duke: If we enter playerCenterView() and put SB_CENTERVIEW() back on, we need to null and lock input.
|
2023-03-26 14:36:23 +11:00 |
|
Mitchell Richters
|
a5a9882d9a
|
- Duke: Add a myriad of pitch recentering CVARs.
* Needs to be reworked into some kind of MP-safe flagging once we have demos/MP going. This will do for now.
* Fixes #853.
|
2023-03-26 12:46:14 +11:00 |
|
Mitchell Richters
|
e5f3f5f149
|
- Make setForcedSyncInput() require a player index.
* This should only ever apply to the console player.
|
2023-03-23 17:09:02 +11:00 |
|
Mitchell Richters
|
056330863c
|
- Duke: Eliminate GetActor() calls in playerisdead() .
|
2023-03-19 09:10:14 +11:00 |
|
Mitchell Richters
|
4355a44721
|
- Duke: Rework input blocking setup.
* Takes the duplicated conditions out of the input handler and makes the ticker responsible by forcing synchronised input.
|
2023-03-18 19:29:29 +11:00 |
|
Mitchell Richters
|
d6b68dec5e
|
- Duke: Remove player_struct::resurrected flag I added in 2021 and fix issue properly.
* The check for `player_struct::dead_flag` in `FinalizeInput()` was overzealous and is not checked in the original code in this instance.
|
2023-03-17 12:29:37 +11:00 |
|
Christoph Oelckers
|
81f6899e72
|
- C++20 constant fixes.
Use of enums is deprecated in floating point calculations.
|
2023-01-21 10:34:44 +01:00 |
|
Christoph Oelckers
|
8001c4041f
|
- Duke: fixed hitscan vector for pistol's aim check.
|
2023-01-14 16:48:28 +01:00 |
|
Christoph Oelckers
|
ff33dd7188
|
- Duke: fixed bad surface check.
Surfaces are not bit flags, they are values.
|
2023-01-08 18:32:38 +01:00 |
|
Mitchell Richters
|
1d69ebe9b0
|
- Duke: Ensure that the expander hitscans when autoaim is "hitscan only".
* Fixes #827.
|
2022-12-29 21:17:41 +11:00 |
|
Christoph Oelckers
|
8dfbbc8220
|
- migrated floorpicnum and ceilingpicnum to FTextures.
The sky code still needs some work.
|
2022-12-18 14:32:52 +01:00 |
|
Christoph Oelckers
|
4a306a21dc
|
- split several texture flags off into a surface type value.
Using the same field in the TexExtInfo struct as Blood's surfType.
This frees up a lot of flags for later use.
|
2022-12-18 13:56:54 +01:00 |
|
Christoph Oelckers
|
0ffeb2378a
|
- generalize Duke's purple lava check.
|
2022-12-18 13:43:26 +01:00 |
|
Christoph Oelckers
|
6848af9b6c
|
- use texture IDs in Duke's texture flag checkers.
|
2022-12-18 13:42:28 +01:00 |
|
Mitchell Richters
|
7d6eb2bae6
|
- Remove some pitch/yaw deltaangle additions in lieu of setting the angle directly.
* This deltaangle addition was needed with the old input setup.
|
2022-12-11 19:46:27 +01:00 |
|
Mitchell Richters
|
de8353f085
|
- Eliminate BAngToDegree constant.
|
2022-12-11 19:46:26 +01:00 |
|
Mitchell Richters
|
7a7758efaa
|
- Remove PlayerAngles::addPitch() method usage.
|
2022-12-11 19:43:56 +01:00 |
|
Mitchell Richters
|
1944d04014
|
- Duke: Fix pitch alteration in dokneeattack() .
|
2022-12-11 19:43:55 +01:00 |
|
Christoph Oelckers
|
bdc474d04f
|
- scriptified all remaining Duke actors with specific init code and no CON part.
|
2022-12-11 19:43:53 +01:00 |
|
Christoph Oelckers
|
5358b3d98c
|
- added a new sprite flag for those types which can trigger respawn actions.
|
2022-12-11 19:43:50 +01:00 |
|
Christoph Oelckers
|
15fb7dab35
|
- virtualized the 'shoot' interface and scriptified the bloodsplats to test it.
This calls virtual functions on the actor defaults now to allow writing specific shoot functions for subclasses.
|
2022-12-11 19:43:48 +01:00 |
|
Christoph Oelckers
|
b485d7a450
|
- use isPlayer function where possible.
|
2022-12-11 19:43:46 +01:00 |
|
Christoph Oelckers
|
93ef4b34d7
|
- scriptified the guts spawning function.
|
2022-12-11 18:46:40 +01:00 |
|
Christoph Oelckers
|
5a2819239c
|
- moved Duke's tile flags into the tile manager.
This is so that .def can access them. Later the other games also might make use of this.
|
2022-12-11 18:42:01 +01:00 |
|
Mitchell Richters
|
dfb55c39ca
|
- Duke: Remove all remaining angle wrapper usage.
|
2022-12-11 18:42:00 +01:00 |
|
Mitchell Richters
|
a7a5d4b946
|
- Preserve one legacy getter that's needed extensively in Duke.
|
2022-12-11 18:42:00 +01:00 |
|
Mitchell Richters
|
f9aeee5b4a
|
- Split out view angle stuff out of PlayerAngles::applyYaw() into PlayerAngles::doViewYaw() .
* Do all the view angle stuff as interpolated changes in the playsim as well, there's no need for these to be done at ticrate.
|
2022-12-11 18:41:59 +01:00 |
|
Mitchell Richters
|
d7d76d5fc4
|
- Move all PlayerAngles view angle properties into new DRotator objects.
|
2022-12-11 18:41:58 +01:00 |
|
Mitchell Richters
|
175b182805
|
- Invert rotscrnang so it rolls forward, consistent with all other angles.
|
2022-12-11 18:41:58 +01:00 |
|
Mitchell Richters
|
bef4536c1f
|
- Remove old PlayerAngles backup/restore methods.
|
2022-12-11 18:41:58 +01:00 |
|
Mitchell Richters
|
be466fec8d
|
- Wrap access to current yaw.
|
2022-12-11 18:41:57 +01:00 |
|
Mitchell Richters
|
15f1d89855
|
- Wrap access to current pitch.
|
2022-12-11 18:41:56 +01:00 |
|
Mitchell Richters
|
b9f5bb71cc
|
- Merge PlayerHorizon and PlayerAngle structs into PlayerAngles struct.
|
2022-12-11 18:41:56 +01:00 |
|
Mitchell Richters
|
353c2a20fd
|
- Rename remaining PlayerAngle methods.
|
2022-12-11 18:41:55 +01:00 |
|
Mitchell Richters
|
7d34288290
|
- Rename PlayerAngle::rotscrnang in preparation for replacement work.
|
2022-12-11 18:41:55 +01:00 |
|
Mitchell Richters
|
644cf82238
|
- Rename PlayerAngle::look_ang in preparation for replacement work.
|
2022-12-11 18:41:55 +01:00 |
|
Mitchell Richters
|
bd063de5f5
|
- Rename PlayerAngle::ang in preparation for replacement work.
|
2022-12-11 18:41:54 +01:00 |
|
Mitchell Richters
|
9ab8db04db
|
- Rename remaining PlayerHorizon methods.
|
2022-12-11 18:41:54 +01:00 |
|
Mitchell Richters
|
3758d93ad8
|
- Rename PlayerHorizon getters in preparation for replacement work.
|
2022-12-11 18:41:54 +01:00 |
|
Mitchell Richters
|
216fad7e18
|
- Rename PlayerHorizon::horizoff in preparation for replacement work.
|
2022-12-11 18:41:53 +01:00 |
|
Mitchell Richters
|
401a829d54
|
- Rename PlayerHorizon::horiz in preparation for replacement work.
|
2022-12-11 18:41:53 +01:00 |
|
Mitchell Richters
|
2e0b9490e1
|
- Change spritetypebase::angle to a DRotator named Angles .
* Major pre-requisite for the next steps I'm undertaking, let's get it into the branch now.
|
2022-12-11 18:41:52 +01:00 |
|
Mitchell Richters
|
f10f1b9154
|
- Duke: Remove player_struct::posoldZset() and player_struct::posoldZget() .
|
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
|
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
|
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
|
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
|
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
|
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 |
|
Christoph Oelckers
|
5528725985
|
- got rid of deletesprite, plus one new flag.
|
2022-11-20 19:25:23 +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
|
b106fb693a
|
- scriptified OozFilter + Seenine
Also fixing the default handling for onHit.
|
2022-11-17 21:46:24 +01:00 |
|
Mitchell Richters
|
7941f3cde3
|
- Duke: Pitch-adjusted velocity for aim() .
|
2022-11-06 21:59:06 +11: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 |
|
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
|
bc26f16ed5
|
- refactoring CreateActor - part 2
|
2022-10-30 16:51:26 +01:00 |
|
Christoph Oelckers
|
8a8ef22e53
|
- mostly '>' comparisons with scale values.
|
2022-10-30 16:51:22 +01:00 |
|
Mitchell Richters
|
cea2b6b428
|
- Rename PlayerHorizon::__horiz back to horiz .
|
2022-10-30 16:51:12 +01:00 |
|
Mitchell Richters
|
0600bf5860
|
- Negate everything to do with PlayerHorizon::__horiz where appropriate, including some loose horizoff members.
|
2022-10-30 16:51:11 +01:00 |
|
Mitchell Richters
|
619b8005ac
|
- Rename PlayerHorizon::horiz in prep for negating this angle throughout code.
|
2022-10-30 16:51:11 +01:00 |
|
Mitchell Richters
|
29eb729cd3
|
- Fix multiple bad calls to pushmove() .
|
2022-10-30 16:51:09 +01:00 |
|
Christoph Oelckers
|
7d3babd678
|
- ported all pushmove calls to the float version.
|
2022-10-30 16:51:08 +01:00 |
|
Christoph Oelckers
|
600c2a0243
|
- map all clipmove calls to the version with a full float interface.
|
2022-10-30 16:50:48 +01:00 |
|
Mitchell Richters
|
e7dff22095
|
- Duke: Fix some badly negated angle setups.
|
2022-10-27 16:55:53 +02:00 |
|
Mitchell Richters
|
1e7cce28af
|
- VecToAngle() with delta() inside to .Angle() replacements.
|
2022-10-27 16:55:53 +02:00 |
|
Mitchell Richters
|
8d3f3c6025
|
- Cut over to DAngle from fixedhoriz and remove the latter.
|
2022-10-25 07:06:55 +02:00 |
|
Mitchell Richters
|
41bbbd9df5
|
- Remove all remaining uses of fixedhoriz::asbuild() .
|
2022-10-25 07:06:55 +02:00 |
|
Mitchell Richters
|
92798b5a07
|
- Remove most buildhoriz() calls.
|
2022-10-25 07:06:55 +02:00 |
|
Mitchell Richters
|
8697e5f054
|
- Replace all q16horiz(0) calls.
|
2022-10-25 07:06:54 +02:00 |
|
Mitchell Richters
|
d8a6471680
|
- Add fixedhoriz::Tan() and replace most asbuildf() calls with it.
|
2022-10-25 07:06:53 +02:00 |
|
Christoph Oelckers
|
c511e5dca9
|
- eliminated int_xvel
|
2022-10-22 11:33:16 +02:00 |
|
Christoph Oelckers
|
b712315ec3
|
- floatified playerJump
|
2022-10-22 11:33:14 +02:00 |
|
Christoph Oelckers
|
583a5bd0e3
|
- floatified playerisdead
|
2022-10-22 11:33:13 +02:00 |
|
Christoph Oelckers
|
cd6c524b90
|
- converted most of the remaining CreateActor calls.
|
2022-10-22 09:34:16 +02:00 |
|
Christoph Oelckers
|
f52b361dfc
|
- floatified aim()
|
2022-10-22 09:34:14 +02:00 |
|
Christoph Oelckers
|
ebb7442370
|
- floatified hitawall
|
2022-10-22 09:34:13 +02:00 |
|
Christoph Oelckers
|
b176d94ede
|
- floatified hitasprite
|
2022-10-22 09:34:13 +02:00 |
|
Christoph Oelckers
|
062e533b81
|
- floatified hitasprite's callers.
|
2022-10-22 09:34:13 +02:00 |
|
Christoph Oelckers
|
d4aaee6274
|
- floatified hits()
|
2022-10-22 09:34:13 +02:00 |
|
Christoph Oelckers
|
9591325876
|
- floatified return value of hits()
|
2022-10-22 09:34:13 +02:00 |
|