Commit graph

22,241 commits

Author SHA1 Message Date
Dileep V. Reddy
e9a067dd65 Skymist is a third sky layer with transparency, and adopts the fade color and skyfog density. Size not connected to SKY1 or SKY2. Works with 6-sided skyboxes. Three template pngs (skymist1, 2, & 3) all 1x544 pixels, 8-bit grayscale with transparency are part of gzdoom.pk3 for general usage. Can supply custom lump through mapinfo. Console command 'skymisttoggle' shows the effect (make sure fade has a non-zero color in mapinfo and skyfog has non-zero density). Oh, and skyfog now works with 6-sided skyboxes. 2025-05-06 11:47:45 -03:00
DyNaM1Kk
31cd741cb0 Scriptified DBaseStatusBar::Draw 2025-05-06 11:46:34 -03:00
DyNaM1Kk
3bb716c414 Exported RefreshBackground 2025-05-06 11:46:34 -03:00
DyNaM1Kk
5168ce0e04 Exported DrawCrosshair 2025-05-06 11:46:34 -03:00
DyNaM1Kk
8447e1716c Added a menu option for am_showlevelname 2025-05-05 12:01:13 -03:00
XLightningStormL
9c383e9379
DepleteBy virtual
* Update inventory_util.zs

Added ExtraDepletionBehavior() functionality to TakeInventory and UseInventory

* Update inventory.zs

Added ExtraDepletionBehavior (int takeAmount) function

* Update inventory_util.zs

ExtraDepletionBehavior now requires at least 1 item in reserve to work

* Replaced ExtraDepletion with DepleteBy Logic

Shoutout to RicardoLuis0

* Replaced ExtraDepletion with DepleteBy Logic

Shoutout to RicardoLuis0

* Update inventory_util.zs

added sv_infiniteinventory checks for takeinventory for custominventory items, restored support for sv_infiniteinventory useinventory items

* Update inventory.zs

cleaned up DepleteBy - removing unnecessary "--Amount <= 0 && usedItem" check and usedItem bool

* Update inventory_util.zs

removed unnecessary sv_infiniteinventory check

* Update inventory.zs

amount is integer, depleteordestroy should occur when amount is less than 1
2025-05-02 20:27:28 -03:00
Dileep V. Reddy
502af6adb9 SSECMF_DRAWN was being skipped for some cases, affecting texture automap drawing. See bug #3066. 2025-05-02 09:37:59 -04:00
Rachael Alexanderson
0d612553a4
- do not allow sv_gravity to be INF 2025-05-02 09:36:05 -04:00
Ricardo Luís Vaz Silva
3780c5910a
Bone Manip part 1 - bone setters
* split frame info calculation from RenderFrameModels

* clean up fvec4 being used as quat in iqms

* initial work on bone setting

* implement bone setters

* clean up FindModelFrame

* refactor model overrides into its own function

* refactor frame rendering into RenderModelFrame

* split frame processing into ProcessModelFrame

* refactor BoneOverride in preparation for translation/scale overrides

* clean up macros

* SetBoneTranslation/SetBoneScaling

* GetBoneOffset

* fix compilation on linux/mac (fuck you MSVC)

* fix typo 😅

* make sure bone overrides are cleared on model switches, add ClearBoneOffsets to clear them manually

* bone info getters

* fix joint lengths, add joint dirs

* serialize bone overrides

* fix bone dir return type

* GetBoneIndex/GetBoneCount

* helper functions for working with non-quat angles

* add mode enum, add more helper functions

