Commit graph

191 commits

Author SHA1 Message Date
jeefo
7f4d4748fa
fix: center-screen messages not appearing (fix: #446)
fix: crash when creating too much threads
refactor: fix typos in comments in headers
2023-05-12 22:12:22 +03:00
jeefo
7b58d51973
bot: refactor and clean up old code
fix: crash when saving old format pwf on hlds
bot: moved sdk headers to separate submodule
nav: improved unstuck and avoidance (thanks @commandcobra7) code
bot: use correct path slashes depending on platform for all data
cfg: removed simplified chines' translation, as it's too outdated
2023-05-12 20:00:06 +03:00
jeefo
48e157c7b4
nav: allow null-velocity jump links
nav: fix: bots failure to switch weapon back after jump
refactor: re-organize some sources
2023-05-10 09:08:34 +03:00
jeefo
61a4f17263
bot: cosmetic fixes 2023-05-08 23:54:38 +03:00
jeefo
ffffca3fd9
aim: tweaks to fail predict code 2023-05-08 21:48:59 +03:00
jeefo
3009b4f50a
bot: add basic support to play as zombie bot
aim: check that we're actually hit the target in body checks
2023-05-08 00:44:14 +03:00
jeefo
0072bbb413
aim: fail prediction more correctly 2023-05-07 13:21:49 +03:00
jeefo
2b2b82ee13
fix: bot is marked as stale when not needed
bot: port enemy noticeable function from regamedll
2023-05-07 01:04:09 +03:00
jeefo
a616f25b1a
bot: implemented asynchronous pathfinding
nav: floyd-warshall matrices and practice updates are done asynchronously by now
add: yb_threadpool_workers cvar, that controls number of worker threads bot will use
add: cv_autovacate_keep_slots, the amount of slots to keep by auto vacate
aim: enemy prediction is now done asynchronously by now
bot: minor fixes and refactoring, including analyze suspend mistake (ref #441)

note: the master builds are now NOT production ready, please test before installing on real servers!
2023-05-06 20:14:03 +03:00
jeefo
e7712a551a
backport: nodes flooder (analyzer) from cs-ebot
analyze: allow to disable goal marking
analyze: add cvars descriptions and bounds
nav: added optional post path smoothing for astar algorithm
nav: now bots will use Dijkstra algo instead of floyd-warshall if memory usage too high (controlled via yb_path_floyd_memory_limit cvar) (fixes #434)
nav: vistable are now calculated every frame to prevent game-freeze during loading the game (fixes #434)
graph: pracrice reworked to hash table so memory footprint is as low as possible (at cost 5-10% performance loss on practice) (fixes #434)
control: bots commands now is case-insensitive
bot: major refactoring of bot's code
nav: issue warnings about path fail only with debug
practice: check for visibility when updating danger index
analyzer: suspend any analyzing on change level
control: add kickall_ct/kickall_t
nav: increase blocked distance in stuck check
2023-05-02 09:42:43 +03:00
Владислав Сухов
851cb2ab93 fix: some typos in cvar descriptions, etc. 2023-04-19 06:39:18 +00:00
jeefo
048f47e863
fix: clear grenade pointers before checking active grenades (ref #436) 2023-04-17 12:59:26 +03:00
jeefo
2765eed7ac
crlib: switch to new hashmap 2023-04-15 04:10:09 +03:00
jeefo
4a00459c26
bot: minor tweaks to knife mode behaviour 2023-04-13 22:48:48 +03:00
jeefo
5bc4e1c675
fix: do not apply knife mode if we're just have knife in hands
nav: increase search radius in checking node reachability
2023-04-13 21:12:49 +03:00
jeefo
5b7e58d360
nav: tweaked reachability timers
nav: ignore pickup item if stuck
fix: bad loading for graphs since last commit
2023-04-13 14:07:56 +03:00
jeefo
9c73a070b7
aim: do not reduce prediction for grenades
refactor: standardize access to bot files
graph: allow to specify graph upload url via cvar
graph. do not spam if extensions files  are not found
2023-04-13 03:05:35 +03:00
jeefo
a088528f46
nav: removed strange behavior for ducking when hunting 2023-04-12 23:41:27 +03:00
jeefo
cb115b1881
nav: reduce a little nav reach time timer
nav: switch back to main weapon only if on the floor
2023-04-12 22:50:26 +03:00
jeefo
085c4aab85
bot: remove check for weapon switch time by now 2023-04-12 11:28:57 +03:00
jeefo
e9b181f438
bot: only stop for reloading in normal task 2023-04-12 00:26:06 +03:00
jeefo
82c84040bb
aim: use more prediction if enemy too close
fix: picking up the weapons or items
2023-04-11 23:58:58 +03:00
jeefo
1a650c57ce
graph: reworked buckets so they can handle very large number of nodes
graph: reworked buckets so they can handle very large number of nodes
aim: bots should more respect headshot allow option (needs testing)
aim: incorporated never-finished changes from pr #204
nav: increased reachability timers a bit
nav: ensure buckets has enough nodes before use they
conf: introduced max recoil in difficulty config file
bot: overall fixes to jason mode, treat knife in hands and no weapons as jason mode too
bot: changed default difficulty level for bots to level 3
fix: knife attacks not working since last commit (fixes #429)
fix: hostage rescue not working since last commit (fixes #427)
refactor: use range loops for graph outside graph class when possible
2023-04-11 22:32:28 +03:00
Владислав Сухов
3232c5a8b0 fix: typos in yb_economics_disrespect_percent cvar description 2023-04-11 15:31:56 +00:00
jeefo
29c00565dc
aim: verify camp angles from nav data before using them
aim: tweaked a bit grenade handling, so bots should use them more
aim: reduce time between selecting grenade and throwing it away
aim: removed hacks in look angles code, due to removing yb_whoose_your_daddy cvar
aim: use direct enemy origin from visibility check, and not re-calculate it
aim: update enemy prediction, so it now depends on frame interval for a bot
aim: additional height offset are tweaked, and now used only for difficulty 4
nav: tweaked a bit player avoidance code, and it's not preventing bot from checking terrain
nav: do not check banned nodes, when bucket sizes re too low
nav: cover nodes are now selected depending on total bots on server
nav: let bot enter pause task after long jump
nav: extend velocity by a little for a jump, like it was in first versions of bot
nav: stuck checking is now taken in account lower minimal speed if bot is ducking
fix: navigation reachability timers, so bots will have correct current node index while camping
fix: bots are unable to finish pickup or destroy breakable task, if target is not reachable
fix: cover nodes are now calculated as they should
fix: manual calling bots add_[t/ct] now ignores yb_join_team cvar
bot: tweaked a little difficulty levels, so level 4 is now nightmare level, and 3 is very heard
bot: minor refactoring and moving functions to correct source file
bot: add yb_economics_disrespect_percent, so bots can ignore economics and buy more different guns
bot: add yb_check_darkness that allows to disable darkness checks for bot, thus disallowing usage of flashlight
bot: camp buttons are now lightly depends on bot health
chat: welcome chat message from bots is now sent during first freeze time period
crlib: switch over to stdint.h and remove crlib-own types
crlib: fixed alignment in sse code
2023-04-07 14:46:49 +03:00
jeefo
722e4eda93
nav: send terrorists directly guard planted bomp
aim: various fixes and tweaks
bot: removed yb_whose_your_daddy cvar
2023-04-04 16:53:01 +03:00
jeefo
38f2716edb
chatter: do not respect timers while discconnecting bot (ref #424 )
combat: tweaked combat behavior a little (do not use strafe in narrow places)
2023-04-03 11:55:01 +03:00
jeefo
4b9acd5d5c
revert: part of changes with bot icons (ref #424) 2023-04-03 10:12:09 +03:00
jeefo
f266c24089
aim: forget last enemy in last enemy aim state too 2023-04-02 14:30:17 +03:00
jeefo
9ddcef2dd4
aim: reducec headshot pct, if bot is too highskilled
aim: new cpu-friendly headshot penetration function (yb_shoots_thru_walls 3). still testing
nav: use more high range for checking occupied point.
nav: if last navigation node is used by someone, assume route ended
2023-04-02 14:13:52 +03:00
jeefo
53df621dfc
build: reworked build and package to simplify process
build: reworked build and package to simplify process
build: windows dll is now compiled by clang, msvc build added to extras package
fix: clear all the implicit conversions in the code (also fixed some bugs)
fix: crash on  never xash3d-fwgs engine
fix: fixed bad bot behaviors on aarch64
fix: crash on some maps due to missing previous node
fix: finally removed memset(this) within bot creatin
2023-04-02 12:17:12 +03:00
jeefo
19c5e6dd4d
fix: do rotation instantly, and not on round start
so it works on infinite round like in csdm
2023-03-25 05:01:58 +03:00
jeefo
6204192703
fix: logic in cover and defend node practice filtering
fix: predict enemy takes in account distance to the enemy
2023-03-23 16:33:59 +03:00
jeefo
8916dd2b70
nav: allow to get more distant nodes to defend
aim: apply distance restriction for aiming node if not suspecting/hearing enemy
nav: tweaked a little node reachability distances
add: yb_avoid_grenades cvar
ai: bot's will try to cover if blinded and highskilled
2023-03-23 15:22:29 +03:00
Владислав Сухов
8e0512c49d fix: spelling 2023-03-20 13:47:14 +00:00
commandcobra7
9a8ca06e31
graph: fixed CT camp point color
combat: changes and additions to attack moves
refactor: various fixes
---------

Co-authored-by: jeefo <jeefo@rwsh.ru>
2023-03-20 09:42:55 +03:00
jeefo
9d6f823f1e
add: utility cvars on user requests
yb_quota_adding_interval
yb_quota_maintain_interval
yb_breakable_health_limit
yb_object_destroy_radius
2023-03-13 16:08:29 +03:00
jeefo
2718adbb8f
fix: code formatting 2023-03-13 15:39:15 +03:00
Владислав Сухов
da574c11b3 add: teamkill chatter event 2023-01-24 14:38:08 +00:00
Владислав Сухов
2d2ca5fd22
Some menu tweaks (#397)
* add: debug goal menu and new node flags to the flag selection menu

* translate: russian: translated new lines

* update: bump the year
2023-01-22 19:12:03 +06:00
commandcobra7
50aecc1332
fix: don't allow to install a silencer if we have a visible enemy
aim: fixed the distortion of angles while camping
add: special ladder handling (code merged from podbotmm)
graph: reworked some node coloring and link color
2023-01-18 22:32:38 +03:00
commandcobra7
65884329dc
ai::some tweaks to bot behavior. (#386)
desire: disable hunting desires if bots are now vip or have hostages.
bot: disallow item acquisition if we have a visible enemy.
2022-11-27 05:08:38 +03:00
jeefo
1debbe3654
aim: use aiming node instead of nearest to predict enemy position (suggested by @commandcobra7) 2022-11-11 21:23:15 +03:00
commandcobra7
4160aa585d
fix: check the last enemy presence without looking at the wall (related to #303) (#377) 2022-10-18 22:23:29 +03:00
commandcobra7
07a8a5c81e
fix: bots do not look at the wall while camping. (solves #303) 2022-09-13 10:57:59 +03:00
dmitry
5bef87900a
fix: possible fix for #330 by @commandcobra7 2022-09-10 02:31:53 +03:00
jeefo
b606b78cda
improve: use ScoreAttrib message to detect if bot is a VIP or not. (#356)
This should resolve problems with bot behavior, when plugins changes VIP player model to something else.
2022-08-03 23:59:57 +03:00
Владислав Сухов
b42e4e312a
add: yb_pickup_best cvar (#344) 2022-06-10 23:18:06 +03:00
dmitry
af992c374c
fix: wrong data type for flash level (flashbat message) 2022-04-14 12:36:23 +03:00
dmitry
06774a4282
fix: do not prevent buying on fy_* maps, (fix #325)
If you need to prevent bots buying on specific map use map-cfg with yb_botbuy 0.
2022-04-03 14:43:29 +03:00