Commit graph

3554 commits

Author SHA1 Message Date
smallmodel
40834380cf
Check if the snap is valid before getting the client number 2024-10-19 20:39:57 +02:00
smallmodel
18abf3854d
Use normals for deform vertexes
This fixes the issue where some ocean shaders would look inconsistent
2024-10-19 20:33:57 +02:00
smallmodel
6d0b4f8cb7
Fix PVS sound overflow 2024-10-18 23:50:52 +02:00
smallmodel
fc1f795e83
Use ULightGreen color on SH/BT for dm messages 2024-10-18 23:19:09 +02:00
smallmodel
ef09f136d4
Fix sound indexes not erased correctly 2024-10-18 23:15:59 +02:00
smallmodel
6136bbd019
Set g_netoptimize to 1 when spawning server 2024-10-18 23:05:53 +02:00
smallmodel
5136aa4886
Properly handle and delete unused non visible entity sounds to free up sound indexes 2024-10-18 23:01:27 +02:00
smallmodel
1a3122bef3
Fix pointer to integer warning 2024-10-18 22:14:45 +02:00
smallmodel
23d7db814c
Use an unsigned integer for the column size
This fixes compile warnings
2024-10-18 22:03:41 +02:00
smallmodel
3174ca5da9
Explicitly mark overridden methods 2024-10-18 22:02:27 +02:00
smallmodel
6a107419e3
Only change the maxclients when the map is different
It fixes an issue where on restart, only the number of snapshot entities was changed without the memory being reallocated for it
2024-10-18 20:26:27 +02:00
smallmodel
6d69a8033f
Initialize the radar 2024-10-18 20:12:47 +02:00
smallmodel
bb9ccdd3b9
Make the bot move slowly when aiming with a semi-auto to improve the spread of their weapon 2024-10-18 20:03:39 +02:00
smallmodel
5b3ce85695
Add a method to get the spread factor 2024-10-18 19:52:49 +02:00
smallmodel
d9166478e5
Set the weapon animation back to idle when finished animating
This fixes an issue that also occur in OG, where some weapons would constantly replay the same sounds (often reload/rechamber) when the weapon entity is removed then added to the client snapshot
2024-10-17 17:50:33 +02:00
smallmodel
02df233205
Refactor UploadCompressed 2024-10-17 15:17:20 +02:00
Jesse Mitchell
11e9d0f9ba
[macOS / Compiler Fix] Alter offset for Mouse Buttons
Fix the mouse buttons code and alter how the mouseButton check works
2024-10-17 01:24:22 +02:00
smallmodel
e9a76f933b
Cast to int32 rather than uint32 when writing the packed velocity
This fixes an issue where the integer could overflow, on some platforms like ARM the integer would be 0
2024-10-16 19:52:47 +02:00
smallmodel
6b6adf1147
Copy second and third triangles, this was forgotten 2024-10-16 18:28:41 +02:00
smallmodel
7d1067108b
Swap the archive type on big endian architectures 2024-10-15 23:38:39 +02:00
smallmodel
e00ebda641
Disable compression for big endian systems 2024-10-15 23:33:00 +02:00
smallmodel
2b6fc0602a
Avoid misaligned memory access 2024-10-15 23:18:14 +02:00
smallmodel
53c09b5342
Correctly swap skeletons for CPUs that don't support misaligned memory access 2024-10-15 23:10:04 +02:00
smallmodel
d78d8abb9f
Correctly load SKB models on big endian architectures 2024-10-15 23:07:58 +02:00
smallmodel
f6b459b408
Correctly copy long/short taking into account memory overlaps 2024-10-15 22:49:23 +02:00
smallmodel
581585a47c
Prevent clearing the event command list if the event system is not initialized
This fixes the issue where the game could crash (especially in optimized release) due to a memory corruption, because the event command list was deconstructed earlier
2024-10-15 20:52:53 +02:00
smallmodel
ddbdcc91dd
Don't use an offset for the reverse table 2024-10-15 19:22:54 +02:00
smallmodel
2e673a6bc9
Delete posted events when canceling 2024-10-13 23:49:52 +02:00
smallmodel
8c2b92d151
Remove player from turret when deleted 2024-10-13 23:22:13 +02:00
smallmodel
032fb9b5ba
Make sure to delete all conditional objects
This fixes the issue where memory would be leaked by conditionals
2024-10-13 22:09:38 +02:00
smallmodel
b1c5d6c62a
Increase the backtrace size to 64 2024-10-13 11:32:20 +02:00
smallmodel
037af5d728
Don't access the removed node 2024-10-13 11:32:11 +02:00
Leszek Godlewski
61a2b6a837
Don't call into the OAL channel in S_OPENAL_GetMusicFilename if QAL init failed
Prevent a crash upon vid_restart
2024-10-13 00:25:17 +02:00
smallmodel
13698a9590
MINS and MAXS must be signed values 2024-10-12 01:16:31 +02:00
smallmodel
4f2907ef77
Remove LADDER_HAND_HEIGHT (useless) 2024-10-12 01:16:04 +02:00
smallmodel
8667d11c52
Prevent SV_DropClient() from being called recursively if the client is dropped by a kick or timeout and has too many reliable commands 2024-10-11 22:55:24 +02:00
smallmodel
24309095ff
Rework bot save/load:
- Only save and restore the userinfo
- Restore bots when the server spawns
- Read client session data like real players
2024-10-11 22:54:40 +02:00
smallmodel
d5a90ded17
Add a comment about primary weapon selection on map change 2024-10-11 21:51:52 +02:00
smallmodel
9d744367ac
Add firstTime parameter for bots 2024-10-11 21:46:49 +02:00
smallmodel
46a46a9536
Remove unnecessary code 2024-10-10 22:29:17 +02:00
smallmodel
224c1df553
Test against entities with BSP solidity when testing client visibility 2024-10-10 21:38:51 +02:00
smallmodel
bcea5af30f
Remove unused sound index that were used for non visible players 2024-10-10 21:22:59 +02:00
smallmodel
211ce09c0b
Don't create sound index for non visible players if net optimization is disabled 2024-10-10 21:22:35 +02:00
smallmodel
1e41a2595d
Leave 1 second minimum between each call to RefindPath() 2024-10-10 20:27:52 +02:00
smallmodel
36a080b3a9
Call InitModelList() once
This fixes an issue where the model list would get initialized each frame
2024-10-10 20:11:12 +02:00
smallmodel
a3050f6c64
Avoid using too much performance to update the loading screen, especially on low-end PCs 2024-10-10 19:48:23 +02:00
smallmodel
be5deddc1d
Make indexes and coordinates 16-bytes aligned 2024-10-10 19:10:12 +02:00
smallmodel
36f9bdb88c
Use intptr_t instead of size_t because intptr_t can hold a pointer which is not always the case for size_t 2024-10-10 19:07:20 +02:00
smallmodel
1a33e9a15b
Add BotRotation class to handle bot turning 2024-10-09 21:21:19 +02:00
smallmodel
4157a49c7e
Remove useless include 2024-10-09 21:21:13 +02:00