Commit graph

919 commits

Author SHA1 Message Date
Владислав Сухов
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
Владислав Сухов
e1ba0b7fe7 fix: convert russian bot chat to utf-8 (fix replies due to an unknown character) 2023-02-11 07:32:24 +00:00
Владислав Сухов
94f7f93995
Merge pull request #406 from yapb/condition_zero_teamclass_select
add: 5th playerclass for condition zero
2023-02-08 17:43:35 +06:00
Владислав Сухов
6b2098dcfd
cfg: ru_lang.cfg: translated new menus 2023-02-08 17:39:05 +06: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
Владислав Сухов
6f18a6efd9
cfg: ru_lang.cfg: fix: wording 2023-02-05 19:58:30 +06:00
jeefo
84c2794aed
fix: crash with menus and commands (resolves #292) 2023-02-02 16:52:28 +03: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
jeefo
9d8318e584
fix: probably fix for duplicate bot names when save names active (ref #403) 2023-02-01 21:19:17 +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
jeefo
70c8af1464
add: new regamedll entity to legacy linkents 2023-01-28 19:04:11 +03:00
jeefo
0b64162c24
yapb: bump version to 4.3 2023-01-28 18:58:00 +03:00
Владислав Сухов
0584a8f449
Merge pull request #399 from yapb/bot_fill_count_fix
fix: filling the server with bots one more than specified
2023-01-25 20:48:49 +06:00
Владислав Сухов
6cac8f7381 fix: filling the server with bots one more than specified 2023-01-25 10:39:52 +00:00
Владислав Сухов
7843499779
Merge pull request #398 from yapb/teamkill_chatter_event
add: teamkill chatter event
2023-01-24 23:07:19 +06:00
Владислав Сухов
da574c11b3 add: teamkill chatter event 2023-01-24 14:38:08 +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
jeefo
11c5e045d1
fix: flaws in previous commit 2023-01-18 22:46:07 +03:00
commandcobra7
50aecc1332
fix: don't allow to install a silencer if we have a visible enemy
aim: fixed the distortion of angles while camping
add: special ladder handling (code merged from podbotmm)
graph: reworked some node coloring and link color
2023-01-18 22:32:38 +03:00
jeefo
52b81d1b6a
crlib: update to latest rev 2023-01-17 09:43:23 +03:00