Commit graph

1199 commits

Author SHA1 Message Date
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
NepDisk
1085c6ceb0 Implement blan folder and reimplement walltransfer
Wall transfering can now be used by enabling cvar BG_forcewalltransfer or putting WALLTRANSFER into your map header
2024-09-10 22:36:45 -04:00
NepDisk
6df955cdc3 Revert Track skybox within player struct
This was done to make lua scripts that change the skybox work again!

This reverts commit 196dc77e6faafe41203ef132580c3178ad4562de.
2024-09-10 14:43:00 -04:00
Wumbo
79504ab833 Make ML_BLOCKPLAYERS block players in UDMF maps only 2024-09-07 17:30:11 -04:00
AJ Martinez
8b66878ab5 Opaque tripwire on subtractnum maps 2024-09-07 15:36:28 -04:00
Sally Coolatta
607c5c5dae SubtractNum also makes tripwire subtractive 2024-09-07 15:36:20 -04:00
NepDisk
272535fa17 readd back these accidently removed lines and fix crash 2024-09-07 14:46:18 -04:00
Oni
8012a21070 Merge branch 'alt-music' into 'master'
Alt Music

See merge request KartKrew/Kart!915
2024-09-07 13:57:13 -04:00
NepDisk
9a9012b338 Fix Vertex Slope Things
Thanks Wumbo!
2024-09-07 01:42:31 -04:00
Oni
110c9e2dc7 Merge branch 'musicdef-update' into 'master'
First Musicdef changes in preparation for music test

See merge request KartKrew/Kart!812
2024-09-07 00:14:41 -04:00
NepDisk
973760e60d opengl directional lighting and gl brightmaps 2024-09-05 22:17:22 -04:00
Oni
089fd65f37 Merge branch 'encore-directional-lighting' into 'master'
Add encore variants of LightContrast, LightAngle and SpriteBacklight to level header

Closes #593

See merge request KartKrew/Kart!1388
2024-09-05 15:51:01 -04:00
James R
b9c3a7e852 Add MSF_DIRECTIONLIGHTING, forces directional lighting on, even indoors
UDMF flag: forcedirectionallighting
2024-09-05 15:34:14 -04:00
James R
4a2dac8b02 Automatically disable directional lighting if the sector has no sky 2024-09-05 15:34:07 -04:00
Sal
0d70d4da5b Merge branch 'directional-lighting-flag' into 'master'
Directional lighting flag

See merge request KartKrew/Kart!1356
2024-09-05 15:33:48 -04:00
James R
99c05156f6 Sprite directional lighting, add SpriteBacklight option to level header
- Sprites have directional lighting, like walls
- For normal sprites: contrast is much stronger than walls
- Papersprites look the same as walls

- SpriteBacklight option in level header weakens the contrast for sprites only
  - SpriteBacklight subtracts from LightContrast
  - E.g. SpriteBacklight = 0 would let it match LightContrast
  - E.g. SpriteBacklight = 60 would make the contrast much weaker
  - Negative values make the contrast stronger
2024-09-05 15:18:50 -04:00
NepDisk
355b20c9d5 Add foflayer field to UDMF things, spawn offset from a specific FOF in the thing's sector
Merge by James R. Port to C done by Indev!
2024-09-04 17:16:15 -04:00
NepDisk
878391906f Allow waypoints and boss3 to work t the same time 2024-09-04 12:51:21 -04:00
Sal
f54ba922a9 Merge branch 'fix-reset-interpolation' into 'master'
P_Ticker: update view interpolation at the start of a tic

See merge request KartKrew/Kart!1192
2024-09-04 01:05:12 -04:00
NepDisk
3ca138159f Render tripwrite at brightness of fracunit 2024-09-03 22:54:10 -04:00
NepDisk
91e88690e4 Revert "Stuff for Ivo's texture crunching"
This reverts commit 60f65f3998.
2024-09-03 18:38:54 -04:00
Sally Coolatta
60f65f3998 Stuff for Ivo's texture crunching
- Flats no longer get applied entirely, they are FULLY DEPRECATED NOW
- Uses AASMELLY instead of REDWALL for missing textures
2024-09-03 18:38:00 -04:00
James R
ac7ed30a4c Merge branch 'fix-499' into 'master'
Fix linedef type 499 binary->UDMF conversion

