Commit graph

3480 commits

Author SHA1 Message Date
Denis
d5c26f28d6 free for real 2024-03-31 22:39:50 +03:00
Denis Pauk
8cf9848291 filesystem: support daikatana pak files
Release leafs have 32 != 28 bytes record size, and unsupported
for now.
2024-03-31 19:13:31 +03:00
Denis Pauk
6b6da54054 filesystem: rearange pak load code 2024-03-31 16:43:31 +03:00
Denis Pauk
57e68967cb fix %zu windows build warnings 2024-03-31 16:14:44 +03:00
BjossiAlfreds
c134d0127d Added cvar cl_laseralpha and documentation in cvarlist 2024-03-31 10:45:31 +00:00
Denis Pauk
98ebc126c2 filesystem: check pak header record size 2024-03-30 23:30:27 +02:00
Denis Pauk
d1e23ae740 maps: initial flags surface flags convert
Convert map flags before load for load maps files from games with
different flags meaning.
2024-03-30 19:12:06 +02:00
Denis Pauk
c343f87928 maps: remove currently unused fields 2024-03-30 18:29:36 +02:00
Denis Pauk
d58e1493e3 maps: prevalidate lumps on load 2024-03-28 00:30:48 +02:00
Denis Pauk
d87b1b512d game: fix configstring convert before connection creation 2024-03-27 23:51:06 +02:00
Denis Pauk
eb566c3b70 files/light: rearrange light code 2024-03-25 23:05:58 +02:00
David Carlier
3e64b2c1f9 VectorLength reduces complexity. 2024-03-25 06:29:23 +00:00
Denis Pauk
f3ae3beacd Version bump to 8.31RR6
BraXi (2):
      renders: fix BSPX lightmaps
      Rename functions r_dlightframecount parameter to lightframecount

David Carlier (1):
      models_md5 few memory related fixes

Denis Pauk (58):
      client: add custom protocol with short model index
      client: bump protocol and game version / unstable compatibility
      render: sync count of images with protocol max image count
      models: md5 do not copy token before use
      models: md5 partial COM_Parse in ReadMD5Anim
      models: md5 partial COM_Parse usage in ReadMD5Model
      models: ReadMD5Anim use strtol for parse
      models: ReadMD5Model get rid of sscanf usage
      models: ReadMD5Model more strict validation
      models: ReadMD5Anim get rid sscanf usage
      models: md5 call R_CompressNormalMDL only once for vertex
      soft: reuse R_LerpVerts code
      soft: move R_LerpVerts upper by call stack
      refresh/files: cppcheck warning clean up
      gl3/gl4: fix count lightmap in mgu5m2
      gl1: cppcheck fixes
      models: md3/md5 show count of verts and tris
      models: show number commands in model
      models: md3 compress commands
      models: remove static buffers for commands compress
      models: prepare command compress to share logic
      models: md5 rearrange glcommands generation
      models: save triangles ofs/num in each mesh
      soft: fix multi mesh models render
      client: fix pickup message in demo
      models: md5 tris compress before compress gl commands.
      models: apply md3 compress tris logic
      models: revert slow vect compress logic
      models: md3/md5 share command generation code
      models: mdl compress triangles
      models: mdl support grouped frames
      models: make mdl count frames detect separate function
      models: mdl separate function for image load
      models: mdl fix texture coordinates
      models: dkm Daikatana, md2 Anachronox generate normals
      models: dkm split model to meshes
      models: add mdx / Kingpin models support
      renders: load mdx/Kingpin models support
      models: MDX mesh split by subobj value
      soft: fix cppcheck warnings, remove unused isflattop
      soft: fix cppcheck warning and remove unused fullscreen property
      cin: support tga/jpg/png static image
      models: fix md5 replacement load without md2 model
      filesystem: add support of Anachronox DAT archive format
      filesystem: Anachronox fix load sky
      filesystem: support longer path in archives (up to 128)
      client: add xatrix demo protocol check
      Add windows 32bit build releases
      small build clean up
      Add readme note about SiN maps
      protocol: share configstring convert logic
      server: convert config string to protocol range
      server: support of load original game library
      server: QII97 protocol version check unification
      server: extend count of sound indexes
      server: extend gun frame and index to short
      soft: fix original Quake 2 map lights regression
      renders: split R_BuildLightMap to two function

Feels Duck Man (4):
      Added a speedometer that displays the player's speed in QU/s.  Wasn't quite sure how to implement it without adding GetPlayerSpeed() to pmove.c.  Unsure if there is a cleaner way to do this while keeping it inside cl_screen.c
      Removed 'Speed' label for speedometer when being displayed
      Added an option to draw speed under the crosshair with cl_showspeed 2, fixed drawing the speedometer when the game wasn't playing.
      Added documentation for 'cl_showspeed' in 040_cvarlist.md

Guilherme Nemeth (1):
      berserker: slam attack, running club attack

Sajt (1):
      models: add gl command compress code from qwalk

apartfromtime (3):
      Texture filtering option
      Texture filtering options for OpenGL and Software video modes
      Fix software dithering
