Commit graph

22,301 commits

Author SHA1 Message Date
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
nashmuhandes
8be9f700d9 Some fixes for the inventory hotkey localizations 2025-06-13 14:04:00 -03:00
nashmuhandes
2641689216 Expose direct inventory hotkeys for Heretic, Hexen and Strife in the controls menu 2025-06-12 19:29:02 -03:00
nashmuhandes
033ea084a6 Lightmap parsing update 2025-06-12 19:28:23 -03:00
Boondorl
e435a4ef64 Fixed player assignments when loading multiple players 2025-06-12 11:27:57 -04: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
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
Rachael Alexanderson
b062427942
- github is retiring these, if i do this will they stop sending me emails about it? 2025-06-09 14:31:58 -04: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
5e35ebc8fe Added two option menu items for double binds
1. DoubleTapControl: Simply assigns a double-tap key to a command.
2. DoubleControl: Assigns a standard key press to a command and uses the same key to make a double-tap bind to the second specified command.
2025-06-04 08:48:16 -03:00
DyNaM1Kk
62d258a689 Exported DoubleBindings 2025-06-04 08:48:16 -03:00
Boondorl
e7d0991798 Fixed JIT error with Conjugate/Inverse
These need to be compiler intrinsics since faux types aren't supported with self.
2025-05-30 10:58:10 -03:00
Boondorl
486be3a5b6 Clear next and prev list pointers on VTs when destroyed 2025-05-29 15:42:28 -03:00
Rachael Alexanderson
6c42ea7518
- fix pointer mixup in whirlwind DoSpecialDamage() 2025-05-28 01:09:24 -04:00
Ricardo Luís Vaz Silva
4bd373745a fix bad loop condition 2025-05-28 00:25:59 -03:00
Rachael Alexanderson
c2031e0af1
- fix OOB VM abort for scoreboard in teamplay games - fixes #3101 2025-05-27 20:28:11 -04:00
Ricardo Luís Vaz Silva
c0c4b784ca GetBoneEulerAngles 2025-05-26 07:48:01 -03:00
Ricardo Luís Vaz Silva
cffdfa802e up vector for TransformByBone/GetBonePosition 2025-05-26 07:48:01 -03:00
Ricardo Luís Vaz Silva
097c99032c rename GetBone to GetBoneTRS in zscript 2025-05-26 07:48:01 -03:00
Ricardo Luís Vaz Silva
5c74250b73 return rotation with GetBonePosition 2025-05-26 07:48:01 -03:00
Rachael Alexanderson
d7d18c7cc0
- whoops, missed renaming one of the variables in whirlwind.DoSpecialDamage() virtual 2025-05-26 02:06:25 -04:00
Dileep V. Reddy
95164cce51 Exposed some skymist variables to zscript. Created zscript levellocals functions ChangeSkyMist(TextureID skymist, bool usemist = true), SetSkyFog(int density), and SetThickFog(float distance, float multiplier), so people aren't tied to MAPINFO for such things. 2025-05-26 00:27:30 -03:00
Rachael Alexanderson
d357b7956f
- fix ironlich whirlwind blaming the victim for its damage 2025-05-23 14:44:54 -04:00
Boondorl
d3f965e862 Fixed MBF21_GunFlashTo
This needs to use the original vanilla behavior for processing PSprites since it's dehacked.
2025-05-22 11:43:23 -03:00
RaveYard
51a069a1a5 Delete invalid polyobjects from level array in PO_Init 2025-05-21 21:45:40 -03:00
Ricardo Luís Vaz Silva
b952e2d6fd remove commented out debug code 2025-05-21 10:50:34 -03:00
Ricardo Luís Vaz Silva
706d1b6978 Scriptified scoreboard drawing 2025-05-21 10:50:34 -03:00
Robert Godward
30a7ccb7da Move additional includes out of the FileSys namespace. 2025-05-20 15:29:23 -04:00
nashmuhandes
b44f8f0cc9 - Add "Intensity" property for dynamic lights in GLDEFS that will multiply the brightness of the light, useful for overbrightening/underbrightening a light.
- Also add an "intensity" parameter for A_AttachLight in ZScript.

Note that for any kind of light overbrightening to do anything at all, one of the unclamped LightBlendModes in MAPINFO must be enabled.
2025-05-17 00:42:01 -03:00
Dileep V. Reddy
b56d184d8c Doing same thick fogdist calc for AmbientOcclusionColor. 2025-05-15 23:24:49 -03:00
Dileep V. Reddy
f9f9fc602c ThickFogDistance and ThickFogMultiplier added to GLES main.fp shader file. 2025-05-15 23:24:49 -03:00
Dileep V. Reddy
c6a6ae23a6 ThickFogDistance and ThickFogMultiplier MAPINFO variables adds thicker fog (Vulkan and OpenGL only) beyond ThickFogDistance, as long as it is possible. But default it is -1.f (disabled). 2025-05-15 23:24:49 -03:00
Ricardo Luís Vaz Silva
f4ac616b57 save extraArgs to CVar for easier testing 2025-05-15 20:50:22 -03:00
XLightningStormL
1f1d9dc1b5 Fixed a major bug
Fixed a potential loop crash caused by an undefined amount int in TakeInventory (and derivatives) now it will assume if by is less than 1 that the item is to be destroyed.
2025-05-14 12:35:01 -03:00
Ricardo Luís Vaz Silva
0532a298d2 fix MDL_USEROTATIONCENTER 2025-05-11 01:12:55 -03:00
biwa
501a21869c Fixed issue where seams can be seen when using animated fire textures 2025-05-11 00:09:52 -03:00
Ricardo Luís Vaz Silva
385033e999 fix CalcModelFrame/SetBone/GetBone/SetAnimation not grabbing smf from modeldata for decoupled anims 2025-05-10 18:24:16 -03:00
Boondorl
58809a3689 Fixed up game id
Store it in a proper buffer.
2025-05-09 20:39:56 -03:00