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
smallmodel
f27be7314e
Add a BotMovement class for managing bot movements
2024-10-09 20:46:39 +02:00
smallmodel
0b07858bfc
Refactor PlayerBot to use a separate controller class, alongside classes that manage bots
2024-10-08 22:17:22 +02:00
smallmodel
7dbf1d7bf5
Add a method to get the ladder
2024-10-08 21:52:49 +02:00
smallmodel
34c44ab2cf
Add a method to get the max fire movement
2024-10-08 21:52:43 +02:00
smallmodel
5ec106642d
Fix node cover mask
2024-10-08 21:00:01 +02:00
smallmodel
dcd9ce91a8
Use the raw integer value of the squared distance when comparing nodes
2024-10-08 20:42:22 +02:00
smallmodel
a05fbfe69b
Fix incorrect value of AI_CONCEALMENT_MASK
2024-10-08 20:38:34 +02:00
smallmodel
feb76f4fb4
Allow entities other than SimpleActor for finding covers and sniper nodes
2024-10-08 20:31:50 +02:00
smallmodel
d467b68187
Add node editing support, with a way to dynamically load, remove and modify nodes while editing
2024-10-08 20:25:33 +02:00
smallmodel
de18fa2860
Refactor Entity::FovCheck
2024-10-08 20:14:10 +02:00
smallmodel
58f6c719a9
Add code to select current node in view and draw it for editing later
2024-10-08 01:14:40 +02:00
smallmodel
b2fa21a111
Format navigation source file
2024-10-07 23:52:39 +02:00
smallmodel
f94099e350
Don't link nodes that can't be reached with an high fall height
2024-10-07 23:49:39 +02:00
smallmodel
e2f11879d5
MAXS_Z is 94
2024-10-07 23:05:37 +02:00
Sébastien Noel
aa15b3ea7f
Allow to build against system libs instead of bundled copy
2024-10-07 20:51:23 +02:00
smallmodel
1624d10a01
Don't check for bots for smoothclients
2024-10-07 00:51:01 +02:00
smallmodel
0d53adf9bd
Rework bot spawning
...
- Add a sv_sharedbots to specify if real client slots should be used
- Removed m_bSpawnBot from level, bots are spawned directly in G_BotBegin instead
- sv_numbots can be used to directly configure the number of bots to spawn
- Fix the way bots spawn/unspawn on-demand
- Documented g_bot functions
2024-10-06 22:57:39 +02:00
smallmodel
295c267c31
Automatically join a team if the bot was put in spectator, and automatically select a primary weapon if none was selected
2024-10-06 22:57:31 +02:00
smallmodel
d4b3f7378e
Don't update the new path check time when there is a new move
2024-10-06 22:29:55 +02:00
smallmodel
a503e18966
Make the bot move to the enemy only if it was seen
2024-10-06 22:29:29 +02:00
smallmodel
b1f7d641fc
Use game.maxclients for the maximum number of bots
2024-10-06 21:44:10 +02:00
smallmodel
5019d1e4f9
Spawn bots after the server has spawned
2024-10-06 21:43:42 +02:00
smallmodel
2aa0205872
Clear client persistent to avoid leaking data
2024-10-06 21:01:05 +02:00
smallmodel
a7befa8882
When a client disconnects, delete the entity on the next frame if the function is called while in thinks
2024-10-06 21:00:40 +02:00
smallmodel
a5058c7bab
Call Delete() instead of deleting the item as it could cause issues if the item is being deleted while iterating over edicts
2024-10-06 19:57:03 +02:00
smallmodel
f5558d106e
Don't set the last radar time if the entity number is above the max number of clients
2024-10-06 19:19:44 +02:00