Commit graph

23548 commits

Author SHA1 Message Date
toaster
25f48fd26f Add ML_BLOCKMONSTERS to P_WriteTextmap 2023-07-15 20:08:53 +01:00
toaster
459e3684ab P_GetNodeType: Do not dereference invalid pointer for **nodedata parameter 2023-07-15 19:18:39 +01:00
toaster
ed8007471f Remove binary-relevant text field from side_t (and line_t)
Instead of storing this during binary-UDMF conversion and then copying it for certain argument fields, put it directly onto stringarg[0] (or [1] if it's the backside), then make relevant changes with those.

Reduces the amount of Zone memory used for binary converted maps, and the amount of struct memory used for all types of maps.

They have also been removed from the Lua API. Fret not, the stringargs on line_t have far more utility.
2023-07-12 18:37:00 +01:00
toaster
b61701a1bc Tidier conversion of string properties to UDMF
Previously, concatenated texture field strings were turned to text, then had that string run through get_number, then had it converted back into a string to become a stringarg.

Now, the concatenated string is copied directly to the relevant stringarg.

This fixes an issue where a map with object or state properties would have "context drift" - breaking when the object or state list changed, due to differently ordered freeslots, or new hardcoded objects.

This is also made consistent and with less repeated code via the addition of multile P_Write functions to replace both P_WriteConstant and multiple copypasted blocks of zone allocation and memcpy.
- P_WriteDuplicateText -- fresh zone memory copy with PU_LEVEL
- P_WriteSkinColor -- converts ID to SKINCOLOR_ name, then runs it through P_WriteDuplicateText
- P_WriteSfx -- converts ID to SFX_ name, then runs it through P_WriteDuplicateText

In order to avoid making p_setup.c dependent on `deh_tables.h`, object type 1202 simply artifically produces the expected range of MT_ROCKCRUMBLE1 to MT_ROCKCRUMBLE16. It was technically possible to produce unexpected effects with extremely high offsets, but if your map was doing something like that, you're intelligent enough to go back and swap the MT_ constant out with your intended goal.
2023-07-12 17:13:38 +01:00
toaster
36e0a23c09 Remove console script support from maps
The linedef's behaviour was broken horribly by long map names, and it's not worth the effort to fix it for the following reasons.
- It was considered a security vulnerability to have free access to the console when it was written.
- The game literally had a cvar to disable running console scripts. That's "I am willingly distributing ActiveX Word Documents in 2023" levels of foolhardery.
- Anything GOOD it can do, both Lua and ACS can do better.
2023-07-12 16:32:23 +01:00
toaster
ba5047459c Remove last remnants of Action 434 ("Custom Power")
Had no behaviour, but was being processed
2023-07-12 16:16:56 +01:00
toaster
c5c78df946 Linedef Action 460 (Award Rings) now supports negative ring counts
UDMF now has a native ring drainer effect.

Also fixes the WriteTextmap warning for the deprecated sector effect, which should have been encouraging you to use this action, not action 462!?
2023-07-12 13:17:09 +01:00
Oni
992840dd0f Merge branch 'faraway-colony-signs' into 'master'
MF_DRAWFROMFARAWAY Lost Colony signs

See merge request KartKrew/Kart!1331
2023-07-12 03:20:06 +00:00
AJ Martinez
df940de4b0 MF_DRAWFROMFARAWAY Lost Colony signs 2023-07-11 20:17:17 -07:00
Oni
5f5ef5f550 Merge branch 'symbol-signs' into 'master'
Lost Colony symbol signs

See merge request KartKrew/Kart!1298
2023-07-12 02:42:42 +00:00
Lach
77750438ef Change symbol thing type to 4094 2023-07-11 21:51:29 +10:00
Lach
4ad383721d Add thing type number & binary conversion to symbol signs 2023-07-11 21:04:06 +10:00
Lach
64511e82c2 Merge remote-tracking branch 'origin/master' into symbol-signs 2023-07-11 20:55:44 +10:00
Oni
6c9ed3a388 Merge branch 'hold-my-input' into 'master'
Improve netplay instability and network timing drift (resolves #573)

Closes #573

See merge request KartKrew/Kart!1326
2023-07-10 21:51:34 +00:00
Eidolon
e78add3a2a Merge branch 'wtf-gcc' into 'master'
Give StaticVec a special iterator type

See merge request KartKrew/Kart!1329
2023-07-09 17:34:02 +00:00
Eidolon
9a149ed35b Give StaticVec a special iterator type
Avoids a bogus warning in std::sort in GCC's STL.
2023-07-09 12:27:00 -05:00
James R
c824654130 Merge branch 'convert-rainbow-rings' into 'master'
P_ConvertBinaryThingTypes: convert Rainbow Dash Rings too

See merge request KartKrew/Kart!1327
2023-07-07 04:36:54 +00:00
James R
b17ae80c15 P_ConvertBinaryThingTypes: convert Rainbow Dash Rings too 2023-07-06 21:15:53 -07:00
AJ Martinez
9ebfc12167 Only use ticmiss input-steering if we didn't use it last tic 2023-07-06 16:04:28 -07:00
AJ Martinez
fe122291bc Buffer double-submitted ticcmds 2023-07-06 01:37:05 -07:00
AJ Martinez
edfd43ce81 Use input steering (not camera steering) on skipped tics 2023-07-03 16:35:52 -07:00
Oni
acfd7ffc55 Merge branch 'hit-stop-efx' into 'master'
Hitlag EFX

See merge request KartKrew/Kart!1218
2023-07-03 12:39:11 +00:00
AJ Martinez
a594e386b6 ReduceVFX MT_HITLAG 2023-07-03 05:33:20 -07:00
VelocitOni
30d21e960a Merge branch 'master' into hit-stop-efx
# Conflicts:
#	src/objects/ufo.c
2023-07-03 06:24:27 -04:00
James R
e94ae5bfef K_BattleAwardHit: evaluate win condition before adding points 2023-07-03 06:20:21 -04:00
James R
7fdfa56451 Show point count next to rank icons HUD in Battle
If the player has reached the point limit, the numbers
dance and flash tangerine (indicating that they are about
to win, after they kill someone).
2023-07-03 06:20:21 -04:00
VelocitOni
89623e3fc9 Battle odds re-do
Cleared out all battle odds and started fresh, now mostly projectiles.
2023-07-03 06:20:21 -04:00
James R
321fa518bd K_RunPaperItemSpawners: always give monitors 3 item types 2023-07-03 06:20:20 -04:00
James R
e65b1531ae Draw MMAPDOT in front of players' facing angles on the minimap 2023-07-03 06:20:20 -04:00
James R
e514b5023f During Overtime: point Servant Hand to Battle Kiosk, stop pointing to UFOs 2023-07-03 06:20:20 -04:00
AJ Martinez
1c633dd9ee Direct players to battle UFOs via Obj_PointPlayersToXY 2023-07-03 06:20:19 -04:00
James R
a98db957e6 WANTED player or Lightning Shield attracts emeralds 2023-07-03 06:20:19 -04:00
James R
4874c90f8d Don't pickup emeralds if in pain state 2023-07-03 06:20:19 -04:00
James R
82cf995e35 Kill Battle UFOs outside of the Overtime Barrier 2023-07-03 06:20:18 -04:00
James R
4d24eb71b6 Battle: scale Overtime Barrier to minimap size 2023-07-03 06:20:18 -04:00
James R
8931c7f570 Always shrink Overtime Barrier in 30 seconds 2023-07-03 06:20:18 -04:00
James R
2eaf17f9d7 K_SpawnOvertimeLaser: only move laser height with player if player goes above the top of the lasers 2023-07-03 06:20:17 -04:00
James R
c1d54f50f5 Give Overtime Lasers infinite draw distance 2023-07-03 06:20:17 -04:00
James R
9c8ce17c1e Don't steal bumpers unless below 3 bumpers or dealing STEAL damage (sneakers) 2023-07-03 06:20:17 -04:00
James R
d34760b7bf Battle: power-up time 20 -> 30 seconds, UFO respawn 25 -> 20 seconds 2023-07-03 06:20:16 -04:00
James R
2f021344d9 Battle: time limit 2 -> 3 minutes 2023-07-03 06:20:16 -04:00
James R
655b5decb5 writetextmap: save waypoints correctly, account for risers and anchors 2023-07-03 06:20:16 -04:00
James R
7def36aaeb Split apart some of P_WriteTextmap 2023-07-03 06:20:16 -04:00
James R
19eae9f95a P_ConvertBinaryThingTypes: convert dash rings (not yet hardcoded) 2023-07-03 06:20:15 -04:00
VelocitOni
b1054f486e Added level 8 hitsparks
Added level 8 hitsparks, 2 more to go. Gonna take MR out of draft though and do the other 2 later.
2023-07-03 06:15:03 -04:00
Oni
cbeebab927 Merge branch 'special-starting-rings' into 'master'
Sealed Star QoL + nerfs

See merge request KartKrew/Kart!1325
2023-07-03 00:46:59 +00:00
AJ Martinez
13b8df8950 Clean up UFO gamespeed calcs 2023-07-02 15:16:54 -07:00
AJ Martinez
2b6da538ac UFO not CBT 2023-07-02 04:28:19 -07:00
AJ Martinez
d9915ca471 Start with 20 rings in Sealed Star 2023-07-02 03:11:11 -07:00
Oni
24752ec059 Merge branch 'gunstar' into 'master'
Add Gunstar sounds

See merge request KartKrew/Kart!1324
2023-07-02 03:34:41 +00:00