Commit graph

1,011 commits

Author SHA1 Message Date
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
jeefo
bb2e93a539
fix: potential division by zero 2023-04-25 09:12:06 +03:00
jeefo
4fb46bd6ec
build: use -fPIC only for x64 binaries 2023-04-25 00:06:24 +03:00
Владислав Сухов
0dc6c0f5db
cfg: ru_lang.cfg: fix typos 2023-04-23 19:07:23 +06:00
Владислав Сухов
bfe459e758
Merge pull request #438 from yapb/vladislav4kz-patch
Some fixes and additions
2023-04-20 21:20:11 +06:00
Владислав Сухов
5adb9deb15 cfg: ru_lang.cfg: translated new strings 2023-04-20 11:46:23 +00:00
Владислав Сухов
7ebe866653 cfg: update english template for language configs 2023-04-20 11:25:44 +00:00
Владислав Сухов
02ff34a6ef control: added some missing notifications displayed on hud when using features from graph editor menu 2023-04-20 11:20:03 +00:00
Владислав Сухов
3db5362d27 fix: graph checking feature doesn't output a message on hud when called from menu 2023-04-20 11:15:52 +00:00
Владислав Сухов
6610118582 control: enable graph editor when opening the debug goal menu 2023-04-20 11:04:47 +00:00
Владислав Сухов
f67c0ab75a control: don't enable spawn points highlighting by toggling noclip or auto add node mode when graph editor is enabled 2023-04-20 10:56:37 +00:00
Владислав Сухов
422772d3b4
cfg: difficulty.cfg: update difficulty definition example
fix: some mistakes in descriptions of difficulty variables
2023-04-19 13:14:20 +06:00
Владислав Сухов
dc7ccb2408
Merge pull request #437 from yapb/russian_language_update
cfg: ru_lang.cfg: translated new strings
2023-04-19 12:55:13 +06:00
Владислав Сухов
143a86b191 fix: english grammar 2023-04-19 06:51:49 +00:00
Владислав Сухов
851cb2ab93 fix: some typos in cvar descriptions, etc. 2023-04-19 06:39:18 +00:00
Владислав Сухов
e4f7a01348 cfg: ru_lang.cfg: translated new strings 2023-04-19 06:28:56 +00:00
jeefo
048f47e863
fix: clear grenade pointers before checking active grenades (ref #436) 2023-04-17 12:59:26 +03:00
jeefo
6ef03fc9fd
nav: reset goal when clearing current path
nav: stop navigation if last node is occupied
aim: speedup aiming only when enemy reachable
2023-04-16 19:37:26 +03:00
jeefo
3f3e20ece0
aim: fix: prediction for body target 2023-04-16 03:45:34 +03:00
jeefo
3729be6aab
cfg: removes some bad names 2023-04-16 01:26:09 +03:00
jeefo
595430e8d1
fix: msvc build 2023-04-15 04:16:26 +03:00
jeefo
2765eed7ac
crlib: switch to new hashmap 2023-04-15 04:10:09 +03:00
jeefo
c856b55302
bot: minor tweak to button selection while with knife 2023-04-13 23:02:00 +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
c3a73d109d
nav: fallback to anything visible in find nearest node (ref #432) 2023-04-13 14:35:29 +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
13f4cad6cd
crlib: update submodule 2023-04-13 03:24:43 +03:00
jeefo
77c39812f8
build: disable control-flow architecture protection
fix: building since last commit
2023-04-13 03:23:59 +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
7c76c57974
mgr: enable balancing bot difficulty on interval instead of on new round (closes #400) 2023-04-12 23:03:36 +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
6aabe20e95
aim: do not pick enemies wearing FL_NOTARGET flag 2023-04-12 21:36:48 +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
000a941139
aim: tweak prediction time 2023-04-12 00:19:29 +03:00
jeefo
d73c97b6ae
fix: logic typo 2023-04-12 00:04:41 +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
Владислав Сухов
c13d9c8f53 cfg: ru_lang.cfg: translated new strings 2023-04-11 15:27:41 +00:00
Владислав Сухов
902fb23319 cfg: remove the yb_whose_your_daddy cvar 2023-04-11 10:02:47 +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
58111bfd32
combat: tweaked dodge timers 2023-04-02 14:42:02 +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