Commit graph

36 commits

Author SHA1 Message Date
dmitry
5d2a81f341
fix: make bots reach the debug goal node. 2022-02-12 23:22:54 +03:00
dmitry
e21e9a71c9
update: bump the year 2022-01-04 00:23:19 +03:00
Владислав Сухов
08353e6006
Fixes of typos, punctuations, mistranslation (#274) 2022-01-03 22:29:07 +03:00
godhand897
f55ac6c5c4
fix: hostage code (#269)
fix: hostage code
add: yb_random_knife_attacks cvar
2022-01-03 09:18:36 +03:00
dmitry
215e1c15d9
add: yb_object_pickup_radius cvar. fixes #256.
refactor: switch from yapb.ru to yapb.jeefo.net as default url.
2021-11-15 12:10:18 +03:00
jeefo
6f912eb056
Refactoring (#246)
add: yb_chat_percent, yb_camping_time_[min/max], yb_danger_factor[min/max], yb_chat_percent cvars
fix: possible crash with difficulty 0
fix: debug_goal should not be used as last history
fix:  startup on old hlds, because of missing pfnGetFileSize
fix: crash with out-bounds read
change: again tweaked some aiming code
change: player avoidance code so bots will jump less when stuck
change: max followers is just /4 of max players
refactor: redone distance between vectors
refactor: remove magic numbers in graph.add function
2021-09-20 13:50:00 +03:00
dmitry
6e83258c7d
build: add arm64 build to linux release package
add: yb_ignore_objectives, that makes bots to ignore map target (hostage rescue, bomb plant/defuse) (fixes #237)
fix: possible buffer overrun in message functions
build: cleanup package.py
2021-09-17 15:55:57 +03:00
dmitry
e5ae2ac3f8
tweak: aiming code a little tweaked to reduce headshot ratio
fix: fix crash with metamod since last commits
add: mark last selected goals within round as used, so bots will take cover all the map
2021-09-17 12:30:55 +03:00
dmitry
f051fe2b99
refactor: clang-tidy source a little
build: remove -fPIC option
2021-09-16 16:09:51 +03:00
dmitry
d17c1808aa
fix: bots continuesly trying to reach goal, after falling down while going on path.
add: bots path type (fast,optimal,safe) is now updated randomly on every round start.
add: more sse functions for mathlib, support for neon (thanks to sse2neon lib)
2021-09-14 15:10:14 +03:00
jeefo
f870e7db4a
Bump the year. (#219) 2021-01-01 00:00:33 +03:00
jeefo
075bff2988
Custom.cfg (#213)
Added custom configs.

These are used for replacing some hardcoded strings inside bot code, currently custom cvar for parachute detection is available, as well as custom c4 model names.

Added editorconfig, and fixed CRLF for files (was a mix between LF & CRLF).
Fixed use-after-free sanitizer error with chatlib.
Fixed configs files loaded with memory-loader does not process last line in config files.
2020-12-15 15:28:58 +03:00
jeefo
7da58623be Do not use strstr() 2020-12-03 17:27:11 +03:00
Hedgehog Fog
da275733bc Fixed yb_attack_monsters cvar description 2020-12-03 15:41:18 +02:00
Hedgehog Fog
d5107daad4 Added custom monsters and custom items support 2020-12-03 14:14:22 +02:00
jeefo
97b7a90bb9 Fix unitialized members. 2020-11-23 13:11:28 +03:00
jeefo
74f1ab866b Fixed linux listenserver startup problems
Fixed multiple buffer overruns and memory leaks.
2020-11-23 00:06:18 +03:00
ds
a0202efc40 api: allow getting current bot goal.
api: do not use buckets for nearest node search.
2020-11-06 10:27:19 +03:00
ds
f23d031d2c add: basic amxx module api (actual module pending). 2020-11-05 15:17:06 +03:00
ds
71355066a4 license: changed to more permessive MIT license.
add: set models for spawn points, only when requesting, instead of setting on every map start.
fix: more translation fixes.
2020-11-03 08:57:12 +03:00
ds
27d12d0bbb fix: bots shoot at dead timer is ignored (bots should shoot some spare bullets toward just dead player).
fix: once again fixed chatter cycling.
add: prevent saving old format waypoint when more than 1024 nodes added.
ci: updated to gcc & mingw 10.2.
2020-10-22 14:40:24 +03:00
ds
dc8ded3cf7 bot: add fakeclient bit _every_ frame. 2020-10-13 10:31:31 +03:00
ds
b8d35840b3 add: do not translate messages send to hlds console.
add: split messages sent to client & hlds console, so all message gets sent.
2020-10-12 20:59:48 +03:00
ds
726ea72965 crlib: replace random number generator with wyhash.
Benchmarks shows about 4x increased PRNG perfomance increase comparing to old one. Should slightly reduce per-bot CPU usage.
2020-09-29 19:23:26 +03:00
ds
1263a1a439 fix: use clamped health value to avoid overflows.
crlib: do not shutdown wsa, it's cleaned upon server exit anyway.
2020-09-26 18:41:53 +03:00
ds
d2a4de7b09 fix: missing client check causing hlds crash. (fixes #159) 2020-09-16 21:04:22 +03:00
ds
94ffdc022c fix: do not buy armor & grenades in eco rounds. (fixes #108) 2020-09-16 15:46:43 +03:00
ds
fa47e418b2 add: implemented #122.
fix: bots try to defuse already beeing defused bomb (fixes #116).
fix: line ending in source code.
fix:  do not retreat with sniper weapon, if currently shooting and have ammo.
crlib: added deque class.
2020-09-16 13:07:47 +03:00
ds
a675c40927 misc: refactored weapon type recognition.
fix: reverted body offsets from 2.7 version.
fix: do not destroy breakable around if closer than 100 units. (#156 possible can be fixed).
fix: minimum supported hl & cs version display.
fix: csdm respawn outside of waypointed area causing pathfinder errors.
2020-09-13 02:21:15 +03:00
ds
8acd84fdc8 fix: terrorist behaviour on ES maps with buyzone. (fixes #155).
fix: help commands causing host overflow when translated.
crlib: use fnv1a for string hashes.
crlib: add hash () method  to String & StringRef classes.
2020-09-11 16:01:33 +03:00
ds
2580c9478c fix: bots are not killable after the changelevel. fixes #143 2020-07-15 21:58:57 +03:00
ds
2d3078f851 graph: save narrow places to file, so, bump graph version.
graph: allow saving / loading graph manually on dedicated server.
config: fix parsing for difficulty.cfg fixes #142
fix: restore fakeclient bit on entity flags every frame.
2020-07-11 20:34:26 +03:00
dmitry
43f6a7828a crlib: reworked dictionary to hashmap.
linkage: another fix to dynamic linkage.
cpp: fixed msvc warning about placement new.
2020-06-16 11:19:30 +03:00
dmitry
c74d8e91e4 cfg: reworked map-specific configs, so they are now located in yapb/conf/maps/*map*.cfg
cmd: fixed handling "yb" & "yapb" command prefixes.
2020-06-16 11:19:30 +03:00
dmitry
a22cc6db93 misc: changed the cvars prefixses
misc: changed graph download url
2020-06-16 11:19:30 +03:00
dmitry
cf501b75b7 merge changes from the defunct ubot 2020-06-16 11:19:30 +03:00
Renamed from source/basecode.cpp (Browse further)