Commit graph

21922 commits

Author SHA1 Message Date
Rachael Alexanderson
4ba53e34e4
Revert "Added SECMF_HURTMONSTERS, SECMF_HARMINAIR and NOSECTORDAMAGE."
This reverts commit 391f496512.
2024-10-19 10:25:03 -04:00
Rachael Alexanderson
dd740b59e0
Revert "- simplify and deconstruct logic for applying sector damage - also fixes voodoo doll sector damage in TNT MAP30"
This reverts commit 3e33e31d19.

Revert "Added MF9_FORCESECTORDAMAGE."

This reverts commit 61bd3a739a.
2024-10-19 10:17:22 -04:00
Christoph Oelckers
e81d563cf4 made FCommandLine::operator[] return a const char * and fixed two places where this triggered a compile error. 2024-10-19 13:22:30 +02:00
Christoph Oelckers
c5308e4448 fix bad string comparison. 2024-10-19 13:13:11 +02:00
Christoph Oelckers
c0bd024094 do not open resource files from non-open file readers. 2024-10-19 13:11:48 +02:00
dileepvr
6e7148b074 Missed a line in RenderOrthoNoFog
Tying up the fov fix.
2024-10-18 03:34:29 -04:00
dileepvr
c38b119435 FOV scales ortho up to 180 degrees
One line change in r_utility.cpp affecting a custom field.

Orthographic projection sees "more" of the sceen as fov increases, but only up to 180 degrees, after which it will have no effect.
Orthographic projection has no meaning for fov since there is no Frustum. But since this is fundamental to the engine, I am reinterpreting it. Cherno wanted this too.
I'll update the wiki if this gets in.
2024-10-18 03:34:29 -04:00
Rachael Alexanderson
3bf3af9441
- readd canvas check 2024-10-17 23:45:09 -04:00
Rachael Alexanderson
c2fd99a24d
Revert "- Actor.GetSpecies() is a non-destructive function"
This reverts commit ee5442c06b.
2024-10-17 21:28:52 -04:00
Ricardo Luís Vaz Silva
758c0dbc7e allow getting checksum for current map 2024-10-17 22:07:21 +02:00
Christoph Oelckers
261881e0d7 do not set console mode from an uninitialized variable. 2024-10-16 16:54:15 +02:00
Rachael Alexanderson
2a8b629a12
- keep ENABLE_VIRTUAL_TERMINAL_PROCESSING mode in isolated console mode 2024-10-16 06:05:15 -04:00
Rachael Alexanderson
fcf65bee27
- we don't need these includes anymore 2024-10-16 06:01:34 -04:00
Rachael Alexanderson
0a9eb474cd
- fix isolated console mode (i.e. launching from explorer.exe) 2024-10-16 05:59:59 -04:00
Kaelan
81f2bef4ac Further cleanup as per recommendations 2024-10-16 00:39:32 -03:00
Kaelan
b4d214a0cf add PARAM_PROLOGUE 2024-10-16 00:39:32 -03:00
Kaelan
9d725276ac Add manual config saving to CVar struct
Allows for calling to save custom cvars manually to ensure they're reliably stored. As is, the only way to ensure that cvars are saved is to safely/manually close out GZDoom, meaning if a crash occurs, that data is lost.

