Commit graph

126 commits

Author SHA1 Message Date
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
10b89ca011 Fixed autovacate thing once again.
Temporary disabled engine PVS & PAS checks for testing.
2016-11-01 23:57:51 +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
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
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
37a352ac54 re-added support for hl-1.1.0.4 & cs beta 6.6 minimum. 2016-09-14 15:40:42 +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
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
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
e8eb775c23 cleaning up the code. part 0. 2016-08-27 22:49:42 +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
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
jeefo
fe7a3c7cdc fixed pedantic gcc warnings 2016-03-13 19:24:19 +03:00
jeefo
a27d39a394 fixed stack corruption in sound code 2016-03-12 19:56:09 +03:00
jeefo
bc2e57a7a8 code refactoring, still testing
some fixes all over the place
fixed all warnings from clang
2016-03-12 14:35:44 +03:00
jeefo
1259276bcb bump version number
fixed some of coverity warnings
2016-03-09 23:32:45 +03:00
jeefo
4b0188222f fixes clang warnings
fixed bad combat strafe dir direction selection
added more 'shoot thru wall' code as reaction on sound
2016-03-09 22:34:24 +03:00
jeefo
8d6b315fa5 added ability to load waypoints & config files from PAK files 2016-03-09 19:17:56 +03:00
jeefo
cbac5da0b7 user Cvar_DirectSet for Convar::SetString 2016-03-08 17:22:44 +03:00
jeefo
95d9d4db0c removed metamod-messages, since there will be nor updates to metamod ifaces. 2016-03-05 23:08:07 +03:00
jeefo
fa64fe2ea7 some code cleanup
started to move game-specific stuff into own class
2016-03-05 21:04:46 +03:00
jeefo
d5a8b3642b fixed bomb defuse check doesn't verify pressing IN_USE button of client
fixed potential crash bug in IsPointOccupied
processing global refactoring
2016-03-01 22:52:17 +03:00
jeefo
f8344a464e a little cleanup of code save point 2016-03-01 13:37:10 +03:00
jeefo
d300c13e85 removed useless (but eating cpu) twice angle clamps every frame. 2016-03-01 00:45:07 +03:00
jeefo
c7ed5a162c changed save money amount in buyfn 2016-03-01 00:22:42 +03:00
jeefo
cd48b98180 fixed infinite loop on bad waypoints. now bots will crash down, instead of eating all the ram.
more magic-numbers replacements.
2016-02-29 23:50:16 +03:00
jeefo
9ae9ecb76a fixes bad buying for heavy weapons & shotguns
replaced some magic numbers in code to be readable
2016-02-29 22:49:19 +03:00
jeefo
27019f76b6 fixed stupid mistakes in grenade usage 2016-02-11 23:56:13 +03:00
jeefo
6d257e5375 updated enemy body part decetion
updated friend alarm notification
removed shaky aiming thru walls
2016-02-11 23:07:43 +03:00
jeefo
64445029c7 fixed crash, when official csbots active
fixed baaaad waypoint dislpaying
fixed bots equip in buyzone when has active enemy
bots try to do their goals more ofter (again)
fixed some issues with knife maps
2016-02-11 21:50:05 +03:00
jeefo
be55afdd78 improved support for xash3d (fixed weapon selection)
fix #28 #27 #24 #20 #19
2016-02-06 23:37:58 +03:00
jeefo
3943381104 reduces negative answer chance 2016-02-01 00:30:28 +03:00
jeefo
9e5c1540f9 improved sniping
fixed bots never choice camping tactic, due to agression level oveflow
cosmetic changes
2016-01-30 13:15:50 +03:00
jeefo
a7231d87ed do not threat c4 as grenade
simplify linkents
several other fixes
2016-01-27 21:40:47 +03:00
jeefo
a04f47273e disable by default ultra-mega-high-skill mode
pvs check done only for new enemy
2016-01-16 11:00:40 +03:00
jeefo
04365ab202 fixed bot's don't shoot thru walls
added some knife-mode movement
some codestyle fixes
2016-01-14 23:32:38 +03:00
jeefo
aeb712c2b3 fixed race-condition in bomb location detection
fixed visited goals are not cleared on round-start
2016-01-07 18:49:55 +03:00
jeefo
4204f4e9f2 fixed rare crashbug in ClientUserInfoChanged
fixed chatter ignores yb_communication_type
fixed waypoint display distance, when host entity is alive
fixed bomber choose most longest route to bombplant (in middle of round).
2016-01-05 20:29:34 +03:00
jeefo
c9011b00fd revert some old commits, that break compatability.
fixed copyright year.
2016-01-04 18:26:06 +03:00
jeefo
2c10910972 removed bunch of cvars from public query list.
only yb_version is now publicly queryable.
2016-01-04 15:28:38 +03:00
jeefo
18b4636500 added yb_camping_allowed.
partially fixed bot freeze when no ammo left in his guns. now bots' should switch to knife and rush enemy.
2016-01-03 22:03:02 +03:00