2024-03-24 19:01:49 +02:00
Denis Pauk
611259e0a1 renders: split R_BuildLightMap to two function 2024-03-24 18:28:24 +02:00
Denis Pauk
d02cfe40ac soft: fix original Quake 2 map lights regression
Fixes regression from 84f5fd2c97
2024-03-24 15:53:15 +02:00
Denis Pauk
c57fd107d6 server: extend gun frame and index to short 2024-03-24 14:39:17 +02:00
Denis Pauk
cc2f531faa server: extend count of sound indexes 2024-03-24 14:18:26 +02:00
Denis Pauk
6aa0b2a92b server: QII97 protocol version check unification 2024-03-24 13:22:42 +02:00
Denis Pauk
f7dc2777c5 server: support of load original game library 2024-03-24 12:32:30 +02:00
Denis Pauk
32047010a2 server: convert config string to protocol range 2024-03-24 01:19:16 +02:00
BraXi
99f80e12cd Rename functions r_dlightframecount parameter to lightframecount
Renders has global variable with such name that used as parameters
for R_MarkLights shared function.

Fixes:
 * https://github.com/yquake2/yquake2remaster/issues/17
 * https://github.com/yquake2/yquake2/issues/1093
2024-03-23 23:28:48 +02:00
BraXi
764c977106 Rename functions r_dlightframecount parameter to lightframecount
Renders has global variable with such name that used as parameters
for R_MarkLights shared function.

Fixes:
 * https://github.com/yquake2/yquake2remaster/issues/17
 * https://github.com/yquake2/yquake2/issues/1093
2024-03-23 23:11:13 +02:00
Denis Pauk
f5bbf533bc protocol: share configstring convert logic 2024-03-23 18:47:17 +02:00
Denis Pauk
b6df49dbb7 Add readme note about SiN maps 2024-03-23 16:11:45 +02:00
BraXi
84f5fd2c97 renders: fix BSPX lightmaps
Look to:
 * #16 R_RecursiveLightPoint returning total black color when
   DECOUPLED_LM lump is present
 * d740355147
2024-03-23 11:21:49 +02:00
Denis Pauk
51407d7139 small build clean up 2024-03-21 23:28:43 +02:00
Denis Pauk
ee5d131b9c client: add xatrix demo protocol check 2024-03-21 00:49:56 +02:00
Denis Pauk
3e7e3bad39 filesystem: support longer path in archives (up to 128) 2024-03-20 23:20:08 +02:00
Denis Pauk
f389359074 filesystem: Anachronox fix load sky 2024-03-20 00:49:11 +02:00
Denis Pauk
04807e2ece filesystem: add support of Anachronox DAT archive format 2024-03-19 23:42:22 +02:00
Denis Pauk
c385789a87 Merge remote-tracking branch 'yquake2/master' 2024-03-19 22:12:01 +02:00
Yamagi
9569f41c3c
Merge pull request #1091 from apartfromtime/Texture-filter-menu-option
Texture filtering options for OpenGL and Software video modes
2024-03-19 19:24:41 +01:00
Yamagi
6c21caa55d
Merge pull request #1088 from ConHuevosGuey/master
Added a player speed display that prints the players speed and ground speed at the top right corner. The function can be toggled on using cl_showspeed 1.
2024-03-19 19:17:12 +01:00
apartfromtime
26194c76cf Fix software dithering
Rounding view angles to degrees fixes undefined software texture filter behaviour.
2024-03-18 12:19:35 +11:00
apartfromtime
72de1d45f8 Texture filtering options for OpenGL and Software video modes
Add renderer specific menu options.
2024-03-18 11:11:47 +11:00
Denis Pauk
05f78dd7d3 models: fix md5 replacement load without md2 model 2024-03-18 00:12:26 +02:00
Denis Pauk
3906f6d146 cin: support tga/jpg/png static image 2024-03-17 23:21:49 +02:00
Denis Pauk
6590097752 soft: fix cppcheck warning and remove unused fullscreen property 2024-03-17 15:47:39 +02:00
Denis Pauk
2b9c4e88fe soft: fix cppcheck warnings, remove unused isflattop 2024-03-17 15:47:23 +02:00
Denis Pauk
344f132044 models: MDX mesh split by subobj value 2024-03-17 15:46:26 +02:00
Denis Pauk
bb3ac6ef9c renders: load mdx/Kingpin models support 2024-03-17 15:45:31 +02:00
Denis Pauk
b30dd7dd2d models: add mdx / Kingpin models support
Without meshes support.

