View Single Post
Author Message
Marqueritte
Junior Member
Join Date: Dec 2019
Location: Asia
Old 12-15-2019 , 10:19   [TF2] Bot Combat Improvements
Reply With Quote #1

Title: Bot Command Improvements

Description: Name says it all, a plugin that makes bot better in combat

Features! :
Code:
-Bots now jump during gameplay.
-Pyros, Heavies, and Scouts now have smooth aim tracking! (doesn't track disguised and invisible spies.)
-Soldier bots now fire in the direction the enemy will go
-Bots now can call the "Medic!" when the damage has been taken and use "Thanks" command when healed
-Bots can use voice commands! (i.e Help!, Battle Cry, Cheers, Jeers, Positive, Negative)
-Demoknights bots rush their enemies if they are close.
Cvars:
tf_bot_rtd_support (0, 1) Enables or Disables RTD(Roll The Dice) support for TFbots. Default = 0.
tf_bot_voice_commands (0, 1) controls whenever TFbots use voice commands. Default = 1.
tf_bot_combat_jump (0, 1) controls whenever TFBots Jump during gameplay. Default = 1.
tf_bot_scout_doublejump (0, 1) controls whenever a Scout double jumps when he jumps. Default = 0 since it may be buggy.

Known Issues/Bugs:
B̶o̶t̶s̶ ̶w̶i̶l̶l̶ ̶s̶w̶i̶t̶c̶h̶ ̶t̶a̶r̶g̶e̶t̶s̶ Fixed by: EfeDursun125
B̶o̶t̶s̶ ̶m̶a̶y̶ ̶g̶l̶i̶t̶c̶h̶ ̶o̶u̶t̶ ̶i̶n̶ ̶P̶L̶ ̶M̶a̶p̶s Fixed by: EfeDursun125
B̶o̶t̶s̶ ̶g̶e̶t̶ ̶s̶t̶u̶c̶k̶ ̶n̶e̶a̶r̶ ̶w̶a̶l̶l̶s̶ ̶w̶h̶i̶l̶e̶ ̶r̶u̶n̶n̶i̶n̶g̶ ̶b̶a̶c̶k̶w̶a̶r̶d̶s

Changelog:
Code:
Release 1.7.5
Errors on console should be fixed?

Release 1.7.4
Bug fixes.

Release 1.7.3
Fixed a problem aim was removed, remove unnecessary code which made spies force to shoot,
and the removal of code that forced bots to shoot (thanks for EfeDursun125 for pointing these out)
Merge all the plugins back into the original plugin
Couple of hotfixes
etc.

Release 1.7.2
Add a command "tf_bot_scout_doublejump (controls whenever a Scout double jumps when he jumps. Default = 0 since it may be buggy.)
Temporary Removal of setup finish code (Due to how many problems it created)
adjusted some values in code.

Release 1.7.1
Fixed an issue where plugin doesn't stop next setup time.
Fixed an issue some commands are being spammed
Fixed some typos
etc



Release 1.7.0
Reworked tf_bot_voice plugin for better performance and added new support for some voice commands.
Made the plugins only execute stuff when round starts (to prevent spam rtd and voice command during setup time)
Merged Demoknight plugin as the original plugin.
Removal of Sticky Spamming plugin (due  to it needing better implementation so it works better)



Release 1.6.8
Updated voice commands plugin to include "Medic!"and "Thanks!" from the original plugin
Updated RTD so it no longers spams the chat, use rtd a bit less, and bots won't try to rtd during setup time. (Bots will still limited support for perks that use voice command to activate)
etc.


Release 1.6.7.1
Edited the combat jump plugin, (improved implementation)
Engineers and Spies can now jump.
Clean up the code
etc.

Release 1.6.7
All bots (except for med, spies, snipers, and engineers) now jump randomly while in combat.

Release 1.6.6
Plugins now use the new syntax big thanks to enderandrew!

Release 1.6.5
Removed movement tweaks as of time being.
Fixed compiling errors
etc.

Release 1.6.4
Disabled Demo arc improvements (due to the normal pill aim is already better, will improve on it later on)
Disabled Movement Tweaks (It has problems that wouldn't be a thing normal I.E getting stuck on the bridge in 2fort at any distance)

Release 1.6.3
Actually fixed a bug where spies don't try to backstab their target and a bug that made spies shoot enemies regardless if they're disguised/cloaked or not.
and other fixes!

Release 1.6.2
Fixed a bug where spies don't try to backstab their target
Fixed a bug that made spies shoot enemies regardless if they're disguised/cloaked or not.
Improved on the code.
other fixes.


Release 1.6.1
Re-added Bot Movement tweak (Should be better than before now.)
Remove redundant code (like RTD stuff since it being handle by another plugin, as well the voice command etc)

Release 1.6.0
Added sticky spam support and demo knight in normal play plugins here (note must have a plugin that gives them unlocks)


Release 1.5.2
Made Voice Commands separate file with a toggleable command "tf_bot_voice_commands 0 or 1"

Release 1.5.1
Made them aim faster
Made bots RTD even less
Other fixes

Release 1.5
Fixed bots getting stuck 
removal of bots moving depending on the target's movement (due to it being too hard to deal with)
removal of bots using melee in close distance (there's another plugin for that)

Release Version 1.4
Added optional RTD support (has a command to be enabled or disabled "tf_bot_rtd_support")
Added Separate RTD support file for people who don't need the combat improvements.
Fixed rarely saying RTD
Fixed "Help" command spam
Fixed sentry gun checker valid entity error spam???
Bots a bit aim faster now.

Note: Still working on fixing that pesky walk stuck bug and working on some stuff

Release Version 1.3
Changes:
Added Showin's Sentry Checker (Soldier bots now target sentries)
Remove Aim Tracking for some classes.
Made bots RTD less
FIXED: Spies Randomly swinging their knives

Release Version 1.2
Changes:
Gave Crasher_3637 and EfeDursun125 credit in plugin info
FIXED: Bots may glitch out in PL Maps.
FIXED: Line 264 (timer)
(Medic spam when being healed)

Release version 1.1:
Changes:
Applied Crasher_3637's Valid client fix
It will not longer spam a valid client error in the console every 9-10 seconds

Applied EfeDursun125's Bot Improvements
FIXED: Bots will rapidly change targets.
-Soldier bots now fire in the direction the enemy will go
-Smoother Aim (less aim lock compared to the old version)
-Bots now can call a medic and use thanks command
-Improved Bot Melee
-Improved Codes
-Random Timer
-Improved Timers

Release version: 1.0
Dependencies:
Roll The Dice Revamped (If you want RTD support.)

Plans:
Add better implementation for RTD support
Add more improvements for voice commands. (Make bots respond with either yes or no, Better use of Go command and Incoming, and etc)
Rework Sticky Spamming code.
P̶l̶a̶n̶n̶i̶n̶g̶ ̶t̶o̶ ̶r̶e̶-̶a̶d̶d̶ ̶t̶h̶e̶ ̶B̶o̶t̶'̶s̶ ̶m̶o̶v̶e̶m̶e̶n̶t̶ ̶t̶w̶e̶a̶k̶s̶ ̶w̶h̶i̶l̶e̶ ̶f̶i̶g̶h̶t̶i̶n̶g̶ ̶e̶n̶e̶m̶i̶e̶s̶ ̶b̶u̶t̶ ̶w̶i̶t̶h̶o̶u̶t̶ ̶t̶h̶e̶ ̶b̶u̶g̶s̶ (Working on a rework)

Credits:
HUGE thanks for enderandrew for updating it to the new syntax!
also thanks to Crasher_3637 for fixing the valid client bug, EfeDursun125 For improving the plugin further and fixing a bug, Showin' for his sentry checker, and finally tRololo312312 for making the VSH/ff2 plugin where I edited it from and the original plugin that I edited.

Also, this is my first plugin and I'm new here if you see anything wrong that I did please point it out thanks!
Help will be appreciated!
Attached Files
File Type: sp Get Plugin or Get Source (tf_bot_combat_improvements.sp - 23 views - 21.8 KB)

Last edited by Marqueritte; 03-10-2024 at 14:35. Reason: Update 1.7.3
Marqueritte is offline