Commit graph

76 commits

Author SHA1 Message Date
jeefo
68f2f010fd Major refactoring (#86)
Major code refactoring.
2019-09-22 00:08:37 +03:00
Dmitry
47fefabe66 Fixed shaky-camera, when bot gets killed.
Make use short bot  name here and there.
Minor tweaks.
2019-09-22 00:08:37 +03:00
jeefo
5f6a1638d6
2.9 Update (#64)
* Fixed bots not camping in camp spots.
Fixed chatter/radio message cycling. (need feedback).
Fixed CTs unable to defuse bomb.
Fixed backward jump path generation in waypoint editor.
Fixed autoradius in waypoint editor.
Fixed autoradius menu non closeable.
Fixed bots version display on entering game.
Fixed memory leak in DLL-loader. (non metamod).
Fixed bots able to see through smoke.
Fixed team-detection on non-standard modes.
Fixed quota & autovacate management.
Fixed bunch of warnings from static analyzers.
Greatly imporoved grenade throwing.
Grealty reduced bot CPU usage.

* Fixed stack-corruption in memory-file reader.
Fixed A* pathfinder not working correctly.
Fixed 'Tried to write to uninitialized sizebuf_t error' on bot add/remove.
Minor tweaks to camping and bot enemy aiming

* Make clang happy.

* Fixed VIP-dection on some maps.
Fixed occupied waypoint checker.
Small refactoring of code with clang-format.

* Fixed clang compilation

* Fixed compilation.

* Debugging seek cover task.
Some more code cleanup.

* Fixed typos.

* Fixes to attack movement.
Revert Z component updates.

* Fixes for aiming at enemy.
Fixes for seek cover & enemy hunt tasks.
More refactoring.

* Making clang happy once again?
Tweaked grenade timers.

* Revised language comparer hasher

* Fixed build.

* Fixed build.

* Optimized headshot offsets.
Optimized aim errors and enemy searches.
Get rid of preprocessor macroses.
Added back yb_think_fps. Use with caution.

* Minor refactoring of code.

* Check if tracking entity is still alive.
Do not duck in crouch-goal waypoints.
Remove ancient hack with failed goals.

* Get rid of c++14 stuff.
Tweaked isOccupiedPoint.

* Changed pickup check radius.

* Fix compilation.

* Fixed bots ignore breakables.
Fixed A* pathfinder.
Fixed searching for optimal waypoints.
Fixed bot waypoint reachability functions.

* Get rid of new/delete calls in pathfinder.
Disallow access to yapb waypoint menu on hlds.
Minor refactoring.

* Updated linux/osx makefile

* Spaces -> Tabs in makefile.
Made G++ happy.

* Updated makefile.

* Fixed heap buffer overflow in config loader code.

* Lowered CPU usage a bit, by using "waypoint buckets" for searching closest node.
Do not traceline for doors on map, that have no doors.
Get rid stack-based containers.

* Remove win-only debug crap.

* Refactored string class.

* Fix OSX compiling.

* Minor refactoring of corelib to use cpp move-semantic.

* Use reference for active grenades searcher.

* Use system's atan2f () as it's eror rate is a bit lower.
Fixed bots continuously stays in throw smoke task.
Fixed bots reaching camp-goal jumping or stays they for some time.
Increased radius for searching targets for grenades.
Tweaked bot difficulty levels.
Improved sniper weapon handling. Trying to stand still while shooting.
Increase retreat level only if sniper weapon is low on ammo.
Fixed predict path enemy tracking timer is always true.
Allow bots to process their tasks while on freezetime, so on small maps they already aiming enemies when freezetime ends.
Fied bots endlessy trying to pickup weapons.
Reduce surpise timers when holding sniper weapons.
New aim-at-head position calculation.
Shoot delay timers are now based on bot's difficulty.
Prefer smoke grenades more than flashbangs.
Fixed kill-all bot command not killing one random bot for first time use.
Do not play with jump velocity, now using the same as in waypoints.
Tweaked shift move, so zero move speed not overriden with shift speed.
Radius waypoint searcher use waypoint bucket as well.
Increase reachability radius for dest waypoint, if it's  currenlty owned by other bot.
Partially fixed bots choice to use unreachable waypoints.

* Makes OSX clang happy?

* Support for compiling on llvm-win32, makefile to be done.
Increased default reachability time.

* Fixed build.

* Move level-initialization stuff from Spawn to ServerActivate, so bot will not check init-stuff every entity spawn. This should save few CPU cycles.

* Fixed active grenades list not working after changelevel.
Reworked items pickup code, so every bot is not firing sphere search every time, but instead we maintain our own list of intresting entities, so every bot is accessing this list. This should lower CPU usage more a little.

* Precache should be done in spawn...

* Do not use engfuncs in intresting entities.

* Fixed GCC-8.2 warnings.
Minor refactoring.

* Added some safety checks to intresting entities.
Get rid of stdc++ dependency for GCC & ICC under linux.

* Remove -g from release make.
Cosmetic changes.

* Re-enabled debug overlay.

* Remove test header...

* Some static-analyzer warnings fixed.
Support for X64 build for FWGS Xash3D Engine.

* Reduced time between selecting grenade and throwing it away.
Do not try to kill bots that already dead with kill command.
Several fixes from static-analyzers.

* Update CI.

* Fixed bot's not added after the changelevel on Xash3D engine.

* Revert commit that enables movement during freezetime. Everything goes bad, when there is no freezetime....

* Bots will try to  not strafe while in combat if seeing enemy only partially.
Do not use "shift" when considering stuck.

* Weapon price for Elite is 800$ since CS 1.6...

* Fixed bots at difficulty 0 can't shoot enemies.

* Cosmetic change.

* Fixed assert in ClientDisconnect when quitting game while meta unloaded yapb module.
Consider freed entities as invalid.

* Bigger distance for throwing he grenades.

* Faster version of atan2f().

* Removed accidentally left SSE header.

* Cosmetic changes to enums.

* Tweaked difficulty levels.
Bots on Android will have a difficulty level 2 by default.
Fixed LTO builds under linux.

* Do not consider Android CS as legacy.

* Get rid of system's math functions. Just for fun)

* Use SSE2 for sincos function.

* Fixed failed during load wayponts still allows to add bots, thus causing bot to crash.
Added ability to delete waypoint by number using "yb wp delete".
Enabled Link Time Optimization for Linux and OSX.

* Fixed CI Builds.
2018-10-28 19:26:36 +03:00
jeefo
7d58788916
Added as per #47 request
However renamed CVAR to yb_display_welcome_text.
2018-07-31 02:03:04 +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
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
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
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
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
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
222195cc30 load memory files without modname 2016-03-13 21:12:09 +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
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
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
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
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
9f02b92ee2 fixed travis-ci 2016-02-07 02:40:45 +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
0bde57897e fixed cs16-client+xash3d on non-android platforms compatability
disables debug information for release builds
2016-01-30 22:22:37 +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
363b430c41 do not speak on android 2016-01-27 21:52:21 +03:00
jeefo
9df1af4b92 remove accidentally included stuff from new bot 2016-01-07 18:52:02 +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
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
jeefo
d991030145 no tabs in code! 2015-12-30 09:19:05 +03:00
jeefo
6bcf41c5d2 added android makefiles
ensure data directory is created
2015-12-30 09:16:01 +03:00
jeefo
4b8c18001d removed useless things
merged changes for xash csdm into master
2015-12-26 17:19:20 +03:00
jeefo
36b865abde do not compare traceresult fraction directly 1.0
some cosmetic changes
bots will spray more logos
reduced "cheating" in jumping a little bit
optimized checking 3d vector for zero
2015-08-15 18:09:15 +03:00
jeefo
a5c1c0dc7f fixed UpdateLookAngles is not called at all since last commit :) 2015-08-02 20:31:14 +03:00
Dmitriy
174b3e1eb6 some more cosmetics 2015-07-24 15:10:51 +03:00
Dmitriy
1d22832979 cosmetic changes 2015-07-24 14:39:11 +03:00
jeefo
55e4cf4bd9 simplified a bit hearing and aim dir choosing
bots thnik function not run every frame, should save some fps
2015-07-19 13:39:00 +03:00
jeefo
36c549a0ce some refactoring 2015-07-17 19:23:31 +03:00
jeefo
c445d07c2b more optimizations
removed ancient firedelays
maybe some more...
2015-07-12 17:18:20 +03:00