smallmodel
aa0c704655
Instead of resetting the state, prevent using the turret if the player is charging
2024-10-20 22:42:05 +02:00
smallmodel
4da099d15c
Add GetChargeFraction()
2024-10-20 22:41:21 +02:00
smallmodel
0bb11d76bd
Remove accidental print
2024-10-20 22:22:36 +02:00
smallmodel
ed05983a57
Use ceiling for the packed anim time
...
This is an attempt to fix an issue where the animation time would deviate from 1 bit and would go back and forth
2024-10-20 22:19:57 +02:00
smallmodel
909dc96c2f
Use a separate CG_InterpolateAnimParms function for animation
2024-10-20 22:18:40 +02:00
smallmodel
863a6293e7
Don't draw the lensflare in UI
2024-10-20 19:12:42 +02:00
smallmodel
c1433a6d9e
Use the correct stopwatch type for when the sticky bomb gets wet
2024-10-20 18:54:36 +02:00
smallmodel
374b8b9ae7
Add fuse stopwatch
2024-10-20 18:52:50 +02:00
smallmodel
e2f5c80afc
Stop charging the weapon when using turret
2024-10-20 18:46:23 +02:00
smallmodel
29911380d1
Use the weapon owner rather than the last successful hit entity
2024-10-20 01:00:55 +02:00
smallmodel
405a4bfe28
Fix debug line delay not working properly
2024-10-20 00:55:08 +02:00
smallmodel
87e41f0c21
Set the model before anything else
2024-10-19 22:44:07 +02:00
smallmodel
dce2bcca7c
Initialize bModelSet
2024-10-19 22:41:32 +02:00
smallmodel
00421a7666
Process client events with the correct order
...
Effects that are using commanddelay were not working at all, this fixes the processing of delayed events so they get processed sequentially and at the correct time
2024-10-19 22:38:46 +02:00
smallmodel
fd426926e9
Set all alpha color channel in the current static model to prevent vertices from hiding randomly
2024-10-19 21:54:08 +02:00
smallmodel
d83634f8a2
Allow to specify a model when spawning an entity
2024-10-19 21:40:23 +02:00
smallmodel
6efac1c0f7
Don't set animation
2024-10-19 21:27:03 +02:00
smallmodel
3a68ca7f4b
Handle static shader data and entity surface values for when deforming vertexes
2024-10-19 20:45:50 +02:00
smallmodel
8898919fd3
Correctly parse lightingSpecular parameters
2024-10-19 20:45:24 +02:00
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