Based on documentation from https://kingpin.info/?p=mdx
Author: tical@kingpin.com
2024-03-17 15:45:31 +02:00
Denis Pauk
ffeabf4007 models: dkm split model to meshes 2024-03-17 15:45:31 +02:00
Denis Pauk
93bbc60bd8 models: dkm Daikatana, md2 Anachronox generate normals 2024-03-17 15:45:31 +02:00
Denis Pauk
b6dc5ac8ad models: mdl fix texture coordinates 2024-03-17 15:45:31 +02:00
Denis Pauk
25d60b826e Merge remote-tracking branch 'yquake2/master' 2024-03-16 12:48:35 +02:00
Yamagi
823998d87f
Merge pull request #1085 from apartfromtime/Texture-filter-menu-option
Texture filtering option
2024-03-16 11:37:43 +01:00
Denis Pauk
fe906a21d2 models: mdl separate function for image load 2024-03-14 23:36:38 +02:00
Denis Pauk
f6b49d8e2b models: make mdl count frames detect separate function 2024-03-14 23:00:42 +02:00
Denis Pauk
dd6ae35d75 models: mdl support grouped frames 2024-03-14 22:36:49 +02:00
Denis Pauk
a9d282e406 models: mdl compress triangles 2024-03-14 22:27:33 +02:00
Denis Pauk
f04ce4c6ce models: md3/md5 share command generation code 2024-03-14 00:18:35 +02:00
Denis Pauk
448d289457 models: revert slow vect compress logic 2024-03-13 22:51:57 +02:00
Denis Pauk
5675a7c28d models: apply md3 compress tris logic 2024-03-13 22:32:35 +02:00
Denis Pauk
0b5babdc53 models: md5 tris compress before compress gl commands.
Use ST/Vect lookup of same values.
2024-03-13 00:46:47 +02:00
Denis Pauk
b0a0d2e847 client: fix pickup message in demo 2024-03-12 00:48:51 +02:00
Denis Pauk
8853af5bbf soft: fix multi mesh models render 2024-03-11 23:16:26 +02:00
Denis Pauk
3df48ef64e models: save triangles ofs/num in each mesh
soft has some issues with md3 model example texture render
2024-03-11 00:30:57 +02:00
Feels Duck Man
cf5b3687f2 Added an option to draw speed under the crosshair with cl_showspeed 2, fixed drawing the speedometer when the game wasn't playing. 2024-03-10 10:26:53 -05:00
Denis Pauk
006d8cbc32 models: md5 rearrange glcommands generation
Compress commands does not improve size of commands for now
and is disabled for now.
2024-03-10 16:11:03 +02:00
Denis Pauk
7bce5d75fb models: prepare command compress to share logic 2024-03-10 13:57:32 +02:00
Denis Pauk
28bb559e52 models: remove static buffers for commands compress 2024-03-10 13:34:59 +02:00
Denis Pauk
9952521af3 models: md3 compress commands 2024-03-10 12:38:25 +02:00
Denis Pauk
b3eb00673b models: show number commands in model 2024-03-10 00:33:33 +02:00
Sajt
cfda9919e3 models: add gl command compress code from qwalk
Disabled for now.

Based on: https://icculus.org/projects/qshed/qwalk/
2024-03-10 00:04:34 +02:00
Denis Pauk
25dc9cf064 models: md3/md5 show count of verts and tris 2024-03-09 15:41:11 +02:00
Guilherme Nemeth
d137fe863c berserker: slam attack, running club attack
Based on: 31bc4e52e3
2024-03-09 14:30:39 +02:00
Denis Pauk
03c39f34ae gl1: cppcheck fixes 2024-03-09 01:09:54 +02:00
Denis Pauk
aea0a9085f gl3/gl4: fix count lightmap in mgu5m2 2024-03-08 00:37:16 +02:00
Denis Pauk
3b579eb0d6 refresh/files: cppcheck warning clean up 2024-03-08 00:24:58 +02:00
Denis Pauk
f888840ec8 soft: move R_LerpVerts upper by call stack 2024-03-07 23:32:20 +02:00
Denis Pauk
89a8a04334 soft: reuse R_LerpVerts code 2024-03-07 18:51:14 +02:00
Denis Pauk
3f20ef1bb0 models: md5 call R_CompressNormalMDL only once for vertex 2024-03-05 00:25:54 +02:00
Denis Pauk
b8bd567eb8 models: ReadMD5Anim get rid sscanf usage 2024-03-04 00:38:46 +02:00
Denis Pauk
fac9a5ce5c models: ReadMD5Model more strict validation 2024-03-03 23:40:54 +02:00
Denis Pauk
994cf72a76 models: ReadMD5Model get rid of sscanf usage 2024-03-03 19:13:58 +02:00
Denis Pauk
b0f2538951 models: ReadMD5Anim use strtol for parse 2024-03-03 18:58:32 +02:00
Feels Duck Man
9cff22b55c Removed 'Speed' label for speedometer when being displayed 2024-03-02 13:54:43 -06:00
Denis Pauk
55576952d7 models: md5 partial COM_Parse usage in ReadMD5Model 2024-03-02 17:48:10 +02:00
Denis Pauk
a131fa0938 models: md5 partial COM_Parse in ReadMD5Anim 2024-03-02 16:57:50 +02:00
Denis Pauk
e821f8452d models: md5 do not copy token before use 2024-03-02 16:50:38 +02:00
David Carlier
b7fa65c576 models_md5 few memory related fixes 2024-03-02 16:42:12 +02:00
Feels Duck Man
cfece2f55d Added a speedometer that displays the player's speed in QU/s. Wasn't quite sure how to implement it without adding GetPlayerSpeed() to pmove.c. Unsure if there is a cleaner way to do this while keeping it inside cl_screen.c 2024-03-01 14:05:36 -06:00
Denis Pauk
59e118ed26 render: sync count of images with protocol max image count 2024-02-29 23:42:17 +02:00
Denis Pauk
6973181a21 client: bump protocol and game version / unstable compatibility
Config string numbers is different to original Quake 2 code,
code is not compatible with any version of official protocols or
game code. And game code should be recompiled for use with engine.
2024-02-29 00:05:21 +02:00
Denis Pauk
28668972ff client: add custom protocol with short model index 2024-02-27 00:37:26 +02:00
apartfromtime
292bc0f632 Texture filtering option
Adds texture filtering option to the video menu.