THis is very detrimental to mods/standalone projects that rely on CVars for storing custom data, and or data that transcends save games.
2024-10-16 00:39:32 -03:00
Rachael Alexanderson
70eb4b974d
- enable console subsystem processing for Windows, enable runtime detection 2024-10-15 10:50:24 -04:00
Rachael Alexanderson
ee5442c06b
- Actor.GetSpecies() is a non-destructive function 2024-10-14 17:31:18 -04:00
Major Cooke
fa467073eb Added (SPF_)STRETCHPIXELS.
This counteracts the squaring implied by rolling sprites.
2024-10-14 16:14:25 -04:00
Rachael Alexanderson
3e33e31d19
- simplify and deconstruct logic for applying sector damage - also fixes voodoo doll sector damage in TNT MAP30 2024-10-14 03:48:02 -04:00
inkoalawetrust
9df656a9cf
Added LookForEnemiesEx() for returning all enemies in an area. (#2753)
* Compartmentalized the LookForEnemiesInBlock checks

* Added LookForEnemiesEx().

This function allows for ZScript code to get an array with all enemies of the caller found in range. Using similar sight logic as functions like LookForEnemies().

* Added noPlayers parameter to LookForEnemiesEx().

This parameter allows the function to also find players around it.

* Added VM abort to LookForEnemiesEx().

Prevent crashes by passing a null array by reference.
2024-10-14 03:47:53 -04:00
Cacodemon345
c603494057
Interpolate non-Burn screen wipes 2024-10-14 03:47:41 -04:00
inkoalawetrust
12d1afcc4e
Fixed WalkStepTics & RunStepTics in terrain parser
Fixed the discrepancy where WalkStepTics and RunStepTics were called, well, that. In the terrain struct in both C++ and ZScript. While the terrain parser looked for WALKINGSTEPTIME and RUNNINGSTEPTIME instead.
Also made the parse not multiply these time values by the ticrate to treat them as seconds instead of tics.

Added flags for P_HitWater().

Added optional overridable footsteps for players.

Added an overridable MakeFootsteps() virtual in PlayerPawn. Which allows for adding totally custom footstep logic for players. By default, it comes with a basic footstep system that uses the footstep properties of whatever terrain the pawn is standing on. bMakeFootsteps must be enabled on the pawn for the virtual to run.

Added generic StepSound TERRAIN property.

Added a generic step sound TERRAIN property, for defining foot-agnostic step sounds. Used by the built-in footstep system over the individual foot ones.

Simplified MakeFootsteps().

Also removed a leftover debug message.
2024-10-14 03:47:02 -04:00
Jan Engelhardt
8e4080f8d1 Resolve compiler warning about destructor syntax
gcc-14 warns:

tarray.h:927:9: warning: template-id not allowed for destructor in C++20 [-Wtemplate-id-cdtor]
  927 |         ~TDeletingArray<T, TT> ()
2024-10-12 12:00:32 -03:00
Rachael Alexanderson
de64ffbf11
- define dither shader in a way that is compatible with Apple's GLSL-to-metal compiler 2024-10-12 04:22:45 -04:00
Rachael Alexanderson
573cd2f12c
g4.14pre 2024-10-12 01:30:20 -04:00
Rachael Alexanderson
e562111a51
- don't show iwad box if priority iwad has been located for the currently loaded mods gameinfo 2024-10-12 01:25:21 -04:00
Rachael Alexanderson
4cb60265be
- language update 2024-10-12 01:04:18 -04:00
Rachael Alexanderson
24792913ca
- don't spam the console log if there's math errors - mostly affects Linux/MacOS because there is no distinction from console apps or GUI apps so they put all the data in the console which can cause lag 2024-10-10 07:28:29 -04:00
alexey.lysiuk
6c4b25930b - moved appimage github actions workflow back
it should be disabled in actions settings instead
revert 77519332e8
2024-10-10 13:35:42 +03:00
alexey.lysiuk
411531026b - updated github actions workflow
* fix macos jobs
* fix warnings
2024-10-10 12:58:07 +03:00
inkoalawetrust
61bd3a739a Added MF9_FORCESECTORDAMAGE.
This flag forces non-player actors to take  damage from hurt floors even if SECMF_HURTMONSTERS isn't true.
2024-10-09 13:51:48 -03:00
Rachael Alexanderson
15241cbe96
- use newer zmusic 2024-10-09 11:06:30 -04:00
Christoph Oelckers
d90de3a8a1
avoid floats in integer math. 2024-10-09 09:15:29 -04:00
Dileep V. Reddy
f9a59a989b Orthographic projection Widescreen aspect ratio horizontal clipping fixed. This one-line change only affects ortho viewpoints. Easy to verify in windowed mode. 2024-10-08 12:36:00 -04:00
inkoalawetrust
23c97b5a73 Updated ZDoom UDMF spec changelog.
Added additions that never got their own version change in the changelog.
2024-10-08 18:35:42 +02:00
nashmuhandes
f5c06551e4 Use a light_ prefix for custom ZDRay stuff, and actually parse light_softshadowradius for map things 2024-10-06 11:24:04 -03:00
inkoalawetrust
23d131f6c2 Made GetMidTexturePosition() const. 2024-10-05 23:10:45 -03:00
Ricardo Luís Vaz Silva
19e1d400e4 Add bounds checking to GetMidTexturePosition, add assert to P_GetMidTexturePosition 2024-10-05 23:03:05 -03:00
Christoph Oelckers
2e795bebb4 added a menu option for switching module players. 2024-10-05 12:53:21 +02:00
Christoph Oelckers
413aefb0ab added CVAR to select the preferred MOD player and SNDINFO option to set it per song. 2024-10-05 12:37:55 +02:00
Blue Shadow
6b5be653dc - set a default value of 1.0 for MissileChanceMult property 2024-10-05 11:43:44 +02:00
Christoph Oelckers
f0676cdf01 fixed a few memory leaks 2024-10-05 10:22:05 +02:00
Christoph Oelckers
2b2e85005c fix MBF21 ClearCountItem 2024-10-04 18:34:32 +02:00
Christoph Oelckers
ccbebfcf34 fix kill count management in CopyFriendliness when used on corpses. 2024-10-04 18:33:53 +02:00
Christoph Oelckers
5b1f0fdc86 bFriendly should not be set from scripts because this omits needed bookkeeping. 2024-10-04 18:32:06 +02:00
Christoph Oelckers
6aa71184f7 fixed: MBF21's flag functions did not call the special wrappers for MF_FRIENDLY. 2024-10-03 23:01:09 +02:00
Christoph Oelckers
b667b930a3 fixed logic bug with HitFriend and Refire functions.
The old code was essentially ineffective and useless, this is how MBF had it and how it was supposed to be.
2024-10-03 22:30:09 +02:00
Christoph Oelckers
3798fd815f the MISSILE(EVEN)MORE flags still need to be accessible by ZScript for backwards compatibility.
Since these do not exist anymore an internal interface to Handle/CheckDeprecatedFlags was added.
2024-10-03 12:32:09 +02:00