Commit graph

123 commits

Author SHA1 Message Date
jeefo
113cb5e916
bot: stop shoot breakable task in case enemy exists
manager: fix crash due miss-swap of max and min difficulty levels on bot adding (thx @stalin_alex)
2025-12-20 00:44:21 +03:00
jeefo
bc67453b6c
platform: added basic riscv support 2025-11-13 15:41:30 +03:00
jeefo
17ed252b60
nav: more fixes to ladder navigation
refactor: bot difficulty data and add graph refresh command
combat: fixes for smoke grenades (ref #743)
engine: fixes to spawn management (ref #744)
2025-11-12 21:31:23 +03:00
jeefo
7b378ba3fa
nav: various fixes to movement code
refactor: move some things into new game state class
2025-10-08 20:12:46 +03:00
jeefo
95f907434b
nav: fix double jumping when bot gets stuck
bot: restore bot difficulty levels (ref #729)
bot: probably fix freezetime accident shooting (ref #729)
build: use noexecstack when building library
refactor: rework some old code and remove unnecessary things
2025-09-01 23:20:36 +03:00
red-magic
70a11d6427
cfg: fix grammar in cvars description (#731) 2025-09-01 23:03:28 +03:00
jeefo
9b8c41edea
storage: only use relative paths if installed in a desired way
graph:  drop support  for cs-ebot ewp files
2025-08-21 21:43:21 +03:00
jeefo
784ad5e303
graph: do not show any warnings on analyzed maps (ref #726)
ctr: revert cvars to it's config value instead of hardcoded values (resolves #722)
2025-08-14 19:35:26 +03:00
a1batross
34630a4103
Restore lib prefix on Android, as it's required by the package manager. Otherwise, it skips unpacking libraries without the prefix. (#721) 2025-08-09 18:44:03 +03:00
ololoken
4a57df3a45
emscripten: add emscripten platform support (#720) 2025-08-08 13:02:22 +03:00
jeefo
590471d94c
mgr: added yb_first_human_restart (resolves #713)
When bots are playing on dedicated server and first human joins a team the game will be restarted if yb_first_human_restart is higher than zero.

Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
2025-08-05 12:32:58 +03:00
jeefo
cf9d0cc84f
mgr: fix leader selection stuff (fix #624)
Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
2025-08-04 16:53:26 +03:00
Alibek Omarov
9289ab723a Partially implement library naming scheme, and use it on Android 2025-08-03 05:40:34 +05:00
jeefo
ae913a52db
fakeping: force-enable fake pings on listen server
combat: reduce jumping when in strafe mode (ref #699)
linkage: enable bots bullet spread when running without metamod
Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
2025-06-09 13:07:55 +03:00
jeefo
1311406544
bot: allow to enable fake features with quoted value 2025-05-13 13:03:12 +03:00
jeefo
6dfb09f110
fix: logos config not initialized (resolves #691)
bot: make sure rescue zone icon blinking to consider bot reached rescue zone when escorting hostages (ref #688)
bot: remove hardcoded radio communication randoms, so they're now depends on bots personality
refactor: some refactoring of code
2025-05-07 13:07:40 +03:00
jeefo
38c45aff9a
fix: crash with hl25 structs on xash3d again
fix: %t placeholder should return damage inflictor when used in team attack section of chat
fix: all arguments in bot commands are lowercased (resolves #680)
bot: disable threads when engine's timescale is active
bot: a little refactor for the code all over the places
linkage: resolved crash due to sse alignment on ancient engines (resolves #614)
utils move wave parse into crlib
practice: move loading practice to thread pool
build: allow to build with static linkents instead of hooking dlsym

Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
2025-03-16 18:25:15 +03:00
jeefo
24be4479de
fix: startup on xash when hl25 extended structs enabled (closes #677) 2025-03-04 10:26:07 +03:00
jeefo
855fb903b6
chatlib: do not send chat messages to controlled bots
graph: first try more memory friendly bsp size check
build: restore ssse3 & ssse3 instructions (use nosmid version if needed)
Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
2025-02-28 00:39:52 +03:00
jeefo
b8fb2e8845
cvars: allow to set very long descriptions
cvars: added full descriptions to yb+restricted_weapons (closes #659)
crlib: update submodule
fix: send server messages should split as string and not stringref to keep null-terminated chunks
2025-02-15 13:51:45 +03:00
jeefo
9b80517eda
graph: do not spam about problem
nav: tweaked stuck values and timers
2025-01-31 19:58:28 +03:00
jeefo
e820527703
bot: disable spray logo task on xash3d engine
fix: crash on aarch64 builds (ref #667)
nav: improved player avoidance
nav: improved handling of short path radii
conf: control min and max cvar values
build: probably fix i386 build when building with cmake (untested)
2025-01-31 19:32:24 +03:00
jeefo
5eab5dfb3c
nav: fallback to whole map search if buckets fails
bot: improved breakable destroying
aim: improved short-range firing
ctrl: prevent commands execution while disconnected from server
build: fix cmake for apple silicon builds
2025-01-17 22:43:35 +03:00
jeefo
c07d02c14e
fix: breakable headache (ref #660)
fix: bots firing rates on short distances (ref #658)
2025-01-14 14:17:53 +03:00
jeefo
c7c5e0eaf9
fix: startup on hlds_l 3111e (still needs nosmid)
build: add option to build bot without any smid instructions
refactor: fix static analyzer warnings
crlib: update submodule (fix double anglevectors call)
2024-10-27 20:51:37 +03:00
jeefo
3d84b96534
fix: crash bug introduced in latest commit (resolves #630)
fix: unnecessary assignments here and there
2024-10-20 17:31:45 +03:00
jeefo
c7d02f3f1d
fix: game freezes when starting without internet connection (ref #600) 2024-07-24 23:49:30 +03:00
jeefo
94fcb8b5b5
fix: wrong condition 2024-06-05 19:01:47 +03:00
jeefo
61036ecadc
build: fix clang builds 2024-06-02 23:08:38 +03:00
jeefo
8dece62df6
aim: added optional hitbox-based aiming for bots (ref #579) 2024-06-02 23:03:12 +03:00
jeefo
4aa6aff8b6
bot: improved logic when in freezetime
fix: full reset entvars of  fakeclient upon entity creation
fix: high skilled bots can't shoot with sniper weapons on short distances (ref #582)
fix: fill server will not overflow number of bots anymore
fix: do  not treat dormant  entites as valid clients for bots
mgr: : single bot kick is now working in non-sequential order
Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
2024-06-01 10:57:57 +03:00
jeefo
eec4101daa
fix: zombies should not emit any radio or chatter events 2024-05-25 23:42:55 +03:00
jeefo
4154b66cc2
fix: do not enforce fake cvars on legacy or xash3d environment 2024-05-24 20:05:49 +03:00
jeefo
639f2b269f fix typos [skip ci] 2024-05-24 20:00:07 +03:00
jeefo
b72f8a2ef9 bot: disable fake bot features by default (ref #575) 2024-05-24 20:00:07 +03:00
jeefo
5b63690986
bot: reduce items ignorance after donating bomb
refactor: fix some typos
2024-05-22 19:57:02 +03: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
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
jeefo
dedbf8ab82
bot: add more support for zombie mod scenario (ref #563)
added multiple items to custom.cfg, so game delay timer cvar is now configurable, the infected team is configurable as well.

creature (well, just zombies) now correctly detects their "creature" status even with custom model names (assumes that bot is on an infected team = zombie)

Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
2024-05-15 22:56:35 +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
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
375a64b861
nav: reworked bot dropping on pathfinder failure 2024-02-15 23:57:54 +03:00
jeefo
259dd18330
mgr: added `yb exec` command for debugging purposes 2024-02-15 08:37:02 +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
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
80e59c2c24
fix: use real teams when joining the games 2024-01-31 13:04:02 +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
ed75a662c9
mods: add more csdm cvars to check 2024-01-21 16:21:01 +03:00
jeefo
05e10bae6e
feat: allow bots to be added into the game even if no default spawn points (ref #511) 2024-01-21 00:59:15 +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