Commit graph

45 commits

Author SHA1 Message Date
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
1a33e9a15b
Add BotRotation class to handle bot turning 2024-10-09 21:21:19 +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
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
09eb130b6d
Update curiosity and MoveDone() 2024-10-06 14:24:32 +02:00
smallmodel
5869ba06bc
Update the attack time when moving 2024-10-06 01:13:12 +02:00
smallmodel
b6c2638c1b
Make curiosity random 2024-10-06 01:01:03 +02:00
smallmodel
9293930628
Make bots jump off ladder
They don't support ladders yet
2024-10-05 23:59:32 +02:00
smallmodel
46935b165c
Fix MoveDone() not checking for height, also return false when temporarily getting away 2024-10-05 23:57:02 +02:00
smallmodel
fd69d6b42c
Allow the bot to get out if stuck while falling 2024-10-05 20:46:16 +02:00
smallmodel
355491a950
Reduce the bot attack time to avoid the bot getting stuck 2024-10-05 14:47:09 +02:00
smallmodel
7caa0adbab
Toggle use button and don't use if the door is open 2024-10-05 14:46:44 +02:00
smallmodel
732fd98593
Make the bot strafe when attacking 2024-10-05 13:43:09 +02:00
smallmodel
21a610d22c
Fix NoticeEvent ignoring other players on FFA 2024-10-05 11:56:08 +02:00
smallmodel
b1e1b6cc68
Properly aim at the last enemy position with some randomness applied 2024-10-04 22:10:51 +02:00
smallmodel
da86e0ce34
Fix bot incorrectly jumping 2024-10-04 21:23:49 +02:00
smallmodel
6ca12eb0de
Fix bot sometimes being stuck respawning between team spawn intervals 2024-10-04 20:27:28 +02:00
smallmodel
a25442368b
Make the bot jump more to avoid getting stuck 2024-10-04 20:25:05 +02:00
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
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
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
3ecdee1b89
Make bots play a taunt when they get a kill 2024-10-02 21:54:56 +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
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
200a80aa02
Automatically choose a primary weapon for bots 2024-10-02 17:02:59 +02:00
smallmodel
e50a041c12
SimpleEntity subclass flags name now starts with ECF_ prefix 2023-11-16 23:17:06 +01:00
smallmodel
defa297a56
Fixed debug lines being always drawn 2023-11-13 20:39:03 +01:00
smallmodel
6f03c88ad5
Formatted playerbot source file 2023-11-13 20:33:06 +01:00
smallmodel
3ec980c8ec
Fixed bots being blocked 2023-11-13 20:31:50 +01:00
smallmodel
2e4759ab1f
Using m_RunLabel instead of trying to get the game script everytime 2023-08-19 20:49:20 +02:00
smallmodel
ef18c389be
Cleanup entity class
Added new parameter for CanSee
Added Entity::SafeSolid and Entity::Sink
2023-08-09 23:09:09 +02:00
smallmodel
5333c7ff4a
Removed empty line before opening braces 2023-07-05 20:52:55 +02:00
OM
e4fa0fff3a Renamed **game** to **fgame** 2023-06-15 23:44:02 +02:00
Renamed from code/game/playerbot.cpp (Browse further)