Commit graph

117 commits

Author SHA1 Message Date
Владислав Сухов
92af7495ea Merge branch 'master' into chatter-fixes-and-improvements 2024-05-22 19:48:24 +00:00
jeefo
ee964e0c9a
fix: pingfaker overwrites pings for real players (resolves #572)
fix: crash bug introduced in #569
2024-05-22 11:13:52 +03:00
Владислав Сухов
e2ed55364d Merge branch 'master' into chatter-fixes-and-improvements 2024-05-20 15:55:56 +00:00
Владислав Сухов
747eb569c1 fix: offset ranges for zoomrifle (resolves: https://github.com/yapb/yapb/issues/571) 2024-05-20 15:53:09 +00:00
Владислав Сухов
f049391637 Merge branch 'master' into chatter-fixes-and-improvements 2024-05-17 18:33:56 +00:00
commandcobra7
30df1a5726
control: text changes in the control menu. replaced `waypoint with node` (#569)
Co-authored-by: jeefo <dmitry@jeefo.net>
2024-05-16 21:15:41 +03:00
Владислав Сухов
9e24eb6be4 Merge branch 'master' into chatter-fixes-and-improvements 2024-05-07 09:15:48 +00:00
jeefo
009bdf2f3e
refactor: reformat the code 2024-05-05 01:06:56 +03:00
Владислав Сухов
7ad54c55be add: report of the enemies' count 2024-05-03 17:23:36 +00:00
jeefo
ecd7c1daba
combat: some reverts from previous changes 2024-05-02 22:40:15 +03:00
jeefo
dca15519b7 bot: some reverts and fixes to the pr 2024-05-02 20:35:43 +03:00
commandcobra7
b720eaf51e nav: added fall control so that bots now take a new path when falling from heights.
nav: increase player avoidance distance.
combat: added zoom check for better use of the sniper gun (inspired by podbot).
2024-05-02 20:35:43 +03:00
jeefo
3358168fad
aim: look at last enemy origin when just loosed focus
fix: saving bot practice took enormous amount of time when changing level on large practice database
refactor: changed random number generator usage
2024-04-25 15:03:39 +03:00
jeefo
8e81eb1c96
Merge pull request #558 from yapb/dev
bot: various fixes to bots navigation and aiming
2024-04-19 21:03:12 +03:00
jeefo
2968a0adff
fix: bots never rer-route their path in some situations
Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
2024-04-19 13:20:17 +03:00
jeefo
ffa882a295
aim: do not look for danger places when no enemies left
combat: increase  new enemy update timers
combat: reduce penetrate level for last enemies detection
nav: allow camp nodes to have desired reachability distance
fix: mgr: addhs (high skilled) bot do nothing
Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
2024-04-17 23:40:37 +03:00
jeefo
9ce8913c2c
fix: resolve some chatter overuse reported in #555
Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
2024-04-17 21:36:39 +03:00
jeefo
38551eae21
vistable: fix long-standing bug with saving vis counts
vistable: bumped version to 4, so all vistables will be rebuilded
bot: reworked bot think mechanism timers
fix: gimbal lock within bot aiming code on ladders
fix: some fixes to aiming code that prevent bots 360 degree rotations
fix: some mistakes in next and next-next node aiming when in idle state
fix: improved seek covering from attack task
nav: improved bot's crouch on marred-crouch nodes
nav: overall improvements to ladder handling code
Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
2024-04-17 21:20:45 +03:00
Владислав Сухов
1174989fcc fix: indefinite article in cvar description (**an** should be used before the vowel,
and the article **a** is used before consonant.)
2024-04-16 12:02:38 +00:00
jeefo
cc01693de9
hearing: randomize listen position for heard sounds
graph: restore cvar variables values to initial values when disabling graph editor
cfg: update primary config with actual cvars
vision: remove unnecessary angles clamp
combat: allow to disable engine potential visibility checks
combat: do not aim to head on long distances with AWP, shotguns or with high recoil
bot: set the minimum think fps to 30.0
2024-04-11 16:26:12 +03:00
jeefo
f9bae83466
fix: low-skilled bots aiming overflows on ladders (ref #543)
nav: ignore first collision if we are in ladder node (by @commandcobra7).
bot: backported csbot function to check is enemy behind smoke.
bot: added ``yb_smoke_grenade_checks`` to control which method to use (2-csbot, 1-podbot, 0-disabled).
2024-03-31 23:23:01 +03:00
jeefo
cbcb4a7ff0
fix: missing world time when surprising enemies (ref #534) 2024-03-15 21:23:17 +03:00
jeefo
99aac1b2ee
fix: typo in function name 2024-03-12 09:36:32 +03:00
jeefo
6e09cee0ee
fix: bots use buttons too extensively
nav: added more cpu-friendly version to check if bot will fall in combat
2024-03-11 15:26:11 +03:00
jeefo
0873975678
bot: fix think fps limiter when running on xash3d
aim: simplify enemy origin compensation when moving
2024-03-11 08:06:39 +03:00
jeefo
1736bd9c8a
aim: remeber last edict for whom head spot was set
... so the bots will not shake their crosshair between chest and head when fighting acquired/current enemy
2024-03-09 22:41:48 +03:00
jeefo
0b119c0389
aim: do not adjust enemy spot dir for hard bots 2024-03-09 22:18:12 +03:00
jeefo
2caa65f6ad
fix: bots not throwing grenades since last commit
combat: various fixes to combat movements
combat: tweaked grenade throwing code
refactor: convert some arrays initializations  to initializer lists
build: switch docker image to clang 18.1
2024-03-09 01:06:11 +03:00
jeefo
a94886f8f7
combat: do not throw any grenades if just saw enemy 2024-03-04 11:29:04 +03:00
jeefo
9201daf9f9
fix: allow to plant bomb only when icon blinking (ref #323)
fix: random bots shoots and enemy ignorance on es_industrial (ref #323)
2024-02-27 12:31:37 +03:00
jeefo
9ebb7fd4a7
fix: prevent starting seek cover task if it's failed few moments ago 2024-02-21 23:18:43 +03:00
jeefo
475d290767
fix: allow to pickup ammo and kits regardless of weapon 2024-02-17 00:09:32 +03:00
jeefo
c662f4a08f
refactor: break some very long conditions 2024-02-16 00:57:41 +03:00
jeefo
7b7ae7020b
bot: added basic support for zombie plague warmup mode
Controllable via yb_ignore_enemies_after_spawn_time, and automatically set from zp_delay cvar.
2024-02-15 05:42:52 +03:00
jeefo
c0715714d6
combat: throw explosive near friends when friendly fire is off 2024-02-15 05:04:02 +03:00
jeefo
ad5352b041
combat: minor fixes to the grenade throwing conditions 2024-02-12 16:04:22 +03:00
jeefo
d2ba4b6ab6
combat: remove excessive ducking 2024-02-12 08:01:06 +03:00
jeefo
9b9d4b6558
combat: force grenade war if have only grenade in hands
fix: crash bug when in some situations sv_gravity is zero
2024-02-10 21:58:10 +03:00
jeefo
78a5dd50a1
revert: some changes that are broke behavior
nav: fix: can strafe left is doing wrong things
2024-02-10 21:20:25 +03:00
commandcobra7
eea78ac031
nav: rusher bots does not care any danger (idea from pbmm) nav: some changes in collision motion 2024-02-04 15:32:13 +03:00
jeefo
e1777b900f
fix: attack movement with knives 2024-02-01 08:08:00 +03:00
jeefo
d82124e595
bot: return of the cheat cvar yb_whose_your_daddy (resolved #513)
combat: resolve strafe movement issues
combat: resolve bots always standing still with pistols and shotguns
vision: take a look at recent victim for some time before changing view angles
control: allow bots to be killed silently (ref #514) via commands
control: bots that are killed with auto kill timer are now killed silently
2024-01-29 08:08:07 +03:00
jeefo
d234a3f156
fix: android builds unable to load anything due to #498
fix: simd sse4.2 is now required for _mm_dp_ps, due to strange behavior on some cpus (ref #506)
refactor: cosmetic changes all over the code
linkage: do not flush linkent export table on changelevel
manager: do not allow to create bots while analyzing map
conifg: notify user about probably outdated configs, not just error in config file
2024-01-26 19:52:00 +03:00
jeefo
bcb5b954cb
ci: enable continuous builds for repository
aim: do not add aim errors if too close to enemy
conf: do not spam with unknown custom variables if config doesn't define one
2024-01-22 08:50:03 +03:00
jeefo
d5a9253582
fix: refactoring mistake with square distances (ref #506 #495)
fix:  bot glibc dependency when SIMD is disabled
fakeping: allow to disable ping average ping calculation from human players (controllable via yb_count_players_for_fakeping)
2024-01-19 21:35:00 +03:00
jeefo
bf91ef2831
fix: bots at difficulty 0 unable to do anything useful
fix: lang configs unable to parse last translated line (fixes #340)
fix: last enemy isn't  cleared instantly with dead entity anymore
fix: bot weakness in pistol rounds
analyzer: improved optimization of useless nodes
linkage: make inability to call gamedll player( non-fatal
linkage: fixed bot boot  on WON engines pre 2000 builds (support for beta 6.5 restored)
cvars: added suupport to revert all cvars to defaults via 'yb cvars defaults'
cvars: added cv_preferred_personality  to select bot default personality
refactor: use single function to send hud messages over the bot code
bot: added random original podbot welcome message to preserve origins of this bot
conf: shuffle bot names and chatter items on conflig load
conf: simplified a bit chatter.cfg syntax (old syntax  still works
build: added support for building with CMake (thanks @Velaron)
refactor: rall the memory hooks moved into their one cpp file
2024-01-19 00:03:45 +03:00
jeefo
01046f7c9a
aim: do not add aim error for normal bots
combat: do not trigger seek cover task with csdm mode
2024-01-08 18:11:58 +03:00
jeefo
f3a4fb5a8b
combat: use scale for selecting new enemy
linkage: display hw renderer as game flags
linkage: display running engine (hl25) as game flags
2023-11-29 22:34:45 +03:00
jeefo
87e3cc963a
bot: added support for 25th anniversary hl-update structures 2023-11-25 23:40:43 +03:00
Alexander Shkarlatov
8c60149c70
bot: ignoring some parameters for throwing grenades (#488)
add: cvar "yv_grenadier_mode" bot will ignore throwing grenade condition if enabled
2023-10-18 22:13:23 +03:00