Raised This Month: $51 Target: $400
 12% 

[L4D2] Tougher Survivor Bots


Post New Thread Reply   
 
Thread Tools Display Modes
Author
xQd
Junior Member
Join Date: Aug 2017
Plugin ID:
5789
Plugin Version:
1.3
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 08-28-2017 , 06:36   [L4D2] Tougher Survivor Bots
    Reply With Quote #1

    LAST VERSION & ITS DESCRIPTION HERE

    This is my first sourcemod plugin. It is mostly intended for players who play singleplayer but find the bots useless. It could also be useful if you play with one or two friends and want the extra bot(s) to actually be helpful.
    Attached Files
    File Type: smx l4d_TougherSurvivorBots.smx (4.0 KB, 1455 views)
    File Type: sp Get Plugin or Get Source (l4d_TougherSurvivorBots.sp - 2972 views - 1.0 KB)

    Last edited by xQd; 09-08-2017 at 14:47.
    xQd is offline
    bazrael
    Senior Member
    Join Date: Jan 2010
    Location: Where Lucy became superw
    Old 09-02-2017 , 00:29   Re: [L4D2] Tougher Survivor Bots
    Reply With Quote #2

    Would you add the ability that bot survivors are immune to the damage of fire and spitter's goo? It's annoying to see stupid bot survivors incapacitated in molotov fire and spitter's goo when playing expert coop game.
    __________________
    Kill all the son of a bitches, that's my official instructions.
    L4Dε Modified Talker
    bazrael is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 09-02-2017 , 23:23   Re: [L4D2] Tougher Survivor Bots
    Reply With Quote #3

    I want people who have kick permission to use.
    This feature is cool
    How to modify it?
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 is offline
    xQd
    Junior Member
    Join Date: Aug 2017
    Old 09-03-2017 , 10:32   Re: [L4D2] Tougher Survivor Bots
    Reply With Quote #4

    Here is version 1.1 of this plugin. Bot toughness changes dynamically along with the current game difficulty. Higher difficulty = tougher bots in essence.

    This table represents bot toughness on each difficulty:

    Difficulty.....Damage Taken Multiplier......Damage Against SIs Multiplier.......Damage Against Commons Multiplier

    Easy.........................1.0............. .........................1.0................. .................................1.25

    Normal.....................0.75.............. ......................1.10................... ..............................1.50

    Advanced..................0.50............... .....................1.20.................... .............................1.75

    Expert.......................0.25............ .......................1.30.................. ................................2.0

    Also, bots will take much less damage from fire sources and they will take normal damage while incapped. Not sure how to make them more resistant to Spitter's acid.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_TougherSurvivorBots.sp - 1266 views - 3.9 KB)
    File Type: smx l4d_TougherSurvivorBots.smx (5.9 KB, 421 views)

    Last edited by xQd; 09-03-2017 at 11:28.
    xQd is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 09-03-2017 , 18:38   Re: [L4D2] Tougher Survivor Bots
    Reply With Quote #5

    Quote:
    Originally Posted by xQd View Post
    Not sure how to make them more resistant to Spitter's acid.
    Here you go:
    PHP Code:
    if (inflictor && IsValidEntity(inflictor) && IsValidEdict(inflictor))
    {
        
    char sInflictorClass[64];
        
    GetEdictClassname(inflictorsInflictorClasssizeof(sInflictorClass));
        if (
    StrEqual(sInflictorClass"insect_swarm"))
        {
            
    // some codes here
            // bug: when changing its damage, the acid puddle
            // immediately damages any survivor once it is spawned..
            
            
    return Plugin_Changed// apply the modified parameters
        
    }

    cravenge is offline
    xQd
    Junior Member
    Join Date: Aug 2017
    Old 09-04-2017 , 06:08   Re: [L4D2] Tougher Survivor Bots
    Reply With Quote #6

    Quote:
    Originally Posted by cravenge View Post
    Here you go:
    PHP Code:
    if (inflictor && IsValidEntity(inflictor) && IsValidEdict(inflictor))
    {
        
    char sInflictorClass[64];
        
    GetEdictClassname(inflictorsInflictorClasssizeof(sInflictorClass));
        if (
    StrEqual(sInflictorClass"insect_swarm"))
        {
            
    // some codes here
            // bug: when changing its damage, the acid puddle
            // immediately damages any survivor once it is spawned..
            
            
    return Plugin_Changed// apply the modified parameters
        
    }


    Thanks, I may include this in the next version. How did you know that insect_swarm is the entity class name I've been looking for? There is a list of L4D2 entities here in the "Unlisted" section but there is no hint that insect_swarm is actually the acid puddle.

    Quote:
    Originally Posted by bazrael View Post
    Would you add the ability that bot survivors are immune to the damage of fire and spitter's goo? It's annoying to see stupid bot survivors incapacitated in molotov fire and spitter's goo when playing expert coop game.
    I think making them immune to spitter's goo is a little too op, you could try installing Competitive Bots+ from the Steam Workshop which makes the bots have faster reaction times. With that mod they seem to dodge the acid puddle pretty well.

    Last edited by xQd; 09-04-2017 at 06:12.
    xQd is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 09-04-2017 , 08:52   Re: [L4D2] Tougher Survivor Bots
    Reply With Quote #7

    Quote:
    Originally Posted by xQd View Post
    How did you know that insect_swarm is the entity class name I've been looking for?
    I've always had a thing for curiosity and a little help from looking at every source of the plugins related to L4D(2).

    Quote:
    Originally Posted by xQd View Post
    With Competitive Bots+ mod they seem to dodge the acid puddle pretty well.
    +1. So long Improved Bots mod.
    cravenge is offline
    xQd
    Junior Member
    Join Date: Aug 2017
    Old 09-05-2017 , 06:45   Re: [L4D2] Tougher Survivor Bots
    Reply With Quote #8

    Version 1.2 is out!

    Fixed a bug where bots became invulnerable to any damage done by the infected after map change;
    Corrected an error to bot damage against common infected.
    Attached Files
    File Type: smx l4d_TougherSurvivorBots.smx (5.9 KB, 395 views)
    File Type: sp Get Plugin or Get Source (l4d_TougherSurvivorBots.sp - 1171 views - 3.9 KB)

    Last edited by xQd; 09-05-2017 at 06:51.
    xQd is offline
    xQd
    Junior Member
    Join Date: Aug 2017
    Old 09-05-2017 , 17:22   Re: [L4D2] Tougher Survivor Bots
    Reply With Quote #9

    Another small update, 1.21, which fixes another bug which made the bots invulnerable after failing a mission at least once on the current map.
    Attached Files
    File Type: smx l4d_TougherSurvivorBots.smx (6.0 KB, 634 views)
    File Type: sp Get Plugin or Get Source (l4d_TougherSurvivorBots.sp - 1248 views - 4.1 KB)

    Last edited by xQd; 09-05-2017 at 17:23.
    xQd is offline
    xQd
    Junior Member
    Join Date: Aug 2017
    Old 09-08-2017 , 14:45   Re: [L4D2] Tougher Survivor Bots
    Reply With Quote #10

    Update 1.3 is out!

    Fixed yet another bug which made the bots invulnerable. I hope this is the last one;
    Added l4d_tsb_enable cvar which enables/ disables the effects of this plugin on the bots.
    Attached Files
    File Type: smx l4d_TougherSurvivorBots.smx (6.3 KB, 1386 views)
    File Type: sp Get Plugin or Get Source (l4d_TougherSurvivorBots.sp - 2328 views - 4.5 KB)

    Last edited by xQd; 09-08-2017 at 14:46.
    xQd is offline
    Reply



    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 01:49.


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