Raised This Month: $1944 Target: $400
 486% 

[TF2] Bot Combat Improvements


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marqueritte
Junior Member
Join Date: Dec 2019
Location: Asia
Plugin ID:
6856
Plugin Version:
1.7.2
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Bots now play better in combat!
    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, Scouts, and Spies 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 = 1.
    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.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 tthanks 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 - 18 views - 11.8 KB)
    File Type: sp Get Plugin or Get Source (tf_bot_combat_jump.sp - 19 views - 2.5 KB)
    File Type: sp Get Plugin or Get Source (tf_bot_rtdsupport.sp - 16 views - 1.5 KB)
    File Type: sp Get Plugin or Get Source (tf_bot_combat_voice.sp - 13 views - 6.2 KB)

    Last edited by Marqueritte; 08-09-2020 at 02:56. Reason: Update 1.6.5
    Marqueritte is offline
    kokokolia
    Junior Member
    Join Date: Aug 2019
    Old 12-17-2019 , 10:04   Re: [TF2] Bot Combat Improvements
    Reply With Quote #2

    Hello. This plugin works OK, but every 9-10 seconds I see this in server console:
    Quote:
    L 12/17/2019 - 18:09:53: [SM] [1] Line 59, /home/forums/content/files/2/9/6/3/4/0/178745.attach::OnPlayerRunCmd
    L 12/17/2019 - 18:09:53: [SM] Exception reported: Client index -1 is invalid
    L 12/17/2019 - 18:09:53: [SM] Blaming: bot_combat_improvements.smx
    L 12/17/2019 - 18:09:53: [SM] Call stack trace:
    L 12/17/2019 - 18:09:53: [SM] [0] GetClientAbsOrigin
    L 12/17/2019 - 18:09:53: [SM] [1] Line 59, /home/forums/content/files/2/9/6/3/4/0/178745.attach::OnPlayerRunCmd
    L 12/17/2019 - 18:09:53: [SM] Exception reported: Client index -1 is invalid
    L 12/17/2019 - 18:09:53: [SM] Blaming: bot_combat_improvements.smx
    L 12/17/2019 - 18:09:53: [SM] Call stack trace:
    L 12/17/2019 - 18:09:53: [SM] [0] GetClientAbsOrigin
    L 12/17/2019 - 18:09:53: [SM] [1] Line 59, /home/forums/content/files/2/9/6/3/4/0/178745.attach::OnPlayerRunCmd
    L 12/17/2019 - 18:09:53: [SM] Exception reported: Client index -1 is invalid
    L 12/17/2019 - 18:09:53: [SM] Blaming: bot_combat_improvements.smx
    L 12/17/2019 - 18:09:53: [SM] Call stack trace:
    L 12/17/2019 - 18:09:53: [SM] [0] GetClientAbsOrigin
    L 12/17/2019 - 18:09:53: [SM] [1] Line 59, /home/forums/content/files/2/9/6/3/4/0/178745.attach::OnPlayerRunCmd
    L 12/17/2019 - 18:09:53: [SM] Exception reported: Client index -1 is invalid
    L 12/17/2019 - 18:09:53: [SM] Blaming: bot_combat_improvements.smx
    L 12/17/2019 - 18:09:53: [SM] Call stack trace:
    L 12/17/2019 - 18:09:53: [SM] [0] GetClientAbsOrigin
    L 12/17/2019 - 18:09:53: [SM] [1] Line 59, /home/forums/content/files/2/9/6/3/4/0/178745.attach::OnPlayerRunCmd
    What to do? Sorry for bad English.
    kokokolia is offline
    John Derek
    Junior Member
    Join Date: Aug 2015
    Old 12-18-2019 , 15:09   Re: [TF2] Bot Combat Improvements
    Reply With Quote #3

    Thanks for the good work, im really interested in the aim changes. Ill test this out soon
    John Derek is offline
    kokokolia
    Junior Member
    Join Date: Aug 2019
    Old 12-19-2019 , 08:03   Re: [TF2] Bot Combat Improvements
    Reply With Quote #4

    OMG. Please fix that error above.
    Spoiler

    Last edited by kokokolia; 12-19-2019 at 08:03.
    kokokolia is offline
    Marqueritte
    Junior Member
    Join Date: Dec 2019
    Location: Asia
    Old 12-19-2019 , 22:45   Re: [TF2] Bot Combat Improvements
    Reply With Quote #5

    Quote:
    Originally Posted by kokokolia View Post
    OMG. Please fix that error above.
    Spoiler
    Oh sorry about that, will fix that soon but can't for now since my laptop broke, but will fix it asap once i get a new one
    Marqueritte is offline
    Crasher_3637
    AlliedModders Donor
    Join Date: May 2012
    Old 12-20-2019 , 02:21   Re: [TF2] Bot Combat Improvements
    Reply With Quote #6

    Quote:
    Originally Posted by kokokolia View Post
    OMG. Please fix that error above.
    Spoiler
    This should fix it. Just added a valid client check for the Ent index.
    Attached Files
    File Type: sp Get Plugin or Get Source (bot_combat_improvements.sp - 220 views - 8.5 KB)
    __________________
    AFK like JFK
    Crasher_3637 is offline
    Marqueritte
    Junior Member
    Join Date: Dec 2019
    Location: Asia
    Old 12-20-2019 , 06:30   Re: [TF2] Bot Combat Improvements
    Reply With Quote #7

    Quote:
    Originally Posted by Crasher_3637 View Post
    This should fix it. Just added a valid client check for the Ent index.
    Thank you for fixing it when i can't, you are doing gods work
    Marqueritte is offline
    John Derek
    Junior Member
    Join Date: Aug 2015
    Old 12-20-2019 , 12:48   Re: [TF2] Bot Combat Improvements
    Reply With Quote #8

    So i tested it out and all of the features work well enough. The soldier change is especially nice. The only issue is with bots walking against walls for a while but thats a known issue

    EDIT: This may be one of my other plugins conflicting but ive seen that spies have the tendency to prefer their revolver over their knife

    Last edited by John Derek; 12-20-2019 at 14:03.
    John Derek is offline
    EfeDursun125
    Member
    Join Date: Feb 2019
    Location: Turkey
    Old 12-20-2019 , 16:19   Re: [TF2] Bot Combat Improvements
    Reply With Quote #9

    Improved Version

    FIXED : Bots will rapidly change targets.
    FIXED : Bots may glitch out in PL Maps.
    FIXED : Line 264 (timer)

    -Soldier bots now fire in the direction the enemy will go
    -Smooth Aim (not like aimbot in old version)
    -Bots now can call medic and use thanks command
    -Improved Bot Melee
    -Improved Codes
    -Random Timer
    -Improved Timers

    PLAN : Make bots focus on killing their target before switching to other targets (%50 Done)

    Bots are now attacking the nearest target that appears on their screens

    You can change bots aim speed in sp file ("float DefaultAimSpeed = 0.2" in line 8, )

    EDIT : please change "Plugin Game: Any" to Team Fortress 2
    Attached Files
    File Type: sp Get Plugin or Get Source (tf_bot_combat_improvements.sp - 172 views - 15.1 KB)

    Last edited by EfeDursun125; 12-21-2019 at 07:41.
    EfeDursun125 is offline
    Marqueritte
    Junior Member
    Join Date: Dec 2019
    Location: Asia
    Old 12-20-2019 , 22:32   Re: [TF2] Bot Combat Improvements
    Reply With Quote #10

    Quote:
    Originally Posted by EfeDursun125 View Post
    Improved Version

    FIXED : Bots will rapidly change targets.

    -Soldier bots now fire in the direction the enemy will go
    -Smooth Aim (not like aimbot in old version)
    -Bots now can call medic and use thanks command
    -Improved Bot Melee
    -Improved Codes
    -Random Timer
    -Improved Timers

    PLAN : Make bots focus on killing their target before switching to other targets (%50 Done)

    Bots are now attacking the nearest target that appears on their screens

    You can change bots aim speed in sp file ("float DefaultAimSpeed = 0.2" in line 8, )
    Nice! this will definitely help thanks dude.
    Marqueritte is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 16:13.


    Powered by vBulletin®
    Copyright ©2000 - 2020, vBulletin Solutions, Inc.
    Theme made by Freecode