smallmodel
b7a643aa59
Fix AI wrongly aiming at the wrong direction
2024-10-22 21:51:03 +02:00
smallmodel
3d454c90cb
Rework the target list, use a container instead of an hash set so the target list gets archived correctly
...
This fixes an issue when loading from a save. A variable referencing target list container would have random entities in it, which would cause errors and crashes when trying to do an action on the array of entities
2024-10-22 20:05:53 +02:00
smallmodel
590b3f5cbb
Fix class ID for throbbing box classes
2024-10-22 00:48:11 +02:00
smallmodel
f87e6d5938
Fix barrel jitter
...
This fixes barrel objects improperly jittering back and forth, sometimes forever
2024-10-21 22:12:13 +02:00
smallmodel
901e81cdf5
Format barrels source file
2024-10-21 21:59:12 +02:00
smallmodel
8ecbe1dd79
Set the script origin local angles and angles when setting the angle
...
This fixes the issue where a ScriptOrigin would rotate in the wrong direction
2024-10-21 20:27:52 +02:00
smallmodel
64696c7645
Return the angle using the forward vector
2024-10-21 20:24:47 +02:00
smallmodel
ff0dcbd786
Add G_GetAngle
2024-10-21 20:24:33 +02:00
smallmodel
f5391bbfa0
Use BUTTON_ANY to check for input rather than BUTTON_MOUSE
2024-10-21 19:03:19 +02:00
smallmodel
8f54f4b806
When loading from save, set the edict model directly rather than loading and resetting animations
2024-10-20 23:25:42 +02:00
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
c1433a6d9e
Use the correct stopwatch type for when the sticky bomb gets wet
2024-10-20 18:54:36 +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
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
ef09f136d4
Fix sound indexes not erased correctly
2024-10-18 23:15:59 +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
3174ca5da9
Explicitly mark overridden methods
2024-10-18 22:02:27 +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
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
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
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
037af5d728
Don't access the removed node
2024-10-13 11:32:11 +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
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
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
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