Commit graph

1242 commits

Author SHA1 Message Date
NepDisk
1dda8c1b6d Actual fix making the game properly record and see ghosts in menu and game
It also adds a new little thing to the name to show what gamemode its in!
2024-12-25 21:36:52 -05:00
NepDisk
cf313e1673 Fix erronous use of ML_BLOCKPLAYERS in P_Setup.c 2024-12-20 13:40:16 -05:00
NepDisk
eac15b8542 Display gamespeed regardless of gamemode and make itembreaker uses normal speed
Since battle speed is a thing now, this makes sense
2024-12-19 12:36:25 -05:00
NepDisk
f996d869db misc fixes
Fix time limit, disable mobjscramble, fix paranoia compile, clean up refernces code, fix driftdust negative refernces
2024-12-17 23:53:51 -05:00
NepDisk
7bdf9633bc Remove emeralds from battle 2024-12-17 10:13:09 -05:00
NepDisk
e1720e7b3a Remove overtime stuff 2024-12-17 00:47:36 -05:00
NepDisk
4b1324da69 Remove Battle capsule stuff and turn it into Item Breaker
You have to smash every itembox in a map as fast as you can. When you mash you get a pogospring and waiting gives a sneaker
2024-12-17 00:24:20 -05:00
NepDisk
5abf1ad017 Revert "Make UDMF scale compatible with ZDoom's spec"
This reverts commit 437d728ec9.
2024-11-18 11:38:08 -05:00
toaster
4d133ca377 P_GetNodeType: Do not dereference invalid pointer for **nodedata parameter 2024-11-18 10:28:10 -05:00
NepDisk
36f28e599e Support cheatcheckactivator for RR support 2024-11-18 10:12:13 -05:00
Sal
437d728ec9 Make UDMF scale compatible with ZDoom's spec 2024-11-18 09:55:13 -05:00
NepDisk
049c182288 Massive warning clean up 2024-10-23 00:01:03 -04:00
NepDisk
cf9f6fc570 Merge branch 'v2dev3' into ACS2 2024-10-21 17:30:55 -04:00
NepDisk
3c4e47d6a9 Support kart binary setup for zoomtubes 2024-10-21 17:22:06 -04:00
NepDisk
509fda70d5 Revert P_InitThinkers: Centralise/tidy global mobj pointer handling
This reverts commit 19da924b5e.
2024-10-21 15:54:21 -04:00
NepDisk
19da924b5e P_InitThinkers: Centralise/tidy global mobj pointer handling 2024-10-18 13:22:50 -04:00
Oni
313846cb60 Merge branch 'make-way-bots' into 'master'
Kick CPU players to make room for human players that are waiting to play

See merge request KartKrew/Kart!2259
2024-10-18 04:47:12 -04:00
James R
c379a2c982 Clean up instances of malloc replay file path
- Fix allocating only enough for "MAPXX".
- Fix memory leak in M_StartTimeAttack.
- Use va instead of malloc + sprintf, strdup where needed.
Some of these pass gpath to va anyway so that should be
enough room.
2024-10-18 04:02:50 -04:00
NepDisk
dc03b6c459 re-add marathon mode here 2024-10-17 19:48:37 -04:00
NepDisk
3117c5b6b4 Add this back here 2024-10-17 19:21:52 -04:00
NepDisk
2ef009fd2e move a few more things to post load 2024-10-17 18:38:57 -04:00
NepDisk
439534c340 Implement ACS_RunPlayerEnterScript fix and P_PostLoadLevel 2024-10-17 18:31:42 -04:00
NepDisk
fd0d659070 Fix crash 2024-10-16 19:18:01 -04:00
Sally Coolatta
34c4a207c7 Separate script args from mapthing args
SRB2 uses a LOT of mapthing args compared to Hexen (which has none) and ZDoom (which only has them on objects that will never ever activate scripts). So we really badly needed to separate the two if we want attaching scripts to things to be useful.
2024-10-16 13:19:31 -04:00
NepDisk
b5c21c8d88 Read-only mapthing_t 2024-10-16 13:11:13 -04:00
toaster
5f43f1c2cd ACS: Invalidate mapscope before PU_LEVEL purge occours
Fixes the MapWarp memory corruption conclusively.
2024-10-15 22:12:51 -04:00
Sally Coolatta
d29e3f2f6f Implement thing special
Executes when an object is killed.
2024-10-15 21:57:27 -04:00
NepDisk
af277ad1d9 Split G_ExitLevel into G_BeginLevelExit and G_FinishExitLevel 2024-10-15 16:19:50 -04:00
Sally Coolatta
6c026f59cb ACS: User properties can tell bool from string 2024-10-15 15:34:23 -04:00
Sally Coolatta
89a03a85f3 ACS: UDMF user properties
Lines, sides, sectors, and things now all support the "Custom" tab properly. Label a property as `user_[whatever you want]` in this tab, and it will be added to the structure. ACS will then be able to retrieve it using the `Get[x]UserProperty()` function.
2024-10-15 15:33:16 -04:00
Sally Coolatta
7aac06b96e Add equivalent of "Each Time" triggers for ACS 2024-10-15 15:25:06 -04:00
Sally Coolatta
1f6574e9a3 Copy first mapthing tag to their mobjs
Allows the ThingCount and ThingSound ACS functions to fully work now, and adds significantly more possibilities for scripting later.
2024-10-15 15:13:50 -04:00
Sally Coolatta
63ca246a2a Fix ACS specials not working in binary maps
Didn't copy over the text field.
2024-10-15 13:35:32 -04:00
Sally Coolatta
20b68e4a0f Copy text to stringarg[0] for ACS linedefs
Allows them to be used in Zone Builder binary maps
2024-10-15 13:35:14 -04:00
Sally Coolatta
e23180283a Contain end & size into savebuffer_t
I would've liked to make it use a single allocate function to do this very cleanly, but these cases were very clearly not meant to be standardized and use wildly different methods to allocate & free...
2024-10-15 07:48:51 -04:00
Sally Coolatta
07cdd2f461 Make save_p / savebuffers not global
This caused some scary issues with P_SaveNetGame the other day, and it's making ACS net sync harder. Let's just cut this off right now.

