Commit graph

790 commits

Author SHA1 Message Date
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
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
ae4e12c48c
fix: target selection for meson 2023-03-25 18:33:28 +03:00
jeefo
d6d3af5b02
fix: mingw-w64 compile on windows
added ldscript from metamod-p, so mingw-compiled binaries will load by vanilla hl engine (without metamod) without crashes
2023-03-25 15:59:11 +03:00
Владислав Сухов
073e69f587 cfg: ru_lang.cfg: translate new strings 2023-03-25 09:40:04 +00: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
40a81e3378
add: bot rotation feature
if yb_rotate_bots is enabled, bot will stay on server between yb_rotate_stay_min and yb_rotate_stay_max cvar, and then will be kicked off the server, another bot will be connected with a different (hopefully) name due to quota balancing.
2023-03-25 04:36:21 +03:00
jeefo
a46e64f27e
add: prevent saving graph with less than eight nodes
this is done to prevent crashes in A* pathfinder when there is less than `max  node links` nodes available to work with.

loading of such graphs was disabled sometime ago, and saving wasn't, my bad.
2023-03-24 14:33:04 +03:00
jeefo
8f2facda46
fix: out of bound read and unroll loops
.. in find defend/cover node
2023-03-23 17:19:44 +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
jeefo
6d24e1bbd7
fix: fraction check in visibility table
misc: bump vistable version, and erase old-version vistables
2023-03-23 09:57:23 +03:00
Владислав Сухов
8e0512c49d fix: spelling 2023-03-20 13:47:14 +00:00
Владислав Сухов
df69b9c704 cfg: ru_lang.cfg: translate new strings 2023-03-20 13:40:38 +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
Владислав Сухов
d22ff2466e
add: yb_kick_after_player_connect cvar (#416) 2023-03-13 15:39:45 +03:00
jeefo
2718adbb8f
fix: code formatting 2023-03-13 15:39:15 +03:00
jeefo
290681d2d8
fix: author overwrite when converting from pwf (ref #409) 2023-03-13 15:20:13 +03:00
Владислав Сухов
7990c95629
cfg: ru_lang.cfg: some translation corrections 2023-02-22 23:02:25 +06:00
Владислав Сухов
5a6f0835b9 cfg: ru_lang.cfg: translate new strings 2023-02-16 14:57:57 +00:00
Владислав Сухов
b9dc2ab7ce
cfg: ru_chat.cfg: fix: delete redundant comma after keyword
This commit fixes the non-response of bots for some keywords
2023-02-13 18:11:15 +06:00