Commit graph

1391 commits

Author SHA1 Message Date
smallmodel
292fe8eab4
Stop moving if there is a maximum fire movement so the weapon can be fired 2024-10-04 19:48:09 +02:00
smallmodel
272a401189
Make the bot jump even if the path is not valid to get out of spawns with no path nodes 2024-10-04 19:03:33 +02:00
smallmodel
592e3f47e9
Handle curiosity sounds better by getting the owner of concerned entities and ignoring team mates 2024-10-03 22:54:25 +02:00
smallmodel
cabf1a9043
Make AI path more random 2024-10-03 22:23:46 +02:00
smallmodel
e623541861
Improve the way bots turn, make it smoother 2024-10-03 21:57:29 +02:00
smallmodel
b74b6f8c1d
Use the last attacker origin instead of the last death position 2024-10-03 21:33:12 +02:00
smallmodel
11abdd451f
Fix incorrect dir for PathSearch::FindPathAway 2024-10-03 21:27:30 +02:00
smallmodel
1c3596b1f9
Add more conditions to check for valid enemies when attacking 2024-10-03 20:45:23 +02:00
smallmodel
1e73333fbe
Make bot path more random when idle 2024-10-03 20:22:54 +02:00
smallmodel
6eb49f567a
Made tempaway path better 2024-10-03 20:10:33 +02:00
smallmodel
0120e7e4a5
Add liberation messages 2024-10-03 19:06:03 +02:00
smallmodel
be1ef1de0e
Try respawning when the player should respawn
This fixes an issue where bots wouldn't respawn with `sv_team_spawn_interval` set
2024-10-02 22:18:07 +02:00
smallmodel
ef45c988c6
Fix player spectating often not spectating the next alive player 2024-10-02 22:16:58 +02:00
smallmodel
3ecdee1b89
Make bots play a taunt when they get a kill 2024-10-02 21:54:56 +02:00
smallmodel
c7561b1f6d
Send the GotKill event to the attacker when killed 2024-10-02 21:50:59 +02:00
smallmodel
dfde4a58de
Improve bot movements
- Do random movements if the path cannot be found
- Reset the movement if the bot is really blocked
- Set an higher fall height
2024-10-02 21:29:38 +02:00
smallmodel
090ba308d8
Clear bot buttons after spawning
This fixes a rare occurrence where the bot would fire and reload after spawning
2024-10-02 20:14:24 +02:00
smallmodel
a9b4af98fc
Make bots use random player models 2024-10-02 19:42:03 +02:00
smallmodel
30f5442728
Limit bot vision distance to the farplane 2024-10-02 19:41:25 +02:00
smallmodel
95435ea512
Improve bot movement
- The bot will immediately move upon spawning
- If blocked, the block will move randomly to get out
- There is now only 1/5 chance the bot will go to the location where they died
2024-10-02 18:34:45 +02:00
smallmodel
db625baadd
Set the healrate to 0 (instant) by default on protocol 8 and below (vanilla AA) 2024-10-02 18:12:10 +02:00
smallmodel
200a80aa02
Automatically choose a primary weapon for bots 2024-10-02 17:02:59 +02:00
smallmodel
0472a93c3f
Ignore kills when telefragging
This fixes an issue (that also occur on OG) where telefrags would also count towards teamkills
2024-10-02 17:02:48 +02:00
smallmodel
9b70e646dc
Add "auto" to automatically choose a primary weapon 2024-10-02 16:52:22 +02:00
smallmodel
388ab210a7
Fix incorrect obituary hit location 2024-10-02 16:42:10 +02:00
smallmodel
15e8a71249
Fix bot userinfo accumulating with previous bot userinfo 2024-10-02 15:59:41 +02:00
smallmodel
dfd04f0d41
Reset the player state when using a turret
This prevents the player from using the turret + hold their weapon to crouch and become impossible to hit
2024-10-02 14:50:11 +02:00
smallmodel
88ac49c0c9
Set the correct flag when the player is using a turret 2024-10-02 14:35:37 +02:00
smallmodel
7d6ff3e6a4
Format bg source files 2024-10-02 14:09:36 +02:00
smallmodel
c68fbfacb9
Set the EF_PLAYER_IN_MENU flag when the player is talking 2024-10-02 14:09:27 +02:00
smallmodel
8e51c7ca3b
Fix VEHICLE_TYPE state condition not returning the vehicle type
This fixes player lacking animation when using heavy weapons like the granatwerfer
2024-10-02 14:09:07 +02:00
smallmodel
33064f8392
Set a default minimum delay between text messages 2024-10-02 13:31:45 +02:00
smallmodel
a0c20663a0
Don't make the player not solid in a vehicle slot
This fixes player not taking hits from explosions
2024-10-01 23:25:01 +02:00
smallmodel
253d4e2c4d
Fix jammed door message printed on the first client 2024-10-01 20:26:17 +02:00
smallmodel
6fef42d6e0
Localize the jammed door message 2024-10-01 20:25:51 +02:00
smallmodel
d6a00a5984
Fix IsOpen event not being used
Some multiplayer and single-player scripts rely on it
2024-10-01 20:24:12 +02:00
smallmodel
6103efa8cc
Don't set the entity angles immediately during glue
The game expects objects to glue and keep their initial angles/origin
2024-10-01 19:03:17 +02:00
smallmodel
9a7ba0786c
Set the correct number of bits for the large bullet flag in 2.0 and above
This fixes the issue where there the client (in spearhead protocol mode) would read 2 bits instead of the 1 bit the server sent, which would cause a parse error
2024-10-01 18:52:39 +02:00
smallmodel
935efaeb3a
Fix sound event being posted with incorrect arguments
The argument wouldn't contain "wait" when necessary, which would cause scripts to be stuck forever waiting for sound to be done
2024-10-01 18:09:56 +02:00
smallmodel
3a7e249edf
Refactored svflags and use the correct entity server flags 2024-09-30 19:58:41 +02:00
smallmodel
c406aaf74f
Add a feature that prevents teams from being uneven 2024-09-29 19:00:19 +02:00
smallmodel
b9e9137f90
Fix the spelling for the default explosive sound 2024-09-29 13:03:10 +02:00
smallmodel
bee0bbbe90
Initialize the effect and destroyed model for the specific ThrobbingBox explosive classes 2024-09-29 13:02:56 +02:00
smallmodel
bf184fb719
Use #pragma once instead of #ifndef 2024-09-27 20:19:11 +02:00
smallmodel
bfa0ef64ec
Fix the letterbox not transitioning smoothly
This fixes the letterbox being shown immediately
2024-09-27 19:35:30 +02:00
smallmodel
e43f0a9285
Add a new feature to enable/disable instant messages and text chat with a variable to set the minimum delay between messages 2024-09-26 19:29:56 +02:00
smallmodel
dbc536c6c2
Fix voice chat time not working on FFA 2024-09-26 19:10:01 +02:00
smallmodel
97c9075503
Fix a small mistake in normal calculations for MM_ClipVelocity2D
Same error as commit c76dda1523. This fixes an issue where AI would run too slowly, like the crate guy in the intro of e1l1, the crate guy was too slow that it ran through the intro vehicle
2024-09-26 18:20:25 +02:00
smallmodel
36208de902
Fix spawn time delta 2024-09-25 22:12:29 +02:00
smallmodel
5403577642
Fix the return value of FS_Seek
It returns a negative value on failure, so handle that properly
2024-09-25 21:04:55 +02:00