Commit graph

104 commits

Author SHA1 Message Date
jeefo
52b81d1b6a
crlib: update to latest rev 2023-01-17 09:43:23 +03:00
dmitry
e6fe2a6a22
crlib: update to latest revision (fix gcc warnings)
meson: suppress run_command warnings
2022-09-10 04:01:31 +03:00
dmitry
d402f38295
add: add current map and current time to graph editing overlay
fix: send client messages as unreliable to prevent reliable channel overflow (should solve problems when editing large number of waypoints on single location)
2022-01-16 01:14:11 +03:00
dmitry
e21e9a71c9
update: bump the year 2022-01-04 00:23:19 +03:00
dmitry
3205e1253f
refactor: use xash3d physics interface to handle with linkents, so do not hook dlopen/dlsym while running under xash3d
add: force set sv_forcesimulating to 1 while running under xash3d
2021-09-30 16:37:40 +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
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
e213e39d17
change: bot path type selection is based on morale (fear/aggression level)
fix: partially fixes #227  (in matter of player pings)
2021-09-15 11:14:05 +03:00
dmitry
05454f067c
update submodules 2021-09-14 16:19:31 +03:00
dmitry
3487610746
fixing build 2021-09-14 15:30:33 +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
dmitry
28e9f44dee
build: simplify workflow
linux; switch to gcc to support older hlds builds as well
win32: switch to clang as default compiler
2021-09-12 13:04:05 +03:00
dmitry
1ecc0827c9
arch: added support for aarch64 2021-09-11 02:03:49 +03:00
dmitry
f55730ac6d
fix: occupied point check radius calculated incorrectly
fix: occupied point calculation takes too much cpu power
fix: buffer overrun in messaging processing
fix: running bots on hlds 3111e (cs 1.5) on linux*
build: added back correct ldscript for gcc and clang

* for some reason only gcc-compiled binaries working on centos5.8 and hlds 3.1.1.1e. clang binaries crashing immediately, so if you want to run bot on ancient os and/or hlds you need to recompile with gcc, as default linux binaries built with clang.
2021-09-10 19:42:24 +03:00
dmitry
c5bdc8dfec
crlib: add as submodule 2021-09-08 20:07:37 +03:00
dmitry
f41b63dc97
crlib: remove local headers 2021-09-08 20:05:14 +03:00
jeefo
f870e7db4a
Bump the year. (#219) 2021-01-01 00:00:33 +03:00
jeefo
d23d0475f4 Removed unreachable code. 2020-12-18 20:14:15 +03:00
jeefo
4c8a4175d8 Fix uninitialized path walker in waypoints checker.
Update to latest crlib.
2020-12-18 20:06:05 +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
588715f28e
Fix #209. (#210) 2020-12-09 16:03:07 +03:00
jeefo
b75e1b8a23 Fixed compiler warnings. 2020-11-23 10:48:44 +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
e8b55acd23 Do not keep log file opened while game process active.
Rename actions workflow.
Fixed mingw-w64 stdcall handling.
2020-11-16 13:11:26 +03:00
ds
d40aab2b40 crlib: reduce hashmap memory usage.
build: fixed clang build.
2020-11-08 11:41:41 +03:00
ds
8219843ee1 build: re-enable -flto for gcc and clang. 2020-11-06 16:23:11 +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
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
fba3837523 add: rapid output console commands are now put on queue and sent with intervals. fixes #176, and overflows causes by yb cvars and yb g clean all commands. 2020-10-13 15:43:25 +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
30a112fd71 cfg: updated yapb.cfg to reflect changes.
cfg: made yb_quota 9 by default.
linux: fixed bots connection times remains static on linux or osx.
crlib: fix security issues.
2020-10-04 00:54:34 +03:00
ds
61ce4d548c fix: osx build 2020-10-03 19:02:37 +03:00
ds
f40ca59700 fix: players play time got replaced with bots play time.
fix: crlib: fixed clang-analyzer warnings.
build: removed predefined optimization flags in debug builds.
2020-10-03 16:39:09 +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
66688ebe4a fix: clang build. 2020-09-16 13:23:33 +03:00
ds
665343490b fix: build 2020-09-16 13:16:13 +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
b10b3ef352 crlib: fix uppercase un utf8tools. 2020-09-13 16:18:21 +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
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
7f9c98aef1 fix: typo fixed (#137) 2020-06-27 12:54:59 +03:00
dmitry
419626df0e crlib: reworked detours. 2020-06-21 09:45:09 +03:00
dmitry
e003474cae fix: static analyzer warning. 2020-06-18 17:29:16 +03:00
dmitry
77b001a845 fix: build on osx. 2020-06-18 10:26:08 +03:00
dmitry
6b8f8db4de fix: some round messages doesn't get handled.
misc: cosmetic changes.
2020-06-18 09:28:43 +03:00
dmitry
ee3f9e7538 crlib: use real status codes for http
graph: allow uploading from hlds console.
2020-06-16 11:19:30 +03:00
dmitry
3070a7c404 cpp: avoid linking with GLIBC_2.27 on linux. 2020-06-16 11:19:30 +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