Commit graph

68 commits

Author SHA1 Message Date
dmitry
4fe4f30d39
add: implement autosaving graph data (fixes #249) 2022-01-16 01:57:21 +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
ae0156ff42
fix: game menus are still executed when yapb menu is showed (fixes #271) 2022-01-15 23:18:58 +03:00
dmitry
e21e9a71c9
update: bump the year 2022-01-04 00:23:19 +03:00
dmitry
80890c25e1
fix: graph urls
update: yapb.cfg with latest cvars
2022-01-04 00:10:36 +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
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
dmitry
49a1fbbb6b
add: yb_save_bots_names used to save bots names between level changes
remove: pfnChangLevel hook, it's not needed in multiplayer
remove: kick all bots on level change on xash3d, it's done by default now.
2021-09-21 16:52:20 +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
d45e534f3c
fix: fakeping disappearance completely
not sure when and why pingUpdate was appeared, but it was the cause
2021-09-16 20:11:57 +03:00
dmitry
f051fe2b99
refactor: clang-tidy source a little
build: remove -fPIC option
2021-09-16 16:09:51 +03:00
dmitry
570cfe0538
fix: reduce chances fake ping disappears from scoreboard 2021-09-15 13:02:22 +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
1e9bc3cb5f
fix: crash when exiting linux listen server (#241)
fix: crash when loading on windows xp (#244)
build: switched to github hosted runners, and get rid of self-hosted
build: windows exe and dll is now code-signed
build: drop support for intel icc compiler
2021-09-08 20:09:23 +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
Hedgehog Fog
ed46e3238d
Improved monsters targeting👾 (#203)
Improved monsters targeting
Fixed aim offset for monsters
2020-12-09 20:00:43 +03:00
Hedgehog Fog
bcf727968d Added check enemy invincibility 2020-12-03 14:37:21 +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
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
655693582a Switch build to msvc for windows.
Switch build to clang for linux.

Mingw binaries isn't working with vanilla hlds / listenserver. And i'm too lazy to debug them.

For consistency reason, linux switched clang, so we're only have clang for linux & osx and msvc for windows.
2020-11-13 19:16:56 +03:00
ds
1b7d7e18db Changed graph download/upload URLs to reflect changes done with migrating graph repository to github. 2020-11-12 16:19:07 +03:00
ds
d40aab2b40 crlib: reduce hashmap memory usage.
build: fixed clang build.
2020-11-08 11:41:41 +03:00
ds
17b9200195 fix: quota maintain time is resetted on changelevel.
fix: crash without metamod after few map changes.
fix: move sprites precache into the correct place.
fix: move initialization stuff to post-ServerActivate.
2020-11-08 01:20:12 +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
ca94e31472 api: add some new functions 2020-11-06 09:10:19 +03:00
ds
92c762a586 bump minor version number. 2020-11-05 16:52:27 +03:00
ds
dd9b9f53ca fix build #2 [skip ci] 2020-11-05 16:46:22 +03:00
ds
ce1b0c30ab fix: correct mapping id -> bot. 2020-11-05 16:01:38 +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
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
1cad8919b4 fix: adding/removing bots during round restart causes "SZ_GetSpace: tried to write to an uninitialized sizebuf_t: ???" 2020-10-13 12:38:24 +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
3b0f06bb09 fix: yb_shoots_thru_walls bounds was incorrect.
fix: save, load, upload, download graph files always in lowercase.
refactor: menu display / hide refactored to reduce network traffic. (use string chunks instead of sending menu with writeChar (), and do not reset menu display, if no menu is displayed to client).
2020-10-11 14:01:19 +03:00
ds
f15a115b0a bot: all podbot waypoints should be now located in data/pwf directory.
build: remove '-funroll-all-loop'.
2020-10-05 18:59:40 +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
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
5170bb9bcf add: yb_botskin_[ct/t] to enforce bot skin selection (#166).
add: yb_ping_base_[min/max] sets the base ping for bots, so bots won't have nearly same ping in scoreboard.
2020-10-01 11:42:51 +03:00
ds
ced06c36cd build: remove sse3 option, as it's cause bot to be not loadable on some KVM hypervisors.
graph: store only author name inside author string.
2020-10-01 10:43:51 +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