smallmodel
535da856a4
When returning a cvar value, use the latched string if present
2024-07-17 23:43:00 +02:00
smallmodel
422bf647a7
Save the client-game state into the archive file (feature from moh spearhead 2.0)
...
This saves cgame data such as emitters and vss sources
2024-07-15 23:45:32 +02:00
smallmodel
93cd470659
Fix broken cgame state saving
2024-07-15 23:44:11 +02:00
smallmodel
81b86d61da
Fix read-only cvar being improperly archived
...
This caused cvars like `paused` being wrongly restored. If the `paused` value is 1 or above, like when saving from the menu, the game would get stuck loading the level because it's paused, no frame could be executed.
It also fixes cvars like `sv_fps`, `g_playermodel` not being archived when they should.
Fixes #326
2024-07-15 20:39:22 +02:00
smallmodel
eac8580f64
Add libmad 0.16.4
...
This new version introduces patches against crashes and exploits. CMake is also fully supported and platforms are properly detected so architecture specific optimizations are used.
To use it, USE_SOUND_NEW must be non-zero when configuring the project
2024-07-11 23:04:04 +02:00
smallmodel
d56498e622
Adds CHANNEL_NONE case statement even if there is nothing to do
2024-07-11 22:04:03 +02:00
smallmodel
551fccb761
Fixes wrong handle being compared for uniqueness
...
This should fix invisible models (fixes #322 )
2024-07-02 22:47:41 +02:00
smallmodel
5317b8424f
Prevents the player from walking
...
This fixes #275
2024-07-02 22:16:13 +02:00
smallmodel
5816391e9b
Fixes loopsound not properly working (not playing, or not being 3D)
2024-07-02 20:25:08 +02:00
smallmodel
543c00037a
Implements sample playback rate
2024-07-02 20:10:54 +02:00
smallmodel
d5f435ee90
Makes loops work as they should
2024-07-02 20:01:01 +02:00
smallmodel
02e2e92d36
Uses linear sound distance model
2024-07-02 19:30:29 +02:00
smallmodel
040f8db0ef
Fixes wrong sound volume and pitch
2024-07-02 19:10:48 +02:00
smallmodel
14927df9fa
Moves MAX_SUBTITLES
to `q_shared.h|
2024-07-02 19:03:27 +02:00
smallmodel
dca9709b12
Fixes MASK_PLAYERSOLID
incorrectly using CONTENTS_WEAPONCLIP
instead of CONTENTS_PLAYERCLIP
for invisible player collision
...
This fixes #317 , fixes #319 and fixes #320 where the player would bypass clip/playerclip
2024-07-02 18:51:53 +02:00
smallmodel
d6571820fe
Fixes g_pVert/g_pTris being freed even when they are NULL
2024-07-02 18:46:27 +02:00
smallmodel
a0d3333ebb
Fixes chan->bufferdata not being set to NULL when released
2024-07-02 18:45:51 +02:00
smallmodel
9615fafc1e
Fixes incorrect usage of DotProduct result in an integer
2024-07-01 19:03:21 +02:00
smallmodel
5fc2425f3a
Set the mindist/maxdist for 3D sounds
2024-07-01 18:52:04 +02:00
smallmodel
eefe8ee2d1
Allow 3D / pan with streamed or MP3 sounds
2024-07-01 18:17:04 +02:00
smallmodel
edb1cb0ebe
Renamed SFX_FLAG_NO_DATA
to SFX_FLAG_STREAMED
2024-07-01 18:05:24 +02:00
smallmodel
140242a761
Fixes MP3 files like dialog improperly working
2024-07-01 18:00:20 +02:00
smallmodel
ae13be0c37
Fixes OpenAL errors
2024-07-01 17:39:47 +02:00
smallmodel
74ff3b920e
Fixes OpenAL 2D origin
2024-07-01 17:39:32 +02:00
smallmodel
2cd6b981f1
Puts the volume gain constant in a variable
2024-07-01 16:46:54 +02:00
smallmodel
f866dcbcfc
Adds triggered music support
...
This allows the main menu music to play, as well as single-player musics
2024-07-01 16:10:42 +02:00
smallmodel
0d394a7e67
Fixes strings printing on the same line
2024-07-01 14:15:58 +02:00
smallmodel
7059f32ecc
Don't timeout if the client hosts the game
2024-07-01 01:09:39 +02:00
smallmodel
87baa69d7c
Fixes incorrect lighting color normalization
...
This fixes #314 where mark colors would have their values warped back to 0, making holes blue
2024-07-01 00:20:33 +02:00
smallmodel
408c901342
Fixes skyboxSpeed using an integer rather than a float
...
This fixes #313 where the skybox would be misplaced
2024-07-01 00:19:50 +02:00
smallmodel
d709dda87a
Use shader's distance range instead of the portal range
2024-06-30 23:57:32 +02:00
smallmodel
cda6225659
Adds a workaround against a bit that was lost on x86 with FP87.
...
This fixes #312 where a rounding error caused facets to be removed due to windings points being outside of the epsilon
2024-06-23 17:26:07 +02:00
smallmodel
563182c14c
Added FloatRoundedBitError() (currently unused)
2024-06-23 17:25:23 +02:00
smallmodel
303ed30a38
Don't remove the facet is there is no border planeCM_PlaneEqual
2024-06-23 17:19:52 +02:00
smallmodel
0a6c745ffb
Use VectorNormalize() instead of VectorNormalize2()
2024-06-23 17:10:58 +02:00
smallmodel
9d654faa3d
As m_BlockedPaths
is an array of pathway_ref
, the proper delete
call must be used
2024-06-23 00:24:20 +02:00
smallmodel
9407b64fe3
Q_strncpyz: don't copy if the src is the same as the dest
2024-06-23 00:18:22 +02:00
smallmodel
1f0f5764a8
Added PathInfo() constructor initialization
2024-06-22 21:41:28 +02:00
smallmodel
13197acb3a
Uses a signed char
instead of a char
for opcode stack offset. On some platforms like ARM, char
is unsigned by default
...
This fixes #311 where a memory corruption that occurred in ARM was caused because of insufficient ScriptVM stack size. The stack size was incorrectly calculated because the stack offset was using unsigned values instead of signed in ARM.
2024-06-22 19:18:08 +02:00
smallmodel
2f48ca6adb
Adds assertion check to check if top stack is out of bounds
2024-06-22 19:03:27 +02:00
smallmodel
01d938b5ba
Fixes some variables being uninitialized
2024-06-22 19:03:04 +02:00
smallmodel
186d7a12e5
typo
2024-06-22 16:51:20 +02:00
smallmodel
5192d36f81
Fixes gametype incorrectly checked in G_InitWorldSession
2024-06-22 16:43:03 +02:00
smallmodel
dfb6c37c9e
Don't copy the server name if it's from the same string address
2024-06-22 16:42:39 +02:00
smallmodel
cb208b9ad2
Initialize the message buffer to avoid leaking private data
2024-06-22 16:39:26 +02:00
smallmodel
e4d20c3fa1
Initialize explosion flash
2024-06-22 16:39:08 +02:00
smallmodel
0b747bf1c5
Use memmove
rather than strcpy
for removing key values
2024-06-22 16:39:00 +02:00
smallmodel
e207715b5e
Initialize m_iLastTiresUpdate
2024-06-22 16:12:29 +02:00
smallmodel
bef1b456e1
Initialize all Ammo members
2024-06-22 16:11:03 +02:00
smallmodel
11349f9ad5
Fixes the source pos access for ENUM_if_statement
(out of bounds index)
2024-06-22 16:08:33 +02:00