Closes #753
2024-02-26 18:08:18 +11:00
Denis Pauk
a77e52ad97 Version bump 8.31RR5 2024-02-25 23:46:19 +02:00
Denis Pauk
d76584a457 client: update mpeg video decoder
ce50e1da59

Fixes video streams issues. Look to: https://github.com/phoboslab/pl_mpeg/issues/25
2024-02-25 23:12:16 +02:00
Denis Pauk
f9f54c7efe cin: revert heretic 2 mpeg hack
Partial reverts: bd5685d201
2024-02-25 23:07:23 +02:00
Denis Pauk
5c89bbf645 game: cleanup zombie code 2024-02-25 19:12:05 +02:00
Denis Pauk
ef1a1c21e6 game: cleanup shambler game func export 2024-02-25 18:19:07 +02:00
Denis Pauk
4e92b008c0 game: do not export non edict_t function as gamefunc 2024-02-25 17:41:46 +02:00
Denis Pauk
54a8380972 game: do not export G_Set* as gamefunc 2024-02-25 17:19:27 +02:00
Denis Pauk
93c580f733 game: cleanup player export 2024-02-25 16:59:36 +02:00
Denis Pauk
55313fa513 game: restore rogue RDM_DEATHBALL code 2024-02-25 15:39:37 +02:00
Denis Pauk
0326d45cf8 game: rerelease port carrier CreateFlyMonster use 2024-02-25 15:18:49 +02:00
Denis Pauk
4870c1cc62 game: cleanup exports and rename TH_viewthing -> viewthing_think 2024-02-25 14:19:33 +02:00
Denis Pauk
2323e12872 game: remove spawn functions from game functions 2024-02-25 13:17:17 +02:00
Denis Pauk
f95ca59717 game: savegame sort fields 2024-02-25 12:42:14 +02:00
Denis Pauk
d88732f8da game: cleanup savegame exports 2024-02-25 12:36:53 +02:00
Denis Pauk
863dc290a8 game: cleanup savegame function g_* 2024-02-25 00:54:26 +02:00
Denis Pauk
4196fd356c game: remove unused functions 2024-02-25 00:21:48 +02:00
Denis Pauk
1c0a4590d3 game: cleanup savegame exports 2024-02-24 23:56:15 +02:00
Denis Pauk
d48604ff8a game: update gamemmove list 2024-02-24 23:42:35 +02:00
Denis Pauk
98de9d412a game: gamefunc list sort 2024-02-24 23:21:12 +02:00
Denis Pauk
b9bafd0579 game: gamemmove list sort 2024-02-24 23:01:03 +02:00
Denis Pauk
7b29dce03f game: enforcer frame names usage and save fix 2024-02-24 17:34:02 +02:00
Denis Pauk
a3d450ff64 client: Add gametype variable
`gametype` variable could be used for show menu for different
embeded mod type. Remaster has all ctf/rogue/xatrix maps in baseq2
directory and menu could not detected by game variable anymore.
2024-02-23 00:33:24 +02:00
Denis Pauk
d907b8bb57 game: add defines for frames
Add frame names for infighter/quake 1 monsters,
without code use for now.
2024-02-14 00:29:05 +02:00
Denis Pauk
416e4b1269 models: add mdl hack for subframes
Fixes wizard spark spawn errors.
2024-02-13 23:33:11 +02:00
Denis Pauk
0d48f5e0ec models: fix embeded image load 2024-02-13 23:12:38 +02:00
Denis Pauk
b21391954d game: fix shambler effect 2024-02-11 23:51:33 +02:00
Denis Pauk
47bacf9a52 game: Add support some of quake 1 monsters
Shambler is left without chenges and fixes for now.
2024-02-11 19:10:57 +02:00
decino
5b62a2f416 game: add Quake monsters logic
Based on: https://github.com/decino/q2-infighter
2024-02-11 15:33:26 +02:00
Denis Pauk
1343dbcc97 ctf: fix STAT_* values to start from unused slot 2024-02-10 19:18:26 +02:00
Denis Pauk
85704fa134 sv_send: return new size of buffer before use 2024-02-10 15:38:42 +02:00
Denis Pauk
322c3ee9e8 sv_send: realloc send buffer 2024-02-10 15:23:38 +02:00
Denis Pauk
079267996d models: Fix Anachronox resolution == 1
DKM2 has different sequence of packed verts so exchange to correct
sequence
2024-02-08 01:03:49 +02:00
Denis Pauk
af6d0b26bd models: Add Anachronox format support
Based on https://github.com/hogsy/chronon code.