* fix up formatting
2025-05-01 10:15:46 -03:00
Ricardo Luís Vaz Silva
c0d17bbda3 limit light alpha mult to renderflag 2025-04-29 15:47:28 -03:00
Xaser Acheron
80c36d4069 add a few commonly-used gzdoom-specific properties to the dehacked parser 2025-04-29 08:05:38 -03:00
Xaser Acheron
a393a6ac56 fix dsdhacked actors not spawning when placed in a map 2025-04-29 07:53:02 -03:00
DyNaM1Kk
b7d6f0b1a4 Added am_showlevelname CVar
Allows controlling the visibility of the level name on the automap.
2025-04-27 01:31:13 -03:00
Ricardo Luís Vaz Silva
880ebfd94c fix up header comment 2025-04-23 18:49:23 -03:00
Ricardo Luís Vaz Silva
d56b84d094 hook up includes for vulkan 2025-04-23 18:49:23 -03:00
Ricardo Luís Vaz Silva
317cd358d1 implement includes for opengl 2025-04-23 18:49:23 -03:00
Ricardo Luís Vaz Silva
b6bdb7b4e7 fix missing newline in stb_include 2025-04-23 18:49:23 -03:00
Ricardo Luís Vaz Silva
c0b6427b12 print warning for texture2d usage 2025-04-23 18:49:23 -03:00
Ricardo Luís Vaz Silva
009b84bb1a print warning for deprecated uniform declarations 2025-04-23 18:49:23 -03:00
Ricardo Luís Vaz Silva
7bcbc8f824 add filename info to stb_include 2025-04-23 18:49:23 -03:00
Ricardo Luís Vaz Silva
0d7bb40648 make code more readable 2025-04-23 18:49:23 -03:00
Ricardo Luís Vaz Silva
44f1e239e4 deduplicate code 2025-04-23 18:49:23 -03:00
Ricardo Luís Vaz Silva
3f65c2191a better formatting 2025-04-23 18:49:23 -03:00
Ricardo Luís Vaz Silva
82e5dc2db6 remove raw C string manipulation, add missing chunk 2025-04-23 18:49:23 -03:00
Ricardo Luís Vaz Silva
d23faa6ab8 convert stb_include to FString, trim out some stuff 2025-04-23 18:49:23 -03:00
Ricardo Luís Vaz Silva
817a3778d8 split stb_include into .cpp and .h 2025-04-23 18:49:23 -03:00
Ricardo Luís Vaz Silva
8c66f5c64d add stb_include 2025-04-23 18:49:23 -03:00
MajorCooke
2a6e354d92 Replaced the code jumping in P_SpawnBlood with simple boolean checks. 2025-04-23 18:49:11 -03:00
MajorCooke
6c4afed100 SpawnBlood now returns an actor spawned by the function. 2025-04-23 18:49:11 -03:00
dileepvr
701d1f71d1 Ensure boolean to suppress compiler warning
Finally used `!!(...)` somewhere.
2025-04-20 16:38:52 -03:00
dileepvr
34451c9acd Boolean op instead of mod with 2
`( ... & 1)` is simpler than `(... % 2 != 0)`.
2025-04-20 16:38:52 -03:00
dileepvr
e199fd11d5 Fixed pitch culling in reflective flats for OoB Viewpoints
The vertical clipper needed viewpoint pitch sign to be flipped to work correctly. Only relevant for OoB viewpoints.
2025-04-20 16:38:52 -03:00
Boondorl
524cd55813 Added OnLoad virtual
Allows for things to be reinitialized where needed for Thinkers. Moved hidden state of items over to OnLoad.
2025-04-17 18:58:02 -03:00
Ricardo Luís Vaz Silva
44c9140aad save togglehud to ini so that it can be properly restored on crash/exit 2025-04-17 18:57:11 -03:00
Ricardo Luís Vaz Silva
ab5091098d fix bug with direct cvar assignment being mistakenly allowed 2025-04-17 18:57:11 -03:00
Ricardo Luís Vaz Silva
fa03385980 remove commented out code 2025-04-16 23:45:16 -03:00
Ricardo Luís Vaz Silva
a43b99bf51 further remove manual memory management 2025-04-16 23:45:16 -03:00
Ricardo Luís Vaz Silva
bac018d306 remove extra heap allocation and level of indirection 2025-04-16 23:45:16 -03:00
Ricardo Luís Vaz Silva
2b72de44d5 use TryEmplace 2025-04-16 23:45:16 -03:00
Ricardo Luís Vaz Silva
d40c5246e5 optimize memory allocation 2025-04-16 23:45:16 -03:00
Ricardo Luís Vaz Silva
88a55be561 add TryEmplace to TMap 2025-04-16 23:45:16 -03:00
Gene
e2026dca38 Only allocate when needed 2025-04-07 13:57:28 -07:00
Gene
9e32e58c8f Try TMap 2025-04-07 04:21:35 -07:00
Gene
81165facf2 Actually null the pointer 2025-04-07 02:47:46 -07:00
Gene
4fb4e18594 Don't inline AddLightNode 2025-04-06 22:05:49 -07:00
Gene
20c234b90f Scrap dlight lighthead link lists 2025-04-06 13:06:57 -07:00
Peppersawce
a02892389d Haiku support patch 2025-04-05 20:49:45 -04:00
Christoph Oelckers
6481f8cce9 rewrote XY and XYZ accessors for vectors to be read-only and not use type punning. 2025-04-03 07:51:03 +02:00
Ricardo Luís Vaz Silva
8019b56823 fix comment 2025-04-01 17:19:03 -03:00
Ricardo Luís Vaz Silva
6cdcad425a convert g_game.cpp VMCalls to use VMCallSingle/VMCallVoid (as an example) 2025-04-01 17:19:03 -03:00