Commit graph

19,463 commits

Author SHA1 Message Date
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
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
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
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
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
RaveYard
51a069a1a5 Delete invalid polyobjects from level array in PO_Init 2025-05-21 21:45:40 -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
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
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
Boondorl
7877018471 Added CRC to packets
Verify that data is correctly ordered and reject packets that aren't. Also generates a random game id to ensure packets are coming from legitimate clients.
2025-05-09 20:39:56 -03:00
Ricardo Luís Vaz Silva
9e2b1f9c4c
Bone Getters Part 2/3, plus fixed warnings for MSVC
* add getters for frame poses

* fix missing joint in GetJointPose

* clean up models_iqm.cpp

* clean up usage of I_GetTimeFrac, split out matrix calculation into its own function

* clean up SetModelBoneRotationInternal

* clean up a few float <-> double and unsigned <-> signed warnings

* fix more warnings

* further clean up warnings

* split mode ObjectToWorldMatrix stuff

* initial work on bone getters, matrix hell

(the matrix/vec3 multiplications are probably wrong af, just gotta add more stuff 'till i can test it)

* clean up matrix math

* GetBone/TransformByBone

* fix GetBoneFramePose

* fix ObjectToWorldMatrix

* fix missing array resize

* raw matrix getters (for use with gutamatics/etc)

* reverse matrix mult order

* replace GetBoneLength/GetBoneDir with GetBoneBaseTRS

* fix GetBonePosition, remove GetBoneWorldMatrix as it's useless

* GetBonePosition

* deduplicate code

* rename GetBonePosition to GetBoneBasePosition to avoid confusion

* GetBoneBaseRotation

* GetBonePosition helper function

* forgot include_offsets
2025-05-09 17:06:16 -03:00
dileepvr
b68f04fa75 Allow skymist to animate
Allow animated skymist layer.
2025-05-06 11:47:45 -03:00
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
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