Commit Graph

84 Commits

Author SHA1 Message Date
s1lentq
8c14d05168 Add fallback place names if BotChatter.db is missing 2024-04-07 18:49:08 +07:00
s1lentq
5287f2a415 Do not reduce points for bot suicide due bot_kill command 2024-01-31 19:16:37 +07:00
s1lentq
aec3ba2579 Fixed m_looseBombArea assertion 2024-01-31 18:33:34 +07:00
s1lentq
d3c0ec8aeb Fixed crash bot when can see a loose bomb but didn't get closest area for bomb 2023-12-31 17:30:29 +07:00
s1lentq
28e2bc45f6 Fix crash bot_nav_use_place when place name is not exists 2023-12-22 20:25:38 +07:00
s1lentq
abe648b9d6 Use custom assert instead normal 2023-12-14 03:16:27 +07:00
s1lentq
d98e8f8b60 cleanup 2023-12-12 06:43:32 +07:00
Dmitry Novikov
e8bff71475
Fixed crash sometimes occurring while zbot map analyzing (#844) 2023-09-05 10:53:05 +07:00
Sergey Shorokhov
6da11fa4dd
fix: bot_profile_db CVar use (#827) 2023-07-11 03:09:11 +03:00
Federico Matías
1c68cb0c98
FIX: Unexpected behavior with mp_forcerespawn (#653)
* Unexpected behavior with mp_forcerespawn leading to a possible exploit

Basically there is an exploit (or bug?) where depending on mp_forcerespawn if his value is higher to 0 and lower than 1, when you respawn you have a brief window to change your team, if you succesfully manage to change your team between the mp_forcerespawn value and WITHOUT closing the change appearance menu, you won't die due to "m_fNextSuicideTime", that will trigger the change team but without actually changing your skin model, you will keep the enemy one but the team change will success.

Thanks https://github.com/metita for helping me with this

Co-Authored-By: metita <33007491+metita@users.noreply.github.com>

* Revert "Unexpected behavior with mp_forcerespawn leading to a possible exploit"

This reverts commit 73d1c16706.

* fix: nullify `m_fNextSuicideTime` before call `ClientKill()`

* ClientKill: refactoring

* add forgotten if-statement

* remove macros

Co-authored-by: metita <33007491+metita@users.noreply.github.com>
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2022-12-17 19:45:04 +03:00
Juice
dd243eaa0b
Update player counts (#684)
* Update player counts in CheckWinConditions and SwitchTeam

* Add UTIL_SpectatorsInGame and update MaintainBotQuota
2021-10-14 13:54:09 +03:00
Vaqtincha
5aec8aac7e
Bot fixes (#659)
* Bots only attack breakable objects

* Fix reversing-engineering mistake
2021-08-31 23:17:28 +03:00
Vaqtincha
3ff0f0cbf9
Bots can switch weapons underwater (#631)
* Bots can switch weapons underwater
2021-06-06 19:13:55 +07:00
s1lentq
271a49f8ca Add workflows/build.yml (Migrate to Github CI)
Add CMakeLists.txt build system
Update README.md
Minor fixes
2021-04-13 04:16:21 +07:00
s1lentq
cbfe8a1a0c Fix a crash when func_breakable signals it for CCSBot::OnEvent 2020-07-03 08:07:20 +07:00
Vaqtincha
36b46bf996
Bot fix (#544)
* fix bot kick
* fix flood "All bot profiles at this difficulty level are in use." in console
2020-06-11 02:23:38 +07:00
s1lent
80069a1f1e ZBot: Implemented cvar bot_freeze 2020-01-15 20:05:13 +07:00
s1lent
e199b16463
Introduce end-of-line normalization 2019-09-23 04:09:58 +07:00
s1lent
c2f62eb98a
Fix newlines 2019-09-22 21:29:29 +07:00
s1lent
7ac1e0db2f Enhanced behavior armoury_entity with czbot, don't pick up if forbidden by cvars 2019-09-11 00:04:18 +07:00
s1lent
b1d884224e
Fixes #399 2019-08-13 21:02:22 +07:00
s1lent
f8b082fece
CCSBotManager::MaintainBotQuota: Added autobalance 2019-06-22 03:13:53 +07:00
s1lent
555b08faa6
Added new cvar bot_join_delay 2019-06-22 03:10:59 +07:00
s1lent
3442cb3bf3
Enhanced bot_quota_mode 2019-06-22 02:57:09 +07:00
s1lent
0aa974cd63
Reworked bot_quota_mode and removed bot_quota_match cvar's (Migrated to bot_quota_mode) 2019-06-22 02:54:01 +07:00
s1lent
9ed19456f0 Print reason kick also added reason message for kick 2019-06-21 02:37:44 +07:00
s1lent
3abf4879e7
Fixed some GCC warnings 2019-06-06 01:26:02 +07:00
s1lent
309d5c5c6d
bot chatter mention of places: fix wrong entry in history 2019-06-05 22:23:39 +07:00
s1lent
9b4def6e3f
bot chatter: use filesystem to check exists filename instead of _access, cuz filesystem uses search paths such as cstrike_downloads, cstrike_german, cstrike_russian etc 2019-06-05 21:06:02 +07:00
s1lent
247e93b4ff
Fix work cvar bot_chatter "radio", zbots doesn't send radio command into chat.
Wrong ascii conversion.
2019-06-05 20:08:50 +07:00
Vaqtincha
932001b591 Bot vision update.
* Bots can't see invisible enemies
* Bots ignore enemies with flag FL_NOTARGET
2018-10-31 04:07:26 +07:00
s1lent
565e9cd2b2
Prevent spam in console if bot_quota is more than spawn points,
so decreases bot_quota every time if create bot fails
2017-12-17 19:34:05 +07:00
s1lent
7f9cf53c49
Refactoring 2017-11-23 00:43:30 +07:00
In-line
5afb52ffce Use Q_abs float overload whenever possible (fix #107) (#201) 2017-11-07 17:27:54 +03:00
In-line
f53452fee0 Minor refactoring and opt. in IsIntersectingBox (#202)
* Minor refactoring and opt. in IsIntersectingBox
2017-11-07 16:53:45 +03:00
s1lent
10ee63d807
Fix nade drops
Move m_bHasSecondaryAttack to CCSPlayerWeapon
2017-11-03 23:33:17 +07:00
s1lent
0eed08c133 Cleanup code
Fixed a bug after killing czbot by headshot, angles turn at 180 degrees.
Fixed some bugs with mp_nadedrops
2017-11-01 18:30:47 +03:00
s1lent
9dcab4bd49 Refactoring minor
Refactoring unicode_strtools
2017-11-01 18:30:47 +03:00
s1lent
32df585edc Remove hookers stuff
Refactoring & cleanup code
2017-11-01 18:30:47 +03:00
s1lent
b25e3505d3 Major refactoring & cleanup 2017-11-01 18:30:47 +03:00
s1lent
b4bc385912
CZBot: Fix crash when there is no phrase from BotChatter.db or no exists itself the database.
Minor refactoring
2017-07-02 18:55:28 +07:00
s1lent
adaddda871
Code cleanup
Hookers Refactoring
Removed __MAKE_VHOOK
Fix compilation under linux with ICC 17 (GCC 6.2)
2017-07-02 18:54:33 +07:00
s1lentq
3a1e08abd4 Fix memory corruption bugs due the array index out of bounds. (#147) 2017-05-04 17:49:28 +03:00
s1lent
3f4bcd9b96 GitHub: add execute permission to a gradlew.
Fix typo in CCSBotManager::SetRadioMessageTimestamp
2017-05-04 21:45:59 +07:00
s1lent
cd96c9133d Fix bot: do reset of the target when are the target (player or bot) left the game. 2017-02-06 02:50:30 +07:00
Saint146
507688c745 Added cvar bot_quota_mode (#103) 2017-02-03 16:55:00 +07:00
s1lent
90d08ee3a0 Refactoring & fix warnings VS2015.
Ignore VS2015 files.
Add ResetSequenceInfo in SetNewPlayerModel.
Interface API CCSPlayer: Added ResetSequenceInfo and reworked RemovePlayerItem
Bump minor version
2017-01-30 23:07:56 +07:00
s1lentq
a5dac3c267 Backport #76
Refactoring
Some small fixes and improves
Reworked mp_forcerespawn and hookchain InternalCommand
Fixed fail compilation in VisualStudio
Bump minor version in gradle.properties
Update README.md
2017-01-21 22:49:56 +07:00
s1lentq
c77486dadd Get rid of spec-crosshair from gameplay. (Useless)
Reworked hookchain's: SetClientUserInfoName, GiveNamedItem
Added hookchain's: DropShield, MakeVIP, MakeBomber, GetIntoGame, Disappear, Radio, StartObserver, OnSpawnEquip
Refactoring
2016-12-07 02:28:33 +07:00
s1lentq
42edf0ebec Fix crash when self-build navigation areas
Added cvar's mp_fragsleft, mp_fraglimit, showtriggers (also handling mp_timeleft)
Removed client cmd's (like cd, kill) - they are in the black list of cl_filterstuffcmd.
Refactoring
2016-10-05 22:27:50 +07:00