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
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
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
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
ee07ae35aa
retrieve time in fillSummary.
2023-10-01 12:10:56 +02:00
Christoph Oelckers
4dcf0fd3c4
get rid of the GetStats interface function.
...
Now that all data it retrieves is available in shared code it is no longer needed.
2023-10-01 11:48:32 +02:00
Christoph Oelckers
3e821c5849
use global stat manager in Duke
2023-10-01 10:07:54 +02:00
Mitchell Richters
ad87f9ba54
- Duke: Adjust doVehicleTilting()
somewhat.
...
* Don't adjust and scale the player's roll, we can rely on `player_struct::TiltStatus` alone for this.
* Ensure maximum tilt via full keyboard turn == (20. * 360. / 2048. * 0.5), same as original code.
2023-09-28 22:16:31 +10:00
Mitchell Richters
8f9b413d38
- Always clear object in PlayerAngles::initialize()
rather than expecting the caller to do it.
2023-09-28 22:16:30 +10:00
Mitchell Richters
7fa5df934b
- Make playercmds[]
non-global and pass through as pointer.
2023-09-28 22:16:30 +10:00
Mitchell Richters
ae39645169
- Duke: Slight cleanup on e0e459216d
.
2023-09-28 22:16:29 +10:00
Christoph Oelckers
8a0f79141b
code cleanup
...
* gave reverb functions the proper 'S_' prefix for consistency.
* Blood: fixed license of 4 files which do not contain any NBlood code anymore (sound code was completely rewritten, and all such code has long been moved out of d_menu.cpp)
* Blood: renamed VIEWPOS_* constants
2023-09-26 23:30:38 +02:00
Mitchell Richters
e0e459216d
- Reduce GameInput::processVehicle()
interface by changing three bools to a bitfield.
2023-09-25 19:51:53 +10:00
Mitchell Richters
ff8cea673e
- Duke: Ensure player_struct
Serialiser only attempts to set variables when reading, not unconditionally.
2023-09-24 17:21:17 +10:00
Mitchell Richters
29e021b5bf
- Move crouch toggling back into the backend so the toggle key can be used as a swim key.
...
* Reverts 272dfa762d
, but is a fresh implementation.
* I doubted anyone was doing this but apparently not.
* Exhumed needed a bit more work as it has very specific underwater checks.
2023-09-24 14:15:49 +10:00
Christoph Oelckers
4bb66fb44e
- Duke: Fixed WT fallback for classic sounds in cases the user data does not exist.
...
currently that's only the case for CRANEGRAB which is aliased because of differences between Duke and RR.
2023-09-23 14:29:41 +02:00
Christoph Oelckers
a41ebfeb73
- Duke: fixed the explosion's lighting hackery.
...
The animatesprites handler in the old code got called on the already animated sprite, meaning it will only activate for the first frame.
To do this right the code had to be moved to applyanimations and be guarded by a flag.
2023-09-10 20:42:26 +02:00
Christoph Oelckers
230c1b9041
- fix animatesprite loop aborts on sector effectors
2023-09-10 19:55:41 +02:00
Christoph Oelckers
b95a5a4b2b
- yet another backend update.
2023-08-20 02:15:57 +02:00
Christoph Oelckers
d34bad3045
- adapted game side code.
2023-08-19 19:41:40 +02:00
Christoph Oelckers
32ede813e9
- new files for backend update.
2023-08-19 18:17:17 +02:00
Christoph Oelckers
2095a2120c
- consolidated the 4 ReadSound functions.
2023-08-19 18:11:19 +02:00
Christoph Oelckers
3c695a5abd
- adapted to backend changes.
2023-08-19 18:08:27 +02:00
Christoph Oelckers
76e77d4e64
- Duke: fix enemy counting
2023-08-06 09:59:33 +02:00
Christoph Oelckers
c19653262e
- Duke: fix management of killit_flag.
...
This cannot be in the actor because event scripts can be called without a valid actor.
It is now part of the parse state, but execute allows returning it to the caller, which is needed in one place.
2023-07-22 10:24:20 +02:00
Christoph Oelckers
ce34ef2921
- Duke: fixed skill filter handling for CON defined enemies.
2023-07-17 00:32:27 +02:00
Christoph Oelckers
c4cb44f5f0
- RR: thunder may only be triggered when the player sees a sector with an activating texture as sky.
2023-06-19 20:45:16 +02:00
Christoph Oelckers
5bbcb82ef2
- unlimited the number of sectors to have window lightning.
2023-06-19 20:34:04 +02:00
Christoph Oelckers
af4189c2a1
- RR: fixed shotgun HUD placement
...
This original code is technically dead wrong - it just works by happenstance.
2023-05-30 18:26:05 +02:00
Christoph Oelckers
f8de8eb7a3
- Duke: fixed bad range check in tripbomb drawer.
2023-05-30 17:18:31 +02:00
Christoph Oelckers
517b77bfdc
- RR: spawn the correct player class.
2023-05-30 00:11:49 +02:00
Christoph Oelckers
213bdbadad
- allocate VMFunction's PrintableName from the ClassDataAllocator arena.
...
This avoids execution order issues on shutdown. VMFunction should not use FString.
2023-05-27 22:40:47 +02:00
Christoph Oelckers
5dfb0c902a
- consolidation of sound init code.
2023-05-27 09:12:51 +02:00
Christoph Oelckers
92f2503160
- did a bit of optimization on sfxinfo_t.
...
Using two bytes of alignment gap to add a userval variable.
2023-05-27 09:03:10 +02:00
Christoph Oelckers
de6b5fec7b
- got rid of some 'picnum's that don't reference spritetype.
2023-05-20 10:59:03 +02:00
Christoph Oelckers
5999cb8218
- fix savegame size of temp_data
2023-05-20 10:00:29 +02:00
Christoph Oelckers
43bc6edba3
- print errors in red.
2023-05-20 09:11:14 +02:00
Christoph Oelckers
5ba01bb38d
- fix crash in RR when dying with an item-less weapon.
2023-05-20 07:19:35 +02:00
Christoph Oelckers
a8e03723ef
- NOSHADOW flag.
2023-05-19 23:03:20 +02:00
Christoph Oelckers
b993f05c8f
- fixed missing handling for BADGUYSTAYPUT flag.
2023-05-19 23:00:27 +02:00
Christoph Oelckers
11ba136df1
- make autosaving happen immediately for other games than Blood only.
...
Blood does not like it, but for the others it should be ok.
2023-05-19 22:59:47 +02:00
Christoph Oelckers
513de38723
- pass the spawner to Initialize as an explicit parameter.
...
Using ownerActor is not robust, for some actors this will have unwanted side effects.
2023-05-19 22:57:26 +02:00
Christoph Oelckers
22415d0d22
- Duke: for camera textures, set display_mirror
to 2, not 1.
...
This avoids actually mirroring the sprites while otherwise retaining the effects on player visibility. Although a value of 1 was working previously it was merely by happenstance, not by design.
Also remove two redundant local copies of display_mirror in Blood and SW.
2023-05-19 22:53:17 +02:00
Christoph Oelckers
6e060c2e83
Revert "- Tidy up autosaving for all the games."
...
This reverts commit 10445635cf
.
Contrary to what the reverted commit states, it is absolutely essential to have this delay. Duke and Blood initialize a lot of things in their first tick that are necessary before the world is stable to save.
2023-05-19 22:53:17 +02:00
Christoph Oelckers
cf349fbd7d
- Duke: clear resource ID when setting up the original sounds for World Tour.
...
This made them unconditionally override the replacements - bad as they are.
2023-05-19 22:53:16 +02: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
Christoph Oelckers
94a80dda11
- initialize the angle of script spawned actors.
2023-05-19 22:52:00 +02:00
Christoph Oelckers
e8a3e2ee53
- fixed sprite rotation in mirrors.
2023-05-19 22:51:45 +02:00
Christoph Oelckers
aee26c2637
- reset counter in SetMove
2023-05-19 22:50:02 +02:00
Christoph Oelckers
8aaa8b4113
- use the native implementation for Duke.rnd.
...
This ensures that results are consistent.
2023-05-19 22:46:43 +02:00
Christoph Oelckers
7bb678bb7e
- fixed 'move' property handler to properly store its z value.
2023-04-30 13:33:05 +02:00
Christoph Oelckers
b07a43a9db
- Duke: fixed ChangeType to also change the actor's base pic.
2023-04-30 13:33:05 +02:00
alexey.lysiuk
a69d904192
- fix GCC/Clang compilation error
...
source/games/duke/src/types.h:178:14: error: exception specification of overriding function is more lax than base version
2023-04-30 13:14:45 +03:00
Christoph Oelckers
ecfa45c3ec
- Duke: fixed animation lookup code.
2023-04-30 10:51:48 +02:00
Christoph Oelckers
b55d39e58d
- fixed invocation of RunState.
2023-04-30 10:51:48 +02:00
Christoph Oelckers
83c401574c
- remove debug check
2023-04-30 10:51:48 +02:00
Christoph Oelckers
4010fc1aa7
- Duke: init the animation arrays early.
...
app_init is too late for having the data set up during script compilation.
2023-04-30 10:51:48 +02:00
Christoph Oelckers
96b0542cd8
- flag all actors that override RunState.
...
This is for allowing quick checks of actors which need the special consideration.
2023-04-30 09:01:28 +02:00
Christoph Oelckers
2a38e83a2f
- moved the animation code out of execute so it can be used without CON.
2023-04-30 08:57:28 +02:00
Christoph Oelckers
29322777dd
- adapt the animation init code for CON replaced actors and consolidated the two cases.
2023-04-30 08:46:51 +02:00
Christoph Oelckers
21a37d2c07
- added helpers needed to run CON replacement code.
...
* killit must exit to the top level right away. Use an exception for this.
* two new flags to make checking easier.
* do not export killit_flag to scripting.
2023-04-30 08:11:30 +02:00
Christoph Oelckers
960e58cdf2
- move the action default propeerties into FActorInfo
2023-04-30 08:07:10 +02:00
Christoph Oelckers
9d43729e8c
get rid of the killit_flag in the parse state.
...
Use the one in the actor instead.
2023-04-30 08:04:56 +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
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
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
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
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
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
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
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
Christoph Oelckers
0249725ed8
- got rid of all TILE_* globals, except TILE_CROSSHAIR.
2023-04-23 09:42:28 +02:00
Christoph Oelckers
b78d268ef2
- clean up the lotsofstuff calls by correcting the class pointers on game load.
2023-04-23 09:42:27 +02:00
Christoph Oelckers
1b64b207bb
- consolidated movesprite_ex functions.
2023-04-23 09:42:27 +02:00
Christoph Oelckers
46f7e38e46
- cleaned up movesprite_ex.
...
This needed 5 actor flags to handle some really inane special cases!
2023-04-23 09:42:27 +02:00
Christoph Oelckers
542083af30
- merged both hitradius variants, now that all the critical differences are properly handled by actor flags.
2023-04-22 12:08:47 +02:00
Christoph Oelckers
927d014cea
- final cleanup on hitradius.
...
Several dead code paths were also removed that are unable to be triggered by any event in the game - due to the spaghetti-style checks this hadn't been obvious before.
Also one more flag that handles the WT flamethrower's special case of not hurting any actors of the shooter's kind in a more generalized form
2023-04-22 12:08:47 +02:00
Christoph Oelckers
ac430e6bc7
- another flag and the second old one renamed.
2023-04-22 12:08:47 +02:00
Christoph Oelckers
9ddb5987cd
- two new flags and one renamed one for hitradius.
...
slowly getting closer to sorting this one out. The new flags already make operation a lot clearer.
2023-04-22 12:08:47 +02:00
Christoph Oelckers
19f4e4ff63
- added a new flag and split out the geometry destruction part from the hitradius functions
...
... which suddenly look a lot less menacing...
2023-04-22 12:08:47 +02:00
Christoph Oelckers
53e92097ac
- converted weaponsandammosprites into a class pointer array and fixed RR's bogus content.
...
It's a Duke only feature. RR can use it but would have spawned some non-functional items.
2023-04-22 12:08:47 +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
36d5ab74bb
- eliminated lots of direct tile references in spawn() calls.
2023-04-22 12:08:46 +02:00
Mitchell Richters
71d833f9ea
- Make Exhumed's new view tilting features accessible for all games.
2023-04-22 19:34:53 +10:00
Mitchell Richters
bb19997a2c
- Apply pitch/yaw input along-side the key inputs.
...
* Removes a lot of duplicated code.
2023-04-21 21:13:18 +10:00
Christoph Oelckers
07102fbd39
- fixed missing CANNONBALLS texture alias.
2023-04-16 21:47:06 +02:00
Christoph Oelckers
608b4e8e0f
- initialize the new temporary actor properties to something useful.
2023-04-16 17:35:23 +02:00
Christoph Oelckers
5da28bf5ad
- added new CHANF_SINGULAR flag plus a handler for CHANF_LOCAL in Duke.
2023-04-16 17:35:22 +02:00
Christoph Oelckers
a3da3a4c43
- added a large bunch of script exports.
2023-04-16 17:35:15 +02:00
Christoph Oelckers
5f68291f69
- added skeleton definitions for all new Nuclear Winter items and their base tiles.
2023-04-16 16:53:53 +02:00
Christoph Oelckers
ea96c66a93
- made some annotations in concmd_shoot how to deal with RRRA's merged projectiles.
2023-04-16 16:53:52 +02:00
Christoph Oelckers
712ed44e94
- use names instead of strings with FindActor.
2023-04-16 16:53:52 +02:00
Christoph Oelckers
cb8137c32b
- consolidated shoot_d and shoot_r.
2023-04-16 16:53:52 +02:00
Christoph Oelckers
ef412c20cc
- scriptified shootrpg.
...
Due to its ugly special cases this function is most likely not modding-safe.
2023-04-16 16:53:52 +02:00
Christoph Oelckers
3d09be118a
- scriptified the freezeblast shooter.
2023-04-16 16:53:52 +02:00
Christoph Oelckers
e97fc54179
- scriptified shootstuff.
2023-04-16 16:53:52 +02:00
Christoph Oelckers
9085157130
- scriptified shootwhip.
2023-04-16 16:53:51 +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
1f5cd93564
- wall flag interface cleanup.
...
With wall textures now available the workarounds could be removed.
2023-04-16 16:53:51 +02:00
Christoph Oelckers
041d5214a4
- two new flags for the hitscan attack.
2023-04-16 16:53:51 +02:00
Christoph Oelckers
0643ab22c0
- scriptified the melee attack.
2023-04-16 16:53:51 +02:00
Christoph Oelckers
1d887755a5
- scriptified shootfireball.
2023-04-16 16:53:50 +02:00
Christoph Oelckers
76b9314f63
- scriptified shootMortar.
2023-04-16 16:53:50 +02:00
Christoph Oelckers
48f7690756
- scriptified tripbomb 'shooting'.
2023-04-16 16:53:50 +02:00
Christoph Oelckers
1462cb5e9d
- refactored some of WW2GI's gamewar stuff so that it is accessible to ZScript as well.
...
The features here are useful, the way they were handled not so much. What is there now can also be set from proper definition files instead of CON hacks.
2023-04-16 16:53:50 +02:00
Christoph Oelckers
1597cf5400
- exported the grower's shoot function and moved stuff to a separate file.
2023-04-16 11:49:47 +02:00
Christoph Oelckers
71a005fda6
- added a few 'const'.
2023-04-16 11:47:56 +02:00
Christoph Oelckers
77d14ec721
- scriptified shootshrinker and moved all shrinker code to a separate file.
2023-04-16 11:47:56 +02:00
Christoph Oelckers
e15517cf57
- fixed some issues with projectile ownership.
...
Some init code was run here that should not be run. Added a new flag to handle this case without major code explosion.
2023-04-16 07:54:26 +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
17cde1e3ca
- Duke: fixed bad init of hitag in initspriteforspawn
2023-04-15 19:53:04 +02:00
Christoph Oelckers
0a91a9a199
- route checkhitsprite fully through the virtual interface so that the player class can finally be exported.
2023-04-12 22:02:01 +02:00
Christoph Oelckers
60af1b4c62
- renamed temp_data[0] to 'counter' and map temp_data[5] to the now free temp_data[0].
...
This not only matches its use in CON but seems to be used as a counter in most other places as well.
The main reason is to improve readability of CON to ZScript conversions.
2023-04-12 21:54:33 +02:00
Christoph Oelckers
8bd88b8678
- migrate all script related info to the data stored in the actor classes.
...
This also needs cactor to really change the class descriptor now so that the correct script code is found.
2023-04-12 21:54:20 +02:00
Christoph Oelckers
c418356420
- added the action, move and ai properties.
2023-04-12 21:52:56 +02:00
Christoph Oelckers
947d427a9d
- merged tileinfo and actorinfo.
2023-04-12 21:52:28 +02:00
Christoph Oelckers
ebf7b4a121
- copy the CON defined info into the actual actors.
...
Only using the strength value right now.
2023-04-12 20:29:37 +02:00
Christoph Oelckers
a155a09f9f
- deleted the setflag inlines.
2023-04-12 20:07:12 +02:00
Christoph Oelckers
62ace9371f
- moved the 3 actor properties out of the global data.
2023-04-12 20:07:12 +02:00
Christoph Oelckers
cc8495c31e
- got rid of the g_t pointer in the CON interpreter.
...
Using g_ac->temp_data now.
2023-04-12 20:07:12 +02:00
Christoph Oelckers
f0637cfc83
- moved actioncounter and curframe to a dedicated variable.
...
The third generic counter is not as easy to fix as its use is far more widespread
2023-04-12 20:07:12 +02:00
Christoph Oelckers
4b096f4f3e
- nulling contents of a freshly spawned actor is not necessary.
...
All objects are zero inited.
2023-04-12 20:07:11 +02:00
Christoph Oelckers
14dd9c3711
- refactored AI storage as well to not use ScriptCode anymore.
2023-04-12 20:07:11 +02:00
Christoph Oelckers
b9702fbb66
- moved 'move' data out of the ScriptCode array as well.
2023-04-12 20:07:11 +02:00
Christoph Oelckers
30ccbe2710
- moved actions out of the ScriptCode array and gave them a dedicated struct with meaningful member names.
2023-04-12 20:07:11 +02:00
Christoph Oelckers
94b676bd7c
- wrapped access to the current 'move' values read from CON.
2023-04-12 20:07:11 +02:00
Christoph Oelckers
c76c511da2
- moved sprite animation code out of 'execute'.
2023-04-12 20:07:10 +02:00
Christoph Oelckers
0c17a369db
- Duke: changed skill filter to be solely controlled by the spawnclasses definitions.
...
All classes with no skill filter now need an explicit noskill declaration.
The only exception is inert sprites using DukeActor directly, these will never get filtered by skill.
2023-04-12 20:06:25 +02:00
Christoph Oelckers
53e41bd3b3
- Duke: added missing texture alias for the cannon.
2023-04-11 20:23:34 +02:00
Christoph Oelckers
660227e175
- Duke: restrict skill filter to those actors which originally handled it.
...
For flexibility there now is a flag that can be set on any actor class, but due to precedent it needs to be off by default.
2023-04-11 20:14:02 +02:00
Christoph Oelckers
ee61daed97
- reinstate code from e2db4a8
that got removed by a badly resolved merge conflict in ae4ef64
.
2023-04-10 16:48:08 +02:00
Christoph Oelckers
2f61a44329
- Duke: do not clear the KILLCOUNT flag.
...
This seems to have gotten back by accident.
2023-04-10 16:41:58 +02:00
Christoph Oelckers
1d79d0cee3
- Duke: fixed pitch calculation for explosion sounds.
...
This part was missed when the backend's pitch management was changed to floats instead of Q1.7 fixed point numbers.
2023-04-10 09:13:33 +02:00