Does not support normals and could have issues with scale.
2024-02-08 00:54:01 +02:00
Denis Pauk
b3a84afcfa models,renders: remove MAX_VERTS limit 2024-02-06 21:57:27 +02:00
Denis Pauk
3039fe723d common code: clean up code by cppcheck recomendations 2024-02-05 23:22:47 +02:00
Denis Pauk
10cc304778 models: fix cppcheck warnings 2024-02-05 01:29:56 +02:00
Denis Pauk
5ea0a76f76 maps: improve texture coordinates
Discussed in https://github.com/yquake2/yquake2/issues/886
2024-02-05 00:24:33 +02:00
Denis Pauk
e095dc1672 models: add initial md3 model format support 2024-02-04 19:38:11 +02:00
Denis Pauk
f0dac24bac players: ignore skins images with slash in name
It could happen when player directory is inside pak file and has model
overwrite.
2024-02-04 01:03:35 +02:00
David Carlier
c6d57d836c client menu minor changes/correctness proposal. 2024-02-04 00:27:06 +02:00
Denis Pauk
ed5046bcf5 models: prepare PrepareFrameVertex 2024-02-03 23:35:51 +02:00
Denis Pauk
8cc3d90789 Merge remote-tracking branch 'yquake2/master' 2024-02-03 23:25:46 +02:00
Yamagi
e72ef48ae7 Add gl4 to the video menu renderer list.
GL4 is community maintained variant of GL3 using somewhat more up to
date OpenGL APIs. Requsted in #1045.
2024-02-03 16:18:06 +01:00
Yamagi
cc176da74e
Merge pull request #1083 from apartfromtime/Case-insensitive-sort-on-player-skin-names
Case insensitive sort for player skins
2024-02-03 16:03:32 +01:00
Yamagi
5933b64f77 Sort the mod list case insensitive. 2024-02-03 16:00:30 +01:00
apartfromtime
8beb3d8a2e Case insensitive sort for player skins
Case insensitive compare in quicksort compare function for player names.

Closes #1082
2024-02-02 21:33:14 +11:00
Denis Pauk
09b53be665 Version bump 8.31RR4.
* Added md5 model support,
* Fixes for other model formats,
* Extend compresed vertex to short,
* yquake2 fixes.
2024-02-02 01:19:04 +02:00
Denis Pauk
a324ef51c9 menu: fix players model menu 2024-02-02 00:54:40 +02:00
Denis Pauk
ded6b9c858 models: reuse md2 skins in md5 models 2024-01-30 01:16:49 +02:00
Denis Pauk
ca0e150232 models: move md5 merge code to separate function 2024-01-28 22:48:28 +02:00
Denis Pauk
f57ef011b5 models: merge md5 mesh and anim on load
Merge content with use zero as separator
of content sections.

Fixes: https://github.com/yquake2/yquake2remaster/issues/4
2024-01-28 13:59:57 +02:00
Denis Pauk
8d0261c6a0 models: add md5 support
Has:
 * no hacks for replace md2 with md5 automatically(TODO),
 * no logic for merge anim and mesh content as required by loader(TODO),
 * automaticlly converted md5 to md2 like internal format.

Part of https://github.com/yquake2/yquake2remaster/issues/4

Based on:
 * http://tfc.duke.free.fr/coding/md5-specs-en.html
 * https://github.com/Shpoike/Quakespasm/blob/qsrebase/Quake/gl_model.c (Normals code)

Also looked to:
 * https://github.com/Novum/vkQuake/blob/master/Quake/gl_model.c#L4181
 * https://github.com/fte-team/fteqw/blob/master/engine/common/com_mesh.c
 * 1b42134e11
