Commit graph

285 commits

Author SHA1 Message Date
Владислав Сухов
c37d3580ee
Fix yb_join_after_player_bug
Fix yb_join_after_player_bug from issue by GoDhAnD-897
2018-06-23 21:28:40 +06:00
jeefo
62e9cccf7b Corrected usage of think interval for each bot.
Fixed double-jump task behaviour;.
Lowered CPU usage in player avoidance code.
Removed unused commands from 'yb help'.
Dirty fix for #44.
2017-02-06 22:31:54 +03:00
WPMGPRoSToTeMa
7b27754858 Fixed ChatPrintf and CenterPrintf safety 2017-01-25 21:31:36 +03:00
jeefo
ac0a2e1a8f First commit of the year in this repo.
Tweaked a little weapon recoil compensation code.
Some of the cosmetic code changes.
Rewrote chatter loading code, so it's works a bit faster now.
Optimized angle clamping in bot  vision code.
2017-01-03 02:11:16 +03:00
jeefo
a3cc619a5c Do not access engine functions inside bot's destructors. 2016-11-04 13:04:17 +03:00
jeefo
e15b6219ec Force T bot to plant the bomb if inside bomb-plant area and has C4.
Minor refactoring.
2016-11-03 23:56:22 +03:00
jeefo
60556a0e4c Completely remove of engine-based visibility checks. This reduces CPU usage when bot searching for enemies. 2016-11-02 22:45:15 +03:00
jeefo
fc77e39595 Removed unnecessary calls to EnableChatterIcon. 2016-11-02 22:42:40 +03:00
jeefo
6769ddca39 Prevent bot auto-creation when removing bot, by delaying quota maintaining time. 2016-11-02 18:36:05 +03:00
jeefo
10b89ca011 Fixed autovacate thing once again.
Temporary disabled engine PVS & PAS checks for testing.
2016-11-01 23:57:51 +03:00
jeefo
76248cac6a Fixed smart kick counting. 2016-10-31 19:27:58 +03:00
jeefo
684637df03 Ensure kicking player has FL_FAKECLIENT bit set and his name length greater than zero.
Replaced "_mm_load_ss" with "_mm_set1_ps" in A_sqrtf. Should fix minor problems.

When simulate sound play for bots, verify that issuer origin is not zero.

Enable by default smart bot kick management for autovacation.
2016-10-29 21:01:41 +03:00
jeefo
7d531ee451 Removed accidentally left debug spam from CSDM checks. 2016-10-23 01:56:43 +03:00
jeefo
ceb0f43377 Fixed bad behaviour of A_stricmp, that caused incorrent parsing of bot console commands.
Fixed chatter icon and message notification left on screen if bot was kicked during communication.

Removed yb_csdm_mode. Bot's will automatically know whether they are running under csdm or csdm ffa.

Refactored game-message enums for readability.