Also fixed some scary mix-ups in some of the Lua archiving code.
2024-10-15 06:41:25 -04:00
Sally Coolatta
8637dc3ce3 Fully port the ACS integration to C++ and make it build 2024-10-15 06:01:14 -04:00
NepDisk
ae739b9ef1 Merge branch 'CPP' into ACS2 2024-10-15 04:25:57 -04:00
James R
9e801c66d5 Merge branch 'universal-typedef' into 'master'
Move all typedef into one file

See merge request KartKrew/Kart!791
2024-10-15 04:16:58 -04:00
NepDisk
e0149fea3a revert fades 2024-10-14 17:54:47 -04:00
Sally Coolatta
89a5ea4a21 Keep track of script activators
Can supply the activating object, line, line side, polyobject, and (added for SRB2) sector.
2024-10-10 01:43:33 -04:00
Sally Coolatta
629b0aa77a ACS basic implementation
- BEHAVIOR lumps successfully load & run from maps. Currently they do not get unloaded between maps, though.
- Print and Timer are the only implemented CallFuncs. All of the base language functions (Delay, etc) are already implemented by the VM though.
- ACS compiler files are included, for use with GDCC. (Picked instead of ACC because it's less ZDoom-centric)
- Additionally, also added the configs for Zone Builder to be able to compile it in editor. Syntax highlighting is very incomplete atm.
2024-10-10 01:41:24 -04:00
NepDisk
f4ce1a8f78 Add support for record attack and encore load linedef effects 2024-10-09 20:20:22 -04:00
NepDisk
d674634875 Implement UDMF versioning system and add support for srb2kart namespace 2024-10-04 13:21:07 -04:00
NepDisk
80a40bf91f Make Terrain loading the same as other texture related things such as brightmaps 2024-09-19 21:44:34 -04:00
NepDisk
93c8a62c99 Add K_TerrainInit to partload instead, Exitlevel on Terrain definition load to prevent issues 2024-09-19 19:23:18 -04:00
NepDisk
0d7e9fc691 Fix balloon coloring 2024-09-13 22:49:39 -04:00
Sally Coolatta
55a8643dd3 Put tm* variables into a struct
This makes it significantly easier to save/restore the state of these variables, whenever we need to do so for calling movement functions in the middle of other movement functions. This will also make it easier to move it out of global variable hell if desired later.
2024-09-13 11:29:30 -04:00
Oni
4c994de722 Merge branch 'loops' into 'master'
Sonic Loops

See merge request KartKrew/Kart!991
2024-09-12 12:10:40 -04:00
toaster
6927191a24 Merge branch 'loops-prep' into 'master'
Prep for Sonic Loops

See merge request KartKrew/Kart!990
2024-09-12 11:48:08 -04:00