Raised This Month: $32 Target: $400
 8% 

[L4D1&2]Cheat Survivor Bot


Post New Thread Reply   
 
Thread Tools Display Modes
Author
HaoJun0823
New Member
Join Date: Aug 2018
Plugin ID:
6223
Plugin Version:
0.1f
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Modify Survivor bot ability.
    Unapprover:
    Reason for Unapproving:
    Plugin throws errors - see end of thread for an older version that supposedly works
    Old 08-08-2018 , 05:37   [L4D1&2]Cheat Survivor Bot
    Reply With Quote #1

    Hey guys, i'm HaoJun0823, This is my first time to write a plugin with sourcemod.

    You can use it to change survivor bot's health,weapon attack speed(Melee and Weapon),move speed,gravity, and decide if can use infinite ammo.

    All values can modify in l4d_survivor_cheat_bot.cfg, sorry for can not support to console command.

    Maybe it can use in l4d1, but i am not tested.

    If you want to improve this plugin, you can aceess github:
    https://github.com/HaoJun0823/l4d-cheat-bot

    Thanks to every player and modders.

    2019/05/02
    I am sorry that I did not update in time.
    But this time I fixed all the problems you said.
    I added new healing robot features and optimized the code.

    2019/05/26
    Can auto get some weapons, items and upgrades.
    Can refelect damage.
    Supported L4D1 & L4D2

    2019/10/13
    Can running in L4D1.
    Add many features!(ReflectDamage,RandomWeaponsAndItems etc...)
    Optimization!

    Thanks to Sev and Crasher_3637 for their suggestions and solutions.
    When players join in game, player will be instead bot, so they will be have some feature, if i check player and make them restore to norml data, i think this action will be effect other plugins.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_cheat_survivor_bot.sp - 1055 views - 56.5 KB)

    Last edited by HaoJun0823; 07-17-2020 at 07:49.
    HaoJun0823 is offline
    ricksfishin
    Senior Member
    Join Date: Oct 2017
    Old 08-08-2018 , 07:54   Re: [L4D2]Cheat Survivor Bot
    Reply With Quote #2

    Works great thank you.
    ricksfishin is offline
    Sev
    Veteran Member
    Join Date: May 2010
    Old 08-08-2018 , 09:34   Re: [L4D2]Cheat Survivor Bot
    Reply With Quote #3

    Good work on this.

    Plugins that improve the survivor bots over the years seem to be rare or very few and far between. This does overdo it, but at least it works.

    My only suggestion is when bots heal. They should heal according to the value in the config.

    So 500, if they heal, it should be 500. Also add an option to remove the chat so people don't have to recompile it without it.

    Last edited by Sev; 08-08-2018 at 09:45.
    Sev is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 08-08-2018 , 11:18   Re: [L4D2]Cheat Survivor Bot
    Reply With Quote #4

    Nice plugin for you're first

    Quote:
    Originally Posted by Sev View Post
    Good work on this.
    Plugins that improve the survivor bots over the years seem to be rare or very few and far between.
    public plugins this is true.
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 08-08-2018 , 18:50   Re: [L4D2]Cheat Survivor Bot
    Reply With Quote #5

    Not bad for your first plugin.

    +1
    __________________
    Psyk0tik is offline
    FatalOE71
    Member
    Join Date: Jun 2018
    Old 09-05-2018 , 23:39   Re: [L4D2]Cheat Survivor Bot
    Reply With Quote #6

    I have an error that is spamming the log file.

    L 09/05/2018 - 20:21:44: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:44: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:44: [SM] Call stack trace:
    L 09/05/2018 - 20:21:44: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:44: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:45: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:45: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:45: [SM] Call stack trace:
    L 09/05/2018 - 20:21:45: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:45: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:45: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:45: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:45: [SM] Call stack trace:
    L 09/05/2018 - 20:21:45: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:45: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:45: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:45: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:45: [SM] Call stack trace:
    L 09/05/2018 - 20:21:45: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:45: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:45: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:45: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:45: [SM] Call stack trace:
    L 09/05/2018 - 20:21:45: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:45: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:45: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:45: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:45: [SM] Call stack trace:
    L 09/05/2018 - 20:21:45: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:45: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:45: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:45: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:45: [SM] Call stack trace:
    L 09/05/2018 - 20:21:45: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:45: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:46: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:46: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:46: [SM] Call stack trace:
    L 09/05/2018 - 20:21:46: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:46: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:46: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:46: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:46: [SM] Call stack trace:
    L 09/05/2018 - 20:21:46: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:46: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:46: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:46: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:46: [SM] Call stack trace:
    L 09/05/2018 - 20:21:46: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:46: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:46: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:46: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:46: [SM] Call stack trace:
    L 09/05/2018 - 20:21:46: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:46: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:46: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:46: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:46: [SM] Call stack trace:
    L 09/05/2018 - 20:21:46: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:46: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:46: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:46: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:46: [SM] Call stack trace:
    L 09/05/2018 - 20:21:46: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:46: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:46: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:46: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:46: [SM] Call stack trace:
    L 09/05/2018 - 20:21:46: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:46: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:46: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:46: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:46: [SM] Call stack trace:
    L 09/05/2018 - 20:21:46: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:46: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:46: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:46: [SM] Blaming: l4d2_cheat_bot.smx
    L 09/05/2018 - 20:21:46: [SM] Call stack trace:
    L 09/05/2018 - 20:21:46: [SM] [0] GetEntPropFloat
    L 09/05/2018 - 20:21:46: [SM] [1] Line 100, /home/forums/content/files/2/8/7/2/9/9/170874.attach::OnGameFrame
    L 09/05/2018 - 20:21:46: [SM] Exception reported: Property "m_flNextPrimaryAttack" not found (entity 247/weapon_scavenge_item_spawn)
    L 09/05/2018 - 20:21:46: [SM] Blaming: l4d2_cheat_bot.smx

    Appears to be the same error over and over again. Any chance anyone can fix it?
    FatalOE71 is offline
    ricksfishin
    Senior Member
    Join Date: Oct 2017
    Old 09-06-2018 , 01:24   Re: [L4D2]Cheat Survivor Bot
    Reply With Quote #7

    Try to re download "m_flNextPrimaryAttack" is in sp. Plugin works.
    ricksfishin is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 09-06-2018 , 03:33   Re: [L4D2]Cheat Survivor Bot
    Reply With Quote #8

    Quote:
    Originally Posted by ricksfishin View Post
    Try to re download "m_flNextPrimaryAttack" is in sp. Plugin works.
    Just because it works for you doesn't mean it will work perfectly for everyone else. The author needs to check if the entity is valid. Right now the plugin only checks if it's a valid edict which is different from being a valid entity. He should also use HasEntProp() to check if the entity has the property at the moment that the plugin modifies it.
    __________________
    Psyk0tik is offline
    KasperH
    Senior Member
    Join Date: Apr 2016
    Location: Hungary
    Old 09-06-2018 , 15:11   Re: [L4D2]Cheat Survivor Bot
    Reply With Quote #9

    Quote:
    Just because it works for you doesn't mean it will work perfectly for everyone else.
    Looks like i'm "everyone else", for me not only the bots get the plus hp and the other stuff, i and my friend get it to. More odd is, on the next round only i had the stuff, and my friend not. Tested on coop and vs, no difference.
    __________________

    "I've Got You In My Sights!"
    KasperH is offline
    FatalOE71
    Member
    Join Date: Jun 2018
    Old 02-05-2019 , 13:23   Re: [L4D2]Cheat Survivor Bot
    Reply With Quote #10

    Is there anyone willing to fix the errors in this mod? I would love to use it again as it improved the bots quit a bit.
    FatalOE71 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 18:54.


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