2024-01-28 12:28:17 +02:00
Denis Pauk
ab198a962e filesystem: remove unused Com_FilePath 2024-01-22 00:14:14 +02:00
Sajt
6479b41be7 models: Add normals convert code
Based on https://icculus.org/projects/qshed/
2024-01-22 00:13:17 +02:00
Denis Pauk
b375239b61 models: fix mdl texture coordinates 2024-01-21 00:21:54 +02:00
Denis Pauk
d5020ecd82 models: make MAX_LBM_HEIGHT check optional 2024-01-20 23:53:46 +02:00
atsb
744e33cdf2 Fixing an incorrect cvar 2024-01-20 14:13:55 +02:00
Denis Pauk
e2b2efaa59 models: in mesh could be more than 16k glcmds 2024-01-17 01:11:39 +02:00
Denis Pauk
014dd11b2e clean up function definitions 2024-01-07 19:22:09 +02:00
Denis Pauk
9b3b4b44df Merge remote-tracking branch 'yquake2/master' 2024-01-07 14:51:26 +02:00
Jaime Moreira
adf638d1f4 Controller buttons read more succinctly 2024-01-06 13:35:48 -03:00
Jaime Moreira
fb46007bc3 Fixed gl1_overbrightbits limiter, for real now
Allowed values are 0, 1, 2 and 4 only.
Updated documentation, again.
2024-01-06 13:32:48 -03:00
Jaime Moreira
9f9c212648 OpenGL 1 errors are visible now
Needs DEBUG=1 to enable
2024-01-06 13:29:13 -03:00
Denis Pauk
7372623056 cleanup function definitions 2024-01-01 17:36:53 +02:00
Denis Pauk
13466185e6 models: update models min/max on load 2024-01-01 15:39:05 +02:00
Denis Pauk
6701ad8cc5 collision: add additional checks 2023-12-30 16:31:47 +02:00
Denis Pauk
59d6766e90 fix typo in 68e76c9c 2023-12-30 02:24:35 +02:00
Denis Pauk
68e76c9cfe models: set alias min/max in single place 2023-12-30 02:07:35 +02:00
Denis Pauk
4a6632dac6 models: Show list of model images in developer mode 2023-12-29 19:48:17 +02:00
Denis Pauk
057087b7dc renders: share R_CullAliasMeshModel 2023-12-29 17:23:47 +02:00
Denis Pauk
f9a2fee5b3 render: extend vertex to short 2023-12-28 19:59:47 +02:00
Denis Pauk
f89ea15d14 renders: Support embeded image use 2023-12-28 09:31:04 +02:00
Denis Pauk
abce26bdff models: share image load on model read 2023-12-28 09:03:04 +02:00
Denis Pauk
b2d58ee171 models: save embeded image 2023-12-28 08:46:45 +02:00
Denis Pauk
4d56576871 gl3,gl4: check worldmodel before dlight push
Fix crash if open multiplayer before load map.
2023-12-28 08:20:07 +02:00
Denis Pauk
083ea68a80 refresh: split models file to maps.c 2023-12-27 23:15:35 +02:00
Denis Pauk
22d36d6bfe Revert "client: Update stb_image_resize"
This reverts commit a08a8d35e1.

Fix visual glitches on texture edges in soft render.
2023-12-27 18:21:36 +02:00
Denis Pauk
985fa68b97 cinema: smaker video support if fully covered by avcodec 2023-12-27 17:50:25 +02:00
Denis Pauk
3e7bd79c5b models: model always has one mesh at least 2023-12-27 01:37:17 +02:00
Denis Pauk
531dc2f872 models: Use flex mesh type insteaad list of short 2023-12-27 00:54:30 +02:00
Denis Pauk
be95a149dc models: Use internal dmdx_t format 2023-12-27 00:13:06 +02:00
Denis Pauk
519b72adc9 models: function naming cleanup 2023-12-26 22:22:04 +02:00
Denis Pauk
d54f070246 gl3,gl4: cleanup light code 2023-12-26 14:59:10 +02:00
Denis Pauk
2a8e84ccd8 gl1,gl3,gl4,vk: sync R_LerpVerts 2023-12-26 14:14:31 +02:00
Denis Pauk
06ee407efa render: remove skin count limit 2023-12-25 14:44:44 +02:00
Denis Pauk
d4aa45d6cb Version bump to 8.31RR3 2023-12-25 00:14:45 +02:00
Denis Pauk
8ecef62a5d clean up model list show 2023-12-25 00:05:38 +02:00
Denis Pauk
70b0b1c77a Update windows build instruction 2023-12-25 00:05:38 +02:00
Denis Pauk
6b4f197ac0 game: Add third person view
Based on codes:
 * Lazarus mod
 * KMQuake2 codes
 * Slight Mechanical Destruction mod

https://bitbucket.org/Knightmare66/kmquake2_stable/src/master/game/p_chase.c
2023-12-25 00:05:38 +02:00
Denis Pauk
45413644bf gl4: remove GLES usage 2023-12-21 19:24:14 +02:00
Denis Pauk
fc543be4f5 gl3,gl4: LIGHTMAPS: Add support for DECOUPLEDLM.
Based on 9cb349e6e9
2023-12-21 18:59:33 +02:00
Denis Pauk
bd86f646da refresh: Sync lightmap function names 2023-12-21 17:15:52 +02:00
Denis Pauk
a180fd3086 Merge remote-tracking branch 'yquake2/master' 2023-12-19 23:22:36 +02:00
Yamagi
e40f5d1480
Merge pull request #1077 from apartfromtime/Fix-duplicate-entries
Fix duplicate menu key keyboard entries
2023-12-19 18:33:39 +01:00
Denis Pauk
1e6042ba35 client: fix cinematic run after load map
Fix regression from 51a8dfb6
2023-12-19 19:25:48 +02:00
Denis Pauk
b423cf6865 soft: fix colorspace for direct cinema 2023-12-19 15:30:08 +02:00
Denis Pauk
2b24ee9b53 soft: scale small video
in case if aspect ratio is same as window
2023-12-19 01:40:18 +02:00
Denis Pauk
fa3ec83253 soft: add warning if is already flushed 2023-12-19 00:39:45 +02:00
Denis Pauk
30ecd8ac57 cin: scale down ogv frame
Scale down frame to size of window if required,
Scale up in soft render is slow, so skip it for
small files.