See merge request KartKrew/Kart!787
2024-09-03 17:38:04 -04:00
toaster
bde5121408 Repair Linedef types 403 and 404
- P_ProcessSpecial: Correct likely copypaste error in desired plane height and texture
    - Was using sector floor's height and texture instead of ceiling's.
- P_ConvertBinaryLinedefTypes:  assign affected plane in a saner way
- Resolves issue #429
2024-09-03 17:37:18 -04:00
Sally Coolatta
12ec3c6b93 Small bird slope improvements
- Bird slopes can be made from UDMF sectors
- Group is now argument 3 on the line/sector action and argument 1 on the anchor, instead of using tags.
- The terminology no longer swaps between "tag" and "paramater" -- it's just called "group" now.
2024-09-03 17:00:10 -04:00
Sally Coolatta
dec51a3b25 Add sector action
Linedef actions, but on sectors. Including args, stringargs, and unique activator flags.
2024-09-03 16:53:54 -04:00
NepDisk
3aab5834fc d5155e3d83411be7e71953e2f8e8fdc52818b36d 2024-09-03 16:39:02 -04:00
Sally Coolatta
5dac959ccc Finish Script Editor tooltips 2024-09-03 16:35:01 -04:00
Sally Coolatta
01ceaf87bf Update executors 402, 408, 439
These now use their first arg as a tag to copy properties from, with 0 falling back to old behavior, so that they can be more useful for ACS.
2024-09-03 16:26:10 -04:00
Sally Coolatta
420e25eba0 Update executors 400, 403, 405, and 429 for ACS 2024-09-03 15:27:17 -04:00
NepDisk
7af4076320 Fix args reading 2024-09-03 14:25:00 -04:00
NepDisk
02189eb55f Make UDMF scale compatible with ZDoom's spec
eb72019426
2024-09-02 22:05:05 -04:00
James R
200bd6c8e4 M_TokenizerOpen: pass size in as argument instead of calling strlen implicitly
This function is used for parsing TEXTMAP and the data is
not NUL-terminated.
2024-09-02 21:53:34 -04:00
Sally Coolatta
f06a17c467 Fix TextmapUnfixFlatOffsets
It had the right idea, it just literally did it wrong :P
2024-09-02 21:51:56 -04:00
toaster
e9e20b6652 ParseTextmapThingParameter: Tidier, more explicit guarantees for null-terminated stringarg handling 2024-09-02 21:49:44 -04:00
James R
83068074ae UDMF: add foflayer field to things TEXTMAP 2024-09-02 21:49:06 -04:00
NepDisk
ea5dfb0d87 Revert "Add activation flags to -writetextmap"
This reverts commit 87cb9f1170.
2024-09-02 21:47:00 -04:00
toaster
04566c358f Add ML_BLOCKMONSTERS to P_WriteTextmap 2024-09-02 21:26:39 -04:00
Sally Coolatta
87cb9f1170 Add activation flags to -writetextmap 2024-09-02 21:24:23 -04:00
MascaraSnake
e3042ce4c0 Fix size_t compiler warnings in P_WriteTextmap 2024-09-02 21:21:15 -04:00
James R
d3053c2bb0 writetextmap: save waypoints correctly, account for risers and anchors 2024-09-02 21:18:44 -04:00
James R
32fb3a3200 Split apart some of P_WriteTextmap 2024-09-02 21:14:58 -04:00
NepDisk
d7fc57a119 Fix up some stuff in P_ConvertBinaryThingTypes 2024-09-02 20:38:07 -04:00
James R
049c03456a Refactor player waypoint code
- Condense K_GetPlayerNextWaypoint and
  K_UpdateDistanceFromFinishLine into slightly smaller
  functions
- Rename K_GetPlayerNextWaypoint to
  K_SetPlayerNextWaypoint
- Add K_UpdatePlayerWaypoints
2024-09-02 07:08:44 -04:00