Commit graph

492 commits

Author SHA1 Message Date
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
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
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
Владислав Сухов
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
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
Владислав Сухов
6cac8f7381 fix: filling the server with bots one more than specified 2023-01-25 10:39:52 +00: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
Владислав Сухов
e29ddbf230 fix: remove redundant apostrophe 2022-12-27 12:13:29 +00:00
jeefo
69d2b88618
graph: raise yb_graph_draw_distance limit to 3072 units (resolves #390) 2022-12-22 21:34:39 +03:00
jeefo
879edf5a1d
Merge branch 'master' of https://github.com/yapb/yapb 2022-12-22 21:33:13 +03: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
commandcobra7
2865241b16
fix: fixed bots not being able to break through the breakable wall. (solves #383) (#389) 2022-12-10 21:43:19 +03:00
commandcobra7
65884329dc
ai::some tweaks to bot behavior. (#386)
desire: disable hunting desires if bots are now vip or have hostages.
bot: disallow item acquisition if we have a visible enemy.
2022-11-27 05:08:38 +03:00
jeefo
bbeb78137e
nav: ensure nearest search node visible from both sides 2022-11-11 21:36:05 +03:00
jeefo
1debbe3654
aim: use aiming node instead of nearest to predict enemy position (suggested by @commandcobra7) 2022-11-11 21:23:15 +03:00
commandcobra7
4160aa585d
fix: check the last enemy presence without looking at the wall (related to #303) (#377) 2022-10-18 22:23:29 +03:00
Владислав Сухов
b80bb538af
fix: do not write modified_by if the name matches the author (#375)
fix: do not write modified_by if the name matches the author
fix: missing empty author string check
2022-10-09 22:51:32 +03:00
Владислав Сухов
3c10cc0e67
fix: write "Official Navigation Graph" if graph author matches the product.name (#376)
which was broken after the commit a3288cc353
2022-10-09 22:51:00 +03:00
jeefo
a3288cc353
fix: prevent loading graphs with less than 8 nodes (brokes pathfinder)
fix: prevent running A* with less than 8 nodes (in case converted one)
fix: trying to play with graph author/modified stuff per #374
2022-10-06 17:01:18 +03:00
jeefo
18ee4ce38b
fix: only update modified field, if name of the author differs 2022-10-06 14:50:58 +03:00
jeefo
c411f1e777
fix: reset graph authors upon graph reset (should fix #373) 2022-10-04 12:30:14 +03:00
jeefo
e1d64b62ce
fix: revert graph version to 2
add: allow loading of graphs with different versions for future bot versions.
2022-10-03 11:20:06 +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
commandcobra7
07a8a5c81e
fix: bots do not look at the wall while camping. (solves #303) 2022-09-13 10:57:59 +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
dmitry
5bef87900a
fix: possible fix for #330 by @commandcobra7 2022-09-10 02:31:53 +03:00
jeefo
b606b78cda
improve: use ScoreAttrib message to detect if bot is a VIP or not. (#356)
This should resolve problems with bot behavior, when plugins changes VIP player model to something else.
2022-08-03 23:59:57 +03:00