ReRelease ogv files could be rendered in native
resolution and color space in soft render if windows
size is equal to video size.
2023-12-18 17:39:44 +02:00
Denis Pauk
d7b5bfc06f soft: support direct copy raw image 2023-12-18 15:52:18 +02:00
Denis Pauk
642aeedc43 Merge remote-tracking branch 'yquake2/master' 2023-12-18 12:47:09 +02:00
apartfromtime
87ae381ed2 Attempt to fix indentation 2023-12-18 09:27:57 +11:00
apartfromtime
1570baee4d Remove superfluous switch statement 2023-12-18 08:52:35 +11:00
Yamagi
18aa42653a
Merge pull request #1076 from protocultor/quick_weap
Faster "weapprev" and "weapnext" behavior
2023-12-17 11:58:28 +01:00
apartfromtime
089a1cd53f Fix duplicate menu key keyboard entries
Fixes a bug where duplicate keyboard entries would occur in menu fields when using the keypad keys with num-lock on.

Adds `IN_NumpadIsOn` function returning the state of the numpad key.
2023-12-17 09:55:58 +11:00
Denis Pauk
80ff901765 Fix build with Q_min/Q_max: 5da0e5f0 2023-12-16 23:37:20 +02:00
apartfromtime
ef456964e3 Revert "Fix duplicate menu key keyboard entries"
This reverts commit 2180ca6c40.
2023-12-17 08:18:38 +11:00
Denis Pauk
6b70251341 Merge remote-tracking branch 'yquake2/master' 2023-12-16 23:14:52 +02:00
Jaime Moreira
01ce6787dc Preview of the coming weapon for weapprev/weapnext
The weapon you are changing to appears in the HUD, in "pickup" format.
Requires g_quick_weap == 1.
2023-12-16 17:52:00 -03:00
apartfromtime
2180ca6c40 Fix duplicate menu key keyboard entries
Fixes a bug where duplicate keyboard entries would occur in menu fields when using the keypad keys with num-lock on.
Menu fields now mirror behaviour of the console field.
Removed keypad left arrow case from console key ignore list.
2023-12-12 14:29:52 +11:00
apartfromtime
71570bb2ef Revert changes to shaders
Uses min/max from shader language.
2023-12-09 12:28:30 +11:00
Jaime Moreira
9eca08fd92 Faster "weapprev" and "weapnext" behavior
These commands can now "count" how many times they have been called,
similar to how "cycleweap" operates after #865.
This allows for changing to different weapons, instead of just going
"one down" or "one up".
New cvar "g_quick_swap" allows to enable/disable this behavior.
2023-12-07 23:57:19 -03:00
apartfromtime
f0d2c5afaa More min\max function renaming
Missed function renaming.
2023-12-04 22:59:31 +11:00
David Carlier
734422cbdf client: build warning fixes. 2023-12-02 13:05:29 +02:00
apartfromtime
9ac19de4ac Rename min\max to avoid conflict with c-plus plus
While trying to compile the yquake2 rebased heretic2 source from 0lvin, a name conflict with min\max of different parameter counts included by a std::cpp library occurred.
2023-12-01 11:58:21 +11:00
Denis Pauk
e673301dfb renders: fix maps with hardcoded image extensions 2023-11-28 00:31:33 +02:00
Denis Pauk
fbdc7e3f79 renders: Use pcx->wal->m32->m8->tga priority 2023-11-27 23:56:16 +02:00
Denis Pauk
53067535ea vk: clean up unused code 2023-11-27 00:02:37 +02:00
Denis Pauk
888e9bac9d render: Save original name of requested image 2023-11-26 23:50:29 +02:00
Denis Pauk
8d35e72606 client: support png skins in multiplayer 2023-11-26 16:47:49 +02:00
Denis Pauk
d48a8abf5c Merge remote-tracking branch 'yquake2/master' 2023-11-25 16:14:28 +02:00
Yamagi
4967b9d0ca Update miniz to e5700656b34b732f8d4e5df87cb0de00a6c8f319. 2023-11-24 09:26:14 +01:00
Yamagi
3d8fa3995c Update minizip unzip to 643e17b7498d12ab8d15565662880579692f769d. 2023-11-23 18:42:20 +01:00
Yamagi
90402c3f85 Move miniz into a subdirectory.
An upcoming update will add several files, having miniz in it's own
subdirectory makes it clear what belongs to it an whit to unzip.
2023-11-23 18:21:44 +01:00
Denis Pauk
dab662c8ba game: fix guardian and shambler save 2023-11-18 20:14:48 +02:00
Denis Pauk
38f2442d84 soft: move RE_SetSky to warp file
Same structure as other renders have
2023-11-18 17:52:43 +02:00
Denis Pauk
9958db18d6 game: Add ReRelease Shambler Monster 2023-11-17 00:45:58 +02:00
Denis Pauk
1151c91069 game: Add ReRelease Guardian Monster 2023-11-12 23:51:58 +02:00
Denis Pauk
145027c240 game: fix actor save, revert of 038b7f01 2023-11-09 23:55:29 +02:00
Denis Pauk
6aece83adb game: restore rerelease target_actor used in biggun 2023-11-09 00:56:33 +02:00
Denis Pauk
081d0fffa4 game: add ReRelease Arachnoid monster 2023-11-09 00:15:23 +02:00
Denis Pauk
015741ae4f Merge remote-tracking branch 'yquake2/master' 2023-11-06 00:37:49 +02:00
Denis Pauk
1270ae66d5 client: cache 8 maps in collision code 2023-11-05 18:50:02 +02:00
Yamagi
d4940703f0 Bump version number to 8.31pre. 2023-11-05 12:15:35 +01:00
Yamagi
11993ed7e6 Bump version number to 8.30. 2023-11-05 12:13:43 +01:00
Denis Pauk
51a8dfb6f3 client: cache four last maps 2023-11-05 02:49:00 +02:00
Denis Pauk
a50c75e069 Fix possible undefined code in recursive CM_BoxLeafnums_r
Found by @devnexen in https://github.com/0lvin/heretic2/pull/13/files
2023-11-04 23:00:37 +02:00
Denis Pauk
1ab34c87fd Combine credits for addons 2023-11-04 21:50:28 +02:00
Denis Pauk
172e8b743e game: merge ctf 2023-11-04 21:03:05 +02:00
Denis Pauk
f0155f0163 game: sync ctf g_ai 2023-11-04 20:22:01 +02:00
Denis Pauk
63d3e5ac74 Merge remote-tracking branch 'yquake2/master' 2023-11-04 19:45:48 +02:00
Denis Pauk
977dbc34e6 game: disable ctf menu if game != ctf 2023-11-04 19:45:23 +02:00
Denis Pauk
d27fc1f333 game: sync ctf player 2023-11-04 18:30:46 +02:00
Denis Pauk
802a874f64 game: sync ctf g_cmds 2023-11-04 17:32:56 +02:00
Denis Pauk
2b69f3774f game: sync ctf hud/trail 2023-11-04 17:01:06 +02:00
Yamagi
06017193fc
Merge pull request #1070 from devnexen/network_getaddrinfo_error
NET_Socket unix using getaddrinfo's error code in case.
2023-11-04 14:13:24 +01:00
Denis Pauk
16dee61c78 game: sync ctf g_{spawn,phys} 2023-11-03 01:00:51 +02:00
Denis Pauk
9947744114 game: sync ctf g_{chase,func,items,misc,weapon} 2023-11-03 00:36:57 +02:00
Denis Pauk
c41b72125a game: sync with ctf g_svcmds, g_target, g_trigger 2023-11-02 00:58:27 +02:00
Denis Pauk
d68c31e0e4 ctf: Add game monsters 2023-11-02 00:38:33 +02:00
Denis Pauk
2fe5162add game: ctf g_utils sync 2023-11-02 00:26:48 +02:00
Denis Pauk
571c0b96c2 Support custom model format in multiplayer select 2023-11-02 00:03:34 +02:00
Denis Pauk
67adb452dc Loki Games intro game alias support (movie@menu) 2023-11-02 00:03:11 +02:00
Denis Pauk
77e61531d5 Version bump to 8.21RR2 2023-10-31 23:15:36 +02:00
Denis Pauk
07b3d0f9a7 Partial fix of windows build 2023-10-31 19:03:47 +02:00
Denis Pauk
585af3a0bd client: Add network/demo protocol version print 2023-10-30 00:41:35 +02:00
Denis Pauk
0792a535fa client: update unzip to zlib 1.3 version
https://github.com/madler/zlib/releases/tag/v1.3
2023-10-29 12:50:10 +02:00
Denis Pauk
646420f10c gl3,gl4: Update HandmadeMath.h
https://raw.githubusercontent.com/HandmadeMath/HandmadeMath/v1.13.0/HandmadeMath.h
2023-10-29 12:30:12 +02:00
Denis Pauk
21ca36cf66 Update miniz to 3.0.2 version
https://github.com/richgel999/miniz/releases/tag/3.0.2
2023-10-29 12:12:27 +02:00
Denis Pauk
4c2c94beea gl3,gl4: Reuse HandmadeMath and DG_dynarr 2023-10-29 11:28:22 +02:00
Denis Pauk
a08a8d35e1 client: Update stb_image_resize
New optimized version:
https://raw.githubusercontent.com/nothings/stb/e81f294/stb_image_resize2.h
2023-10-29 11:04:29 +02:00
Denis Pauk
75d9d7ddfc client: Update stb_image_write to v1.16
https://github.com/nothings/stb/blob/1ee679c/stb_image_write.h
2023-10-29 10:39:25 +02:00
Denis Pauk
64215c04f6 Fix endline in files, without code changes
Run: sed -i 's/[[:blank:]]*$//' */*.{c,h}
2023-10-29 01:58:20 +03:00