Commit graph

444 commits

Author SHA1 Message Date
smallmodel
50a3df8dff
Fix the instant message maximum number on AA and SH/BT 2024-10-02 21:49:20 +02:00
smallmodel
e01e989c22
Check if the snap is valid when notifying for hit/kill
The game would crash otherwise, this is also an issue in the original game
2024-10-02 20:10:29 +02:00
smallmodel
2f8b6a2009
Satisfy stufftext tests 2024-10-02 12:27:57 +02:00
smallmodel
83938471ca
Set the blue component of the temp model entity
This fixes particles having an incorrect color sometimes
2024-09-29 15:41:35 +02:00
smallmodel
0692b9dcdb
Fix events sometimes not being posted to entities
Fixes #253
2024-09-25 19:41:21 +02:00
smallmodel
3fb699979c
Fix small equality mistake (expected assignment) 2024-09-23 22:44:11 +02:00
smallmodel
85f15a1f28
Delete spawnthings when their last temp model is freed
This fixes:
- Losing FPS in a match with a lot of players, due to a massive amount of emitters getting spawned every time a weapon fires
- Memory leaks due to emitters staying in memory forever after being spawned
2024-09-23 19:29:07 +02:00
smallmodel
758017b638
If the temp model being removed is the head one, use its sibling 2024-09-23 19:16:31 +02:00
smallmodel
764b95f617
Set a better name for binaries to properly distinguish the name of the architecture 2024-09-22 14:56:02 +02:00
smallmodel
78918eb59d
Correctly process statements with a semicolon 2024-09-22 01:23:23 +02:00
smallmodel
e85d3f2a19
Pass the correct size to Q_strncpyz 2024-09-21 22:50:53 +02:00
smallmodel
f9d264058b
Use safe version of sprintf and strcpy 2024-09-20 23:08:53 +02:00
smallmodel
e27c0716c4
Allow more stufftext commands when the local server is running
Those stufftext commands are primarily used by single-player maps and briefings
2024-09-19 20:14:15 +02:00
smallmodel
35d037daff
small detail change 2024-09-19 20:00:53 +02:00
Sébastien Noel
a010e648ee Fix a few typos 2024-09-19 10:52:47 +02:00
smallmodel
1c7b561aa9
Filter stufftext commands
This works by allowing the stufftext server command to be executed if the statement only contains whitelisted commands and variables
2024-09-18 23:51:39 +02:00
smallmodel
8fc6b6e3c3
Correctly handle quick message and message mode for the chat window
This fixes the chat window not being put in quick message mode at all when intended, now it also correctly handle team/private message modes
2024-09-18 22:14:16 +02:00
smallmodel
08e09c3b4c
Avoid setting variables with the same value
This prevents the console from being spammed with constant variable change when `developer` is set to 2
2024-09-18 20:55:02 +02:00
smallmodel
9acea3484d
Play zing sounds only if the location if the zing is valid
This fixes a potential crash where uninitialized position would be passed to the sound system
2024-09-16 17:39:15 +02:00
smallmodel
4b0696a187
Implement remaining methods of ClientGameCommandManager 2024-09-15 00:42:22 +02:00
smallmodel
9b417c9b26
Add EV_Client_ForceFeedback (unused) 2024-09-14 13:20:55 +02:00
smallmodel
c68f23cdaf
Fix compilation warnings 2024-09-11 00:21:31 +02:00
smallmodel
3a5da64c6f
Make radar clients speak on mohaas/mohaab 2024-09-10 19:50:43 +02:00
smallmodel
9c018a2330
Implement CGM_FENCEPOST 2024-09-10 19:40:53 +02:00
smallmodel
999e0fd721
Implement test emitter 2024-09-09 21:48:40 +02:00
smallmodel
47131dec44
Fix wrong special effects count 2024-09-09 21:43:20 +02:00
smallmodel
725561b655
Fix the usage of memory, strings, constant and parameters 2024-09-08 23:54:47 +02:00
smallmodel
eb7af2bce9
Implement basic test emitter functions 2024-09-08 23:33:55 +02:00
smallmodel
065c791a10
Implement CG_ResetEffectCommandCvars 2024-09-08 19:29:40 +02:00
smallmodel
6b902e7f5d
Remove "unimplemented" comment 2024-09-08 18:49:45 +02:00
smallmodel
df0cb87b35
Implement CG_AddLightShow (cg_acidtrip) 2024-09-08 18:48:15 +02:00
smallmodel
0b9687fea4
Implement functions for printing content types, surface properties and surface types 2024-09-08 18:39:39 +02:00
smallmodel
bca6d656b6
Fix bad verts value passed to CG_AddFragmentToScene 2024-09-08 17:53:35 +02:00
smallmodel
ffc3580d43
Implement CG_CheckCaptureKey 2024-09-08 16:31:19 +02:00
smallmodel
cd9b1a741f
Match CG_PermanentMark parameters
This fixes #355
2024-09-07 23:57:17 +02:00
smallmodel
14d1fae54a
Implement all treadmark functions 2024-09-06 22:10:22 +02:00
smallmodel
a1601be7a6
Implement code to make tread mark decals 2024-09-05 23:54:01 +02:00
smallmodel
58e39add5b
Implemented treadmarks update functions 2024-09-05 01:04:53 +02:00
smallmodel
9eed0eab5f
Implement CG_PermanentMark 2024-09-04 21:51:42 +02:00
smallmodel
b1e640ad1d
Implement CG_PermanentMark 2024-09-04 21:41:16 +02:00
smallmodel
1e0195f6e3
Add variables that will be used in unimplemented functions 2024-09-04 20:29:29 +02:00
smallmodel
5052449e38
Fix invisible bullet tracers 2024-09-02 00:25:07 +02:00
smallmodel
81866d96e0
Make flesh impacts properly work 2024-08-31 18:02:07 +02:00
smallmodel
434aaf3eaf
Initialize last animation time 2024-08-05 23:41:17 +02:00
smallmodel
ebfb6d1846
Fix inwardsphere not being used
This fixes emitters looking incorrect, like `animate/adamspark.tik`, for the explosion of electric panels
2024-07-27 23:20:30 +02:00
smallmodel
93cd470659
Fix broken cgame state saving 2024-07-15 23:44:11 +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
7ddee0100e
Implements CG_BodyFallSound() 2024-06-14 22:24:55 +02:00
smallmodel
6b869c4c0d
Use an enumeration instead of raw values 2024-06-14 21:39:54 +02:00
smallmodel
8a28ad0c36
Fixed explosion effects on protocol below 2.0 2024-06-09 20:16:14 +02:00