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

[L4D2] Smart AI Tank [Jul.-31-2021]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
BRU7US
Member
Join Date: Jul 2020
Location: Tatarstan, Kazan
Plugin ID:
7215
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin improves AI Tank behaviour. [July-31-2021]
    Old 07-23-2020 , 09:34   [L4D2] Smart AI Tank [Jul.-31-2021]
    Reply With Quote #1

    About:

    This plugin improves AI Tank behaviour. Now he ignore the Survivors who using mounted machinegun.

    Now Tank find as target nearest survivor.

    He don't let you cut his back by melee.

    Also by Cvars he can ignore or choose as victim vomited and incapacitated survivors.

    If you set Cvar to choose as victim incapacitated survivors then AI Tank will be chasing nearest incapacitated survivors only on Hard and Expert difficulties because he can kill them fast.

    If you set Cvar to choose as victim incapacitated and vomited survivors then AI Tank will be also chasing nearest survivor who been incapacitated or vomited.

    This plugin supports only Left 4 Dead 2!


    CVars:

    Saved to l4d2_smart_bot_tank.cfg in your server's \cfg\sourcemod\ folder.

    PHP Code:
    l4d2_sbt_high_difficulties_finish_off_incapacitated
    //Values: 1 / 0.
    //Description: Enable/Disable finishing off survivors who gets incapacitated on Hard/Expert difficulties.
    //Note: This CVar doesn't work on Easy and Normal difficulties.

    l4d2_sbt_targets_vomited_survivor 
    //Values: 1 / 0.
    //Description: Enable/Disable targeting survivors who gets vomited. 

    Known Bugs:

    None at the moment.


    Requirements:

    1. SourceMod 1.10

    2. Left4DHooks Direct

    3. Put l4d2_minigun_victim.txt to gamedata folder.


    Supported Gamemodes:

    Now this plugin working correctly only in CO-OP.


    Special Thanks:

    axelnieves2012 for this plugin which served as the idea for my plugin.

    BHaType for his code which allows the tank to ignore the machine gun.


    P.S.

    This is my first public plugin and topic in this forum. Sorry for mistakes if there are any.

    UPDATES
    July 31, 2021:
    - Updated l4d2_minigun_victim.txt (Thanks to BHaType)
    - Fixed problem when Tank always chose as its victim a respawned player who died while being vomited even he isn't was vomited.

    September 11, 2020 - Changed HookEvent declaration to the new style. (Thanks to rtokuda)
    Attached Files
    File Type: txt l4d2_minigun_victim.txt (1.0 KB, 753 views)
    File Type: sp Get Plugin or Get Source (l4d2_smart_bot_tank.sp - 523 views - 12.1 KB)
    File Type: smx l4d2_smart_bot_tank.smx (7.8 KB, 806 views)

    Last edited by BRU7US; 07-31-2021 at 06:20. Reason: Updated
    BRU7US is offline
     



    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 20:11.


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