Commit graph

553 commits

Author SHA1 Message Date
jeefo
c8f2c95ce6 Reworked facing waypoint index detection. (ty to pbmm). 2019-09-22 00:08:37 +03:00
jeefo
602d2ddd8c Fixed bots unable to search bomp defuse point, cause search radius is too small for buckets.
Fixed uninitialized variable in team counting.
2019-09-22 00:08:37 +03:00
jeefo
c70e3bd756 Correct team kicking on quota balancing.
Try to fix low-skill bots do not search for bomb.
Bumped year and version.
2019-09-22 00:08:37 +03:00
jeefo
8456bb57cb Rise limit of waypoints to 3072. Need compatability testing.
This change invalidates all 'learned' bot data, such as visibility, pathmatrices and experiences, so file versions of them are bumped.

Tweaked yb_quota_mode.
Allowed low-skill bots to throw grenades.
2019-09-22 00:08:37 +03:00
jeefo
168bcf1d36
Bots should be affected by mp_freeforall even with disabled csdm_active. 2019-02-13 19:39:17 +03:00
jeefo
d4dd4110b9
Merge pull request #72 from GoDhAnD-897/config-cvars-fix
Fixed cvar values from yapb.cfg being ignored after initialization
2019-01-06 12:37:53 +03:00
GoDhAnD-897
fcb0f7c1ad Fixed cvar values from yapb.cfg being ignored after initialization 2019-01-03 17:09:52 +01:00
jeefo
5d32a4577c Fixed chat-replies doesn't work. Fixes #71. 2018-11-08 13:07:09 +03:00
jeefo
c78fc5a60d Fixed low-difficulty bot's unable to search the planted C4. 2018-11-01 11:53:44 +03:00
jeefo
39781ee17b Fixed GCC Strict aliasing warning. 2018-10-30 19:19:56 +03:00
jeefo
5c1facb54b Tweaked chatter timers 2018-10-30 16:01:52 +03:00
jeefo
71fb7cea45
Fixes Android Build. 2018-10-28 22:04:44 +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
faa45c6331
Update and rename LICENSE.txt to LICENSE 2018-09-21 00:15:11 +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
d3d1aa2320
Merge pull request #61 from VladAndroidGamer/patch-1
Fix yb_join_after_player_bug
2018-07-31 01:50:20 +03:00
jeefo
0bedf756d0
Merge pull request #62 from jeefo/travis-fix
Travis fix
2018-07-31 01:46:14 +03:00
jeefo
2a830fd3e8
Bash Genius! 2018-07-31 01:09:11 +03:00
jeefo
4e7eaf203c
Update .travis.yml 2018-07-31 00:59:33 +03:00
jeefo
999b227554
Trying to fix more 2018-07-31 00:53:26 +03:00
jeefo
1778ee3773
My bad at writing scripts. 2018-07-31 00:48:11 +03:00
jeefo
e4204e241b
Fixed syntax error 2018-07-31 00:44:26 +03:00
jeefo
add169fbf2
Upload only correct artifakts 2018-07-31 00:40:22 +03:00
jeefo
7763820b79
Set minimum OSX SDK to 10.12
Try to remove __extern_always_inline hack.
2018-07-31 00:09:31 +03:00
jeefo
cae3b3cc88
Removed cross-tool references from makefile. 2018-07-31 00:06:06 +03:00
jeefo
d94ce15026
Removing ancient OSX cross tool 2018-07-31 00:00:41 +03:00
jeefo
f3fda5b599
Makefile fixes 2018-07-30 23:59:31 +03:00
jeefo
7109583038
Testing travis builds. 2018-07-30 23:47:50 +03:00
jeefo
04b8484c92
Sooo long no see... 2018-06-25 16:21:34 +03:00
jeefo
26f09ed986
Fixing travis build? 2018-06-25 16:15:45 +03:00
Владислав Сухов
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
2ec5a730b0 Merge pull request #46 from jeefo/develop 2017-02-06 22:36:58 +03: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
9745464f7b Merge pull request #43 from jeefo/develop
Removed support for original Xash CSDM mod.
2017-01-03 02:17:15 +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
66484293d5 Merge pull request #40 from jeefo/develop 2016-12-09 22:13:36 +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
69bb788e9a fixing one more mistake in makefiles 2016-09-22 16:07:48 +03:00
jeefo
8d5d9aa580 bumped minimal macos version 2016-09-22 16:03:37 +03:00