Updated yapb.cfg to be actual with code-current bot variables.
2016-10-23 01:49:05 +03:00
jeefo
1cc538ab10 Workaround for regamedll mp_auto_join_team & humans_join_team bug, that was introduced for thirdparty bots (partially fixes s1lentq/ReGameDLL_CS#62)
Changed remove all menu now will not popup again after execing command.

Verify that team isn't stacked before adding bot when sets bot team manually on adding the bot.
2016-10-18 20:34:02 +03:00
jeefo
cc6951c647 fixed refactoring problem 2016-09-22 15:52:03 +03:00
jeefo
75d1f1ec58 fixed 'remove bot menu' not showing up
rewritten posix makefile from the ground
reworked menu logic, so endpoint menu item will redraw menu once again, instead of closing it.
2016-09-22 15:47:35 +03:00
jeefo
97db73cdaa minor optimization 2016-09-19 15:09:09 +03:00
jeefo
9a24d371f7 do not set yb_quota max value depending on auto vacate feature. 2016-09-18 21:57:12 +03:00
jeefo
21045db08e updated android makefile 2016-09-16 23:16:49 +03:00
jeefo
8527f0a34b fixed android compiling 2016-09-16 22:55:31 +03:00
jeefo
c07065ca9d tweaked a little weapon firing code
fixed chatter icon not disappearing
set bots correct walk speeds
implemented some sse2 stuff
update linux & android makefiles
2016-09-16 16:10:22 +03:00
jeefo
2eec5839bd fixed prefixed names are not cleared upon bot disconnect 2016-09-15 13:26:13 +03:00
jeefo
b885df36de fixing build, again 2016-09-14 18:36:31 +03:00
jeefo
37a352ac54 re-added support for hl-1.1.0.4 & cs beta 6.6 minimum. 2016-09-14 15:40:42 +03:00
jeefo
af82dbf1bb lambda is nice 2016-09-14 12:51:02 +03:00
jeefo
18a80dd563 added support for BotVoice message under cs16client & xash.
BotVoice message now showup with correct show time based on duration of voice message.
fixed colored menus under legacy game versions
2016-09-14 11:51:58 +03:00
jeefo
bcf11cf6ff disable gcc -fno-builtin 2016-09-14 09:20:33 +03:00
jeefo
8155d08769 cleaned up posix makefile 2016-09-13 22:40:06 +03:00
jeefo
14be00bc6b dedicated server shouldn't count real players when computing bot quota. 2016-09-13 20:03:50 +03:00
jeefo
4a48758f3a fixing travis-ci build 2016-09-13 19:13:30 +03:00
jeefo
0f97db33db fixed crashes on door open on xash3d
workaround bug with svc_bad after adding bots
reworked a little how bot menus works
some more source cleanup
2016-09-13 19:09:20 +03:00
jeefo
81a4b54205 removed debug messages 2016-09-11 23:43:25 +03:00
jeefo
e227b6ff60 revert some things 2016-09-11 21:13:57 +03:00
jeefo
ab8cccf8ed one more thing for clang 2016-09-11 21:12:08 +03:00
jeefo
3c5d056fec rewritten a little weapon selection code
fixed bots do not chat when dead
some code cleanup
2016-09-11 21:01:06 +03:00
jeefo
c4d6ce3c45 a little cleanup of code 2016-09-10 19:31:38 +03:00
jeefo
74b97dadd5 Revert "cleaning up the code. part 0."
This reverts commit e8eb775c23.
2016-08-27 23:39:25 +03:00
jeefo
fe572b3dc9 Revert "cleaning up the code. part 0.1"
This reverts commit 0c8a246c48.
2016-08-27 23:39:20 +03:00
jeefo
0c8a246c48 cleaning up the code. part 0.1 2016-08-27 23:37:27 +03:00
jeefo
e8eb775c23 cleaning up the code. part 0. 2016-08-27 22:49:42 +03:00
jeefo
562beb6aa5 get rid of c++11 2016-07-04 13:25:12 +03:00
jeefo
a27871478a fixed isConsoleCmd is not assigned in addbot 2016-07-04 13:19:04 +03:00
jeefo
19f4582685 bot is not searching mod name in hardcoded list, so you can now use any gamedir for bot. So the CS beta 7.0 & 7.1 for steam is now supported. 2016-07-01 09:32:43 +03:00
jeefo
4a1c2b62db reverted mistaken thing 2016-06-23 15:32:14 +03:00
jeefo
db79df8d38 fixed crash on escaping from bomb on really small maps (de_iceworld ie)
reworked how yb_quota works
fixed engine is not notified about bot cvar is beeing changed
2016-06-23 15:30:19 +03:00
jeefo
8a9ccfd083 fixed android compiling 2016-04-18 20:15:54 +03:00
jeefo
f1a3ae1f6f removed CF_CHATTER, as it's useless 2016-04-17 19:15:41 +03:00
jeefo
de1e9b68e2 get rid of goto statements 2016-04-04 10:51:52 +03:00
jeefo
da1b5c2ff9 fixed variable collisions
fixed active grenade timer running too fast
fixed reacting on sound function setting pvs instead of pas
2016-03-25 14:56:40 +03:00