Raised This Month: $99 Target: $400
 24% 

[L4D & L4D2] Automatic Difficult Balance Base On Intensity


Post New Thread Reply   
 
Thread Tools Display Modes
Author
panxiaohai
Senior Member
Join Date: Mar 2010
Plugin ID:
2553
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A Automatic Difficult Balance System Base On Intensity.
    Old 09-09-2011 , 14:56   [L4D & L4D2] Automatic Difficult Balance Base On Intensity
    Reply With Quote #1

    Automatic Difficult Balance Base On Intensity (Coop mode only)

    Survivor's intensity :
    If you are in danger, your intensity will become large, this plugin is base on survivors' average intensity.

    !balance : show or hide panel of balance system.
    !difficulty + password + number :
    set the difficulty.
    !dinfo : view all cvar changes for the game, for example:
    Survior Count: 6
    Tank's Health: 8000 to 11200
    Witch's Health: 1000 to 1400
    Zombie's Health: 50 to 70
    Smoker's Health: 500 to 700
    Hunter's Health: 500 to 700
    Boomer's Health: 500 to 700
    Charger's Health: 500 to 700
    Spitter's Health: 500 to 700
    Jockey's Health: 500 to 700
    Special infected limit : 6 to 8
    z_common_limit: 30 to 40
    z_background_limit: 20
    z_mega_mob_size: 40

    I tested it with 3 bot , the effect is significant, but I have not chance to test it with people, if have any problem or suggestion, please tell me, I would be very grateful.
    The most important cvars are l4d_balance_difficulty_min, l4d_balance_difficulty_max, they determine the overall difficulty of the game.

    Convars:
    "l4d_balance_enable", "1", " 0:diable balacne, 1:enable");
    "l4d_balance_reaction_time", "30", "reaction time of balance system [10, 60]seconds");

    "l4d_balance_difficulty_min", "25", "min difficulty, if intensity less than this value, the balance will start, infected will accumulate[0, 100]");
    "l4d_balance_difficulty_max", "65", "max difficult, if intensity more than this value, then turn off the director[0, 100]");
    "l4d_balance_include_bot", "1", "Do the balance system calculate survivor bots 0: ignore survivor bots , 1:include survivor bots");
    "l4d_balance_setting_password", "1234", "password for seting diffulty");

    "l4d_balance_health_add", "20", "The percentage of special infected's health increment for each extra player [0, 50]");
    "l4d_balance_health_tank", "8000", "tank's original health");
    "l4d_balance_health_witch", "1000", "witch's original health");
    "l4d_balance_health_hunter", "500", "hunter's original health");
    "l4d_balance_health_smoker", "500", "smoker's original health");
    "l4d_balance_health_boomer", "500", "boomer's original health");
    "l4d_balance_health_charger", "500", "charger's original health");
    "l4d_balance_health_jockey", "500", "jockey's original health");
    "l4d_balance_health_spitter", "500", "spitter's original health");
    "l4d_balance_health_zombie", "50", "zombie's original health");


    "l4d_balance_limit_special", "6", "the limit of special infected [0, 20]");
    "l4d_balance_limit_special_add", "1", " The increment of special's limit for each extra player [0, 5]");
    "l4d_balance_limit_common", "30", " z_common_limit [30, 100]");
    "l4d_balance_limit_common_add", "5", " The increment of z_common_limit for each extra player[0, 30]");

    Credits
    "L4D2 Monster Bots", author = "Machine"

    Video
    (The game's z_difficulty is Normal, it did not change any setting
    l4d_balance_difficulty=66, l4d_balance_reaction_time=15)
    http://v.youku.com/v_show/id_XMzAyODA4NzIw.html
    http://v.youku.com/v_show/id_XMzAyODE3ODc2.html
    Attached Thumbnails
    Click image for larger version

Name:	c2m1_highway0005.jpg
Views:	1735
Size:	93.6 KB
ID:	92429  
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_balance.sp - 1683 views - 20.6 KB)

    Last edited by panxiaohai; 10-17-2011 at 16:50.
    panxiaohai is offline
    bzellinger
    Member
    Join Date: Sep 2010
    Old 09-09-2011 , 15:13   Re: [L4D & L4D2] Automatic Difficult Balance Base On Intensity
    Reply With Quote #2

    Explain more please. Also, there's no plugin to download.
    bzellinger is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 09-10-2011 , 05:33   Re: [L4D & L4D2] Automatic Difficult Balance Base On Intensity
    Reply With Quote #3

    Quote:
    Originally Posted by bzellinger View Post
    Explain more please. Also, there's no plugin to download.
    Thanks , I have difficulty on how to explain it.
    panxiaohai is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 09-10-2011 , 08:42   Re: [L4D & L4D2] Automatic Difficult Balance Base On Intensity
    Reply With Quote #4

    This plugin reads the client netprop "m_clientIntensity" which the game uses to determine which music to play for you.

    A low intensity means you're not being attacked at the moment, while a high one means youre surrounded by Infected and/or grabbed by an SI.

    The plugin gets the median intensity across your team and then (low) spawns Infected and SI or (high) disables them from spawning.

    The CHS version uses sdkhooks, the other one doesnt.



    The overall effect will be you get a shitload more zombies and SI in your coop games.
    AtomicStryker is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 09-10-2011 , 09:28   Re: [L4D & L4D2] Automatic Difficult Balance Base On Intensity
    Reply With Quote #5

    Quote:
    Originally Posted by AtomicStryker View Post
    This plugin reads the client netprop "m_clientIntensity" which the game uses to determine which music to play for you.

    A low intensity means you're not being attacked at the moment, while a high one means youre surrounded by Infected and/or grabbed by an SI.

    The plugin gets the median intensity across your team and then (low) spawns Infected and SI or (high) disables them from spawning.

    The CHS version uses sdkhooks, the other one doesnt.



    The overall effect will be you get a shitload more zombies and SI in your coop games.
    Thank your detailed description, my aim is to provide an automatic balance system, make the game more difficult but within the controllable range.

    I think the adjusting is too rapid when intensity is going to low, which making survivors very difficult to resist infected's attack.

    The two versions are the same except the display language.

    Last edited by panxiaohai; 09-10-2011 at 09:36.
    panxiaohai is offline
    Visual77
    Veteran Member
    Join Date: Jan 2009
    Old 09-11-2011 , 11:31   Re: [L4D & L4D2] Automatic Difficult Balance Base On Intensity
    Reply With Quote #6

    Can you fix this? It happens once the server is rebooted.

    edit: bug report. plugin prevents infecteds from spawning after about 3-4 min.
    after about 5 minutes played, only 2 infecteds keeps spawning with z_max_player_zombies set to 32.

    Code:
    L 09/11/2011 - 11:29:19: Info (map "c11m1_greenhouse") (file "errors_20110911.log")
    L 09/11/2011 - 11:29:19: [SM] Plugin encountered error 14: Divide by zero
    L 09/11/2011 - 11:29:19: [SM] Displaying call stack trace for plugin "l4d_balance.smx":
    L 09/11/2011 - 11:29:19: [SM]   [0]  Line 158, l4d_balance.sp::round_start()

    Last edited by Visual77; 09-11-2011 at 13:22.
    Visual77 is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 09-12-2011 , 05:07   Re: [L4D & L4D2] Automatic Difficult Balance Base On Intensity
    Reply With Quote #7

    Quote:
    Originally Posted by Visual77 View Post
    Can you fix this? It happens once the server is rebooted.

    edit: bug report. plugin prevents infecteds from spawning after about 3-4 min.
    after about 5 minutes played, only 2 infecteds keeps spawning with z_max_player_zombies set to 32.

    Code:
    L 09/11/2011 - 11:29:19: Info (map "c11m1_greenhouse") (file "errors_20110911.log")
    L 09/11/2011 - 11:29:19: [SM] Plugin encountered error 14: Divide by zero
    L 09/11/2011 - 11:29:19: [SM] Displaying call stack trace for plugin "l4d_balance.smx":
    L 09/11/2011 - 11:29:19: [SM]   [0]  Line 158, l4d_balance.sp::round_start()
    Thank you, please let me to test it more.
    panxiaohai is offline
    TheJokerx
    Junior Member
    Join Date: Jul 2011
    Old 09-14-2011 , 09:05   Re: [L4D & L4D2] Automatic Difficult Balance Base On Intensity
    Reply With Quote #8

    It's compatible with Multitanks and tanks with 12.000+ HP?
    TheJokerx is offline
    LoneBat
    Member
    Join Date: Dec 2013
    Location: China
    Old 06-17-2014 , 09:27   Re: [L4D & L4D2] Automatic Difficult Balance Base On Intensity
    Reply With Quote #9

    Hey! Infected will spawn in safe room, even if exist survivors in the room.
    LoneBat is offline
    NeoTM
    AlliedModders Donor
    Join Date: Feb 2013
    Location: Britain
    Old 11-03-2014 , 19:48   Re: [L4D & L4D2] Automatic Difficult Balance Base On Intensity
    Reply With Quote #10

    I got the same problem in my server.
    It's not really a problem but sometimes we die in the safe room cos i set the server in high difficulty and we have 2 of each specials spawning at the same time in the spawn :/
    Did someone know how to fix that?
    __________________
    NeoTM 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 20:43.


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