Commit graph

265 commits

Author SHA1 Message Date
jeefo
0b8cd9a01c
bot: benefit from sse4.x intrinsics if cpu capable
bot: speed some string functions if sse 4.x available
build: allow to build with native optimizations by settings -Dnative=true
2023-06-09 06:27:04 +03:00
jeefo
7f07817c52
fix: query hook not working on linux 2023-06-08 16:59:52 +03:00
jeefo
64aa02955c
fix: bot: some static-analyzer warnings fixed 2023-06-07 23:31:03 +03:00
jeefo
2928ba34fd
fix: nav: remove trace channel stuff completely 2023-06-07 23:27:11 +03:00
jeefo
f7785e2424
fix: nav: fix: nav: correct player feet in calculated jump direction (fix of previous commit) 2023-06-07 23:23:50 +03:00
jeefo
c3f9c02ec5
fix: nav: correct player feet in calculated jump direction
fix: planner: correct radius checking in astar path smoothing
2023-06-07 23:22:30 +03:00
jeefo
5d94dec74c
logger: allow to disable logging into the file 2023-06-04 22:19:08 +03:00
jeefo
fb672e70d4
redo: aim: remove redundant code 2023-06-04 22:14:30 +03:00
jeefo
50e6939cd0
Revert "fix: enemy selection when several shielded enemies are visible. (#451)"
This reverts commit dd1adab3b6.
2023-06-04 22:11:26 +03:00
jeefo
8523d6b5ab
Revert "aim: remove redundant code"
This reverts commit 5d5c3a5b23.
2023-06-04 22:11:18 +03:00
jeefo
5d5c3a5b23
aim: remove redundant code 2023-05-31 10:34:27 +03:00
spodlesniy
dd1adab3b6
fix: enemy selection when several shielded enemies are visible. (#451)
opt: minor optimizations in conditions (changed sequence of OR checks).
2023-05-30 08:47:28 +03:00
jeefo
e016fa299e
fix: lightlevel calculation crash on 64bit xash 2023-05-25 15:19:08 +03:00
jeefo
b816cd39aa
aim: fix: ensure pathfinder succeeded when predicting
bot: support for x64 xash fwgs builds
2023-05-25 05:20:30 +03:00
jeefo
fcda101224
aim: fix: check last enemy not current enemy in prediction 2023-05-25 00:07:03 +03:00
jeefo
9ff97c1997
aim: wipe prediction if destination is not index isn't exists
bot: remove copyright year, and provide original author nickname
lang: fix some spelling
2023-05-24 23:41:23 +03:00
commandcobra7
9ae7c38b80
fix: removed unnecessary codes in ladder handling
fix: collision case the bot can jump if it's not on the ladder, so it won't press the jump button when going up the ladder
2023-05-15 11:44:02 +03:00
jeefo
48fba9a6b7
refactor: move config reader into right class 2023-05-14 14:48:06 +03:00
jeefo
b722b2d327
nav: make bot use computed jumps on analyzed maps 2023-05-13 00:08:53 +03:00
jeefo
5a6dc52956
aim: do not change look at at dest origin when failing predict 2023-05-12 23:21:18 +03:00
jeefo
57f5c1f323
nav: pause a little if doing jump sequence 2023-05-12 22:41:53 +03:00
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
Владислав Сухов
b946cbdcbf
add: creating a jump path via menu and console command 2023-05-12 21:19:07 +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
Владислав Сухов
da524295db fix: spelling 2023-05-09 19:30:08 +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
Владислав Сухов
5adb9deb15 cfg: ru_lang.cfg: translated new strings 2023-04-20 11:46:23 +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
Владислав Сухов
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
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