Commit graph

20,822 commits

Author SHA1 Message Date
Boondorl
7cac623ecb Fix SMF_PRECISE flag for seekers
Use the player's actual eye position when calculating.
2025-06-18 14:47:43 -03:00
Boondorl
885c1d2920 Update to latest ZWidget version
This adds new features (such as themes) alongside fixing numerous bugs. This should be kept up-to-date with upstream more often and changes to it should be PR'd back to its main repo.
2025-06-18 14:47:03 -03:00
Ricardo Luís Vaz Silva
f4eebd1ced CallVM API, plus multi-return and vector support 2025-06-18 03:52:23 -03:00
Ricardo Luís Vaz Silva
7dfb5ff70a fix unsigned comparison in keysections.cpp 2025-06-18 03:52:23 -03:00
Boondorl
8071fd1368 Scriptified ReactToDamage
Allows pain handling to be overridden without needing to override the entirety of DamageMobj.
2025-06-18 01:51:57 -03:00
Boondorl
e0baf7a85c Added OnRevive virtual
Called when a monster is resurrected (allows resetting properties without needing an event handler).
2025-06-16 14:46:17 -03:00
Kevin Caccamo
ba050c112e Remove useless if statement
If conf is at eof, linePos and command.Size() will be 0, and the other statements will not run due to eof checks and pointer checks
2025-06-16 14:45:59 -03:00
Kevin Caccamo
0835fe0eab Fix code style
Make code style consistent with the rest of the code
2025-06-16 14:45:59 -03:00
Kevin Caccamo
9a2fd53f1d Remove dereferences of comment + 1
If a line ends with a single slash, then you'll get an invalid read
2025-06-16 14:45:59 -03:00
Kevin Caccamo
f9536ec918 Fix some things I overlooked
Remove some useless lines of code which may cause a read error
Fix the casing of linepos variable
2025-06-16 14:45:59 -03:00
Kevin Caccamo
6f1422aec5 Attempt to fix KEYCONF reader memory issues
Fix Windows-style line-ending assumptions
Make inQuote a bool, since that's how it's used
Make pointer usage smarter
Add more eof checks, since ASan builds will crash without them
Use a better name than 'i'
Properly truncate ini names of key sections
2025-06-16 14:45:59 -03:00
Boondorl
1e281bfce2 Added player iterators
Allows for easily iterating through players currently in the game.
2025-06-16 14:42:15 -03:00
Boondorl
e981064e5c Fixed BT_RUN getting toggled off on command clear
This doesn't get delta'd when networking so its state has to be kept between wipes since it's built entirely from client data.
2025-06-14 14:04:44 -03:00
Boondorl
989a355f80 Moved BobTimer to playerinfo
This was a bit too invasive for mods that used full PlayerThink overrides.
2025-06-14 14:04:11 -03:00
Boondorl
4e71ec9d46 Fixed camera interpolating when using outdated information
If it's been more than a tick since the last render then disable interpolation as the data for the Actor at this point is likely too outdated. Also fixes quaking while the console and menu are open.
2025-06-14 14:03:40 -03:00
Boondorl
c6825a9881 Added ViewModelFOV field for models
Allows manually setting FOV for models instead of scaling from 90 degrees. Positive values are exact FOVs while negative FOVs are scalars from 90. SCALEWEAPONFOV does not work with exact values since it automatically scales based on FOV.
2025-06-13 14:04:08 -03:00
Magnus Norddahl
7f06d3d222 Fix stale pointers when the mesh arrays get resized 2025-06-13 15:21:50 +02:00
nashmuhandes
8def045ab8 Rename this to make more sense 2025-06-13 12:59:32 +08:00
nashmuhandes
a39c84a77a Define the shadow casting style on an Actor using a property. Currently only for lightmaps. 2025-06-13 12:57:02 +08:00
nashmuhandes
033ea084a6 Lightmap parsing update 2025-06-12 19:28:23 -03:00
nashmuhandes
814ef6370e Add missing namespace checks 2025-06-13 03:52:36 +08:00
Boondorl
e435a4ef64 Fixed player assignments when loading multiple players 2025-06-12 11:27:57 -04:00
Magnus Norddahl
ad4a923cc9 Remove the mesh limits and resize the GPU buffers as needed 2025-06-11 23:13:07 +02:00
Magnus Norddahl
03d0177fc9 Oops, wrong value suggested for vk_amd_driver_check 2025-06-11 18:46:48 +02:00
Magnus Norddahl
772b4629e1 Put the AMD driver check behind a CVAR 2025-06-11 18:40:01 +02:00
nashmuhandes
c40a36ea7c Allow lm_dynamic to be able to set level-wide in ZDRayInfo 2025-06-12 00:23:36 +08:00
Ricardo Luís Vaz Silva
d55409645f iterate over non-thinking statnums for static models 2025-06-11 22:46:31 +08:00
Marcus Minhorst
11809748a1 Fixed outdated example in config file
Config file said to use 'doom.doom2.Autoload' and 'doom.doom2.commercial.Autoload',
which do not seem to work anymore. Replaced with 'doom.id.doom2.Autoload' and
'doom.id.doom2.commercial.Autoload', respectively.
2025-06-11 01:26:59 -04:00
nashmuhandes
ec9e5db3e3 Enable lightmapped models by default, but keep CVar-gating as a debugging option 2025-06-11 13:18:49 +08:00
Ricardo Luís Vaz Silva
d42ebe9760 limit levelmesh models to StaticMapModel class 2025-06-11 03:55:34 +02:00
Magnus Norddahl
3f1dcce970 Bake models into the level mesh 2025-06-11 03:38:40 +02:00
Magnus Norddahl
cfe282f4bd Model rendering to mesh builder 2025-06-10 20:32:27 +02:00
Ricardo Luís Vaz Silva
a8eed72b38 wrong comparison sign 🤦‍♀️ 2025-06-09 17:35:20 -03:00
Marcus Minhorst
481848b3c5 Now with TDeletingArray 2025-06-09 16:37:52 -03:00
Marcus Minhorst
abfe5601c7 Check for SDL_JOYDEVICEADDED and SDL_JOYDEVICEREMOVED 2025-06-09 16:37:52 -03:00
Boondorl
bfefd2363e Stop HUD messages from ticking when game is paused
These are often synchronized to the world so should be treated as such.
2025-06-08 11:23:39 -03:00
Ricardo Luís Vaz Silva
0e3682ae24 add proper range to bone getter functions, prevents crash if called between enabling bone getters but before actually calculating bones 2025-06-06 18:05:37 -03:00
DyNaM1Kk
62d258a689 Exported DoubleBindings 2025-06-04 08:48:16 -03:00
Ricardo Luís Vaz Silva
daab336784 make lm_dynlights toggling work 2025-06-01 01:10:42 +02:00
Ricardo Luís Vaz Silva
42e20f248d force allow light updates when lm_dynlights is on 2025-06-01 01:10:42 +02:00
Magnus Norddahl
88c57a6677 Draw decals 2025-06-01 01:06:51 +02:00
Magnus Norddahl
8d10617762 Disable skyhack for level mesh and fix frustum test against skies 2025-05-31 23:57:38 +02:00
Magnus Norddahl
1d635d9a39 Add missing lower and upper 2025-05-31 20:00:29 +02:00
Magnus Norddahl
bda01dec98 Hook up sector portals 2025-05-31 17:45:42 +02:00
dpjudas
6da5f8e83f Add the missing draw list types to LevelMeshDrawType 2025-05-31 04:09:48 +02:00
Magnus Norddahl
2086f8ffa6 Fix culling lines too close to the camera position 2025-05-30 23:27:43 +02:00
Magnus Norddahl
2121047fa2 Cull lines not visible from the camera 2025-05-30 22:20:19 +02:00
Magnus Norddahl
4de06b3175 Turn off the light tiles 2025-05-30 20:43:30 +02:00
Magnus Norddahl
a71c050062 Don't do a copy 2025-05-30 19:50:56 +02:00
Magnus Norddahl
1791167fe5 Draw sorted by pipeline 2025-05-30 18:52:44 +02:00