Commit graph

75 commits

Author SHA1 Message Date
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
Владислав Сухов
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
Владислав Сухов
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
jeefo
2765eed7ac
crlib: switch to new hashmap 2023-04-15 04:10:09 +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
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
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
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
2718adbb8f
fix: code formatting 2023-03-13 15:39:15 +03:00
Владислав Сухов
4be2448626 add: 5th playerclass for condition zero 2023-02-07 10:19:40 +00:00
Владислав Сухов
fc493e288c
fix: toggling t and ct important flags when there are other flags on the node (#405)
fix: removed unnecessary condition for toggling the camp flag
2023-02-07 15:17:52 +06:00
jeefo
2eb9582c74
Revert "fix: do not handle client commands from fakeclients (ref: #292)"
This reverts commit 544d858fe6.
2023-02-02 16:31:09 +03:00
jeefo
544d858fe6
fix: do not handle client commands from fakeclients (ref: #292) 2023-02-01 21:27:23 +03:00
Владислав Сухов
0d4fcdcf4d
fix: don't open the camp directions menu when removing the camp flag from a node created via the "Add Waypoint" menu (#402)
* fix: open the camp directions selection menu when adding the camp flag to nodes with crossing flag
2023-02-01 14:08:19 +06:00
Владислав Сухов
6cac8f7381 fix: filling the server with bots one more than specified 2023-01-25 10:39:52 +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
Владислав Сухов
e29ddbf230 fix: remove redundant apostrophe 2022-12-27 12:13:29 +00:00
jeefo
0a45ea6ad7
graph: add adjust_height per request (resolves #388)
this command adjusts height (z-component) of all the graph nodes on map with specified height offset, negative height offset can be passed as parameter as well.
2022-12-22 21:32:45 +03:00
jeefo
fd7b722fd8
add: make graph author read-only if graph file already has author upon load (resolves #369) 2022-09-21 14:47:36 +03:00
dmitry
10db943cdf
fix: unrelated client messages by resetting client command issuer, if not handled by the bot (related #360 ) 2022-09-10 15:47:41 +03:00
Владислав Сухов
e59ed4d48f
fix: display message about missing camp points
Related to: https://github.com/yapb/yapb/issues/306
2022-02-18 17:30:29 +06:00
dmitry
4552ebd79c
graph: auto acquire editor rights via menu 2022-01-31 22:00:07 +03:00
dmitry
c0d2ae4915
fix: removed duplicate messages with cache points in console command (resolves #286)
fix: massive message overflow when displaying nodes info (resolves #287)
add: yb_graph_draw_distance,cvar so you can specify visible nodes draw distance in editing mode
2022-01-21 23:39:26 +03:00
dmitry
ae0156ff42
fix: game menus are still executed when yapb menu is showed (fixes #271) 2022-01-15 23:18:58 +03:00
dmitry
e21e9a71c9
update: bump the year 2022-01-04 00:23:19 +03:00
dmitry
80890c25e1
fix: graph urls
update: yapb.cfg with latest cvars
2022-01-04 00:10:36 +03:00
Владислав Сухов
08353e6006
Fixes of typos, punctuations, mistranslation (#274) 2022-01-03 22:29:07 +03:00
dmitry
17d371014a
add: allow "erase" command on hlds without acquiring editor 2021-11-16 14:12:09 +03:00
jeefo
6f912eb056
Refactoring (#246)
add: yb_chat_percent, yb_camping_time_[min/max], yb_danger_factor[min/max], yb_chat_percent cvars
fix: possible crash with difficulty 0
fix: debug_goal should not be used as last history
fix:  startup on old hlds, because of missing pfnGetFileSize
fix: crash with out-bounds read
change: again tweaked some aiming code
change: player avoidance code so bots will jump less when stuck
change: max followers is just /4 of max players
refactor: redone distance between vectors
refactor: remove magic numbers in graph.add function
2021-09-20 13:50:00 +03:00
dmitry
f051fe2b99
refactor: clang-tidy source a little
build: remove -fPIC option
2021-09-16 16:09:51 +03:00
dmitry
d17c1808aa
fix: bots continuesly trying to reach goal, after falling down while going on path.
add: bots path type (fast,optimal,safe) is now updated randomly on every round start.
add: more sse functions for mathlib, support for neon (thanks to sse2neon lib)
2021-09-14 15:10:14 +03:00
dmitry
bea8120a41
fix: always translate menus as they always has destination player (#225) 2021-09-10 20:12:23 +03:00
jeefo
f870e7db4a
Bump the year. (#219) 2021-01-01 00:00:33 +03:00
Владислав Сухов
d632ee9bb3
Update Russian translation (#214)
Co-authored-by: jeefo <dmitry@jeefo.net>
2020-12-16 09:32:40 +03:00
jeefo
075bff2988
Custom.cfg (#213)
Added custom configs.

These are used for replacing some hardcoded strings inside bot code, currently custom cvar for parachute detection is available, as well as custom c4 model names.

Added editorconfig, and fixed CRLF for files (was a mix between LF & CRLF).
Fixed use-after-free sanitizer error with chatlib.
Fixed configs files loaded with memory-loader does not process last line in config files.
2020-12-15 15:28:58 +03:00
ds
1b7d7e18db Changed graph download/upload URLs to reflect changes done with migrating graph repository to github. 2020-11-12 16:19:07 +03:00
jeefo
fc39648fff
Merge pull request #193 from Vladislav4KZ/master
fix: update russian translation
2020-11-03 08:57:47 +03:00
ds
71355066a4 license: changed to more permessive MIT license.
add: set models for spawn points, only when requesting, instead of setting on every map start.
fix: more translation fixes.
2020-11-03 08:57:12 +03:00
Владислав Сухов
423f310a34
Fix arguments for yb add
And help text for yb g path_create_* commands
Fixed typos for graphmenu and acquire_ediror
2020-11-02 20:12:52 +06:00
Владислав Сухов
f8e8a7c06c
Fixed cvar name string ...
to prevent unnecessary yb cvars command translation
2020-10-23 19:46:16 +06:00
ds
27d12d0bbb fix: bots shoot at dead timer is ignored (bots should shoot some spare bullets toward just dead player).
fix: once again fixed chatter cycling.
add: prevent saving old format waypoint when more than 1024 nodes added.
ci: updated to gcc & mingw 10.2.
2020-10-22 14:40:24 +03:00
ds
fba3837523 add: rapid output console commands are now put on queue and sent with intervals. fixes #176, and overflows causes by yb cvars and yb g clean all commands. 2020-10-13 15:43:25 +03:00
ds
b8d35840b3 add: do not translate messages send to hlds console.
add: split messages sent to client & hlds console, so all message gets sent.
2020-10-12 20:59:48 +03:00
ds
3b0f06bb09 fix: yb_shoots_thru_walls bounds was incorrect.
fix: save, load, upload, download graph files always in lowercase.
refactor: menu display / hide refactored to reduce network traffic. (use string chunks instead of sending menu with writeChar (), and do not reset menu display, if no menu is displayed to client).
2020-10-11 14:01:19 +03:00
ds
26a2ea9f0b fix cvar descriptions. [skip ci] 2020-10-08 15:25:19 +03:00
ds
0432cdfef7 add: allow multilanguage on hlds (fixes #173)
fix: fixed typos with 'release_editor'. (fixes #172)
2020-10-08 09:40:55 +03:00