Commit graph

826 commits

Author SHA1 Message Date
Владислав Сухов
2c9897c8f0 fix: typos 2023-05-09 19:31:14 +00:00
Владислав Сухов
da524295db fix: spelling 2023-05-09 19:30:08 +00:00
Владислав Сухов
12c72ebd06 cfg: ru_lang.cfg: translated new strings 2023-05-09 19:27:39 +00:00
jeefo
61a4f17263
bot: cosmetic fixes 2023-05-08 23:54:38 +03:00
jeefo
2ff06051de
game: clamp correctly money amount 2023-05-08 23:11:17 +03:00
jeefo
0842dd7b4e
game: clamp money in case overflowed 2023-05-08 23:07:07 +03:00
jeefo
ffffca3fd9
aim: tweaks to fail predict code 2023-05-08 21:48:59 +03:00
jeefo
e38bca9c14
fix: comparison typo in body checks 2023-05-08 00:57:46 +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
70ff2d0ec2
fix: possible crash with vistable rebuild (ref #443) 2023-05-07 21:28:24 +03:00
jeefo
0072bbb413
aim: fail prediction more correctly 2023-05-07 13:21:49 +03:00
jeefo
9f41cfb33f
fix: syntax error 2023-05-07 01:05:35 +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
cf9817ab10
bot: remove detection of official csbot
not sure for what it was used before
2023-05-06 20:32:49 +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
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