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

[L4D1/2] Randomize Tank Witch HP and Speed 1.2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Thraka
AlliedModders Donor
Join Date: Aug 2005
Plugin ID:
1448
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    8 
    Plugin Description:
    Randomizes the values of the tank and witch's health and speed before they spawn.
    Old 02-02-2010 , 22:24   [L4D1/2] Randomize Tank Witch HP and Speed 1.2
    Reply With Quote #1

    This should work in l4d2 and 1. I got this idea from gamemann's two plugins. However, the way he coded them, they didn't not work as intended.

    My version has cvars for each the tank and witch's min\max for hp and speed. These default to the values of their respective cvars for health and speed at time of plugin load when it creates the auto config file, l4d_randomize_tw.cfg.

    Todo
    - Need to handle tank frustration and disable the "tank_spawn" logic in that scenario

    1.2
    - Fixed bug with player taking over the tank and it printing\randomizing twice.
    - Fixed display bug that was printing wrong info for tank health to it's team.
    -Added l4d_randomize_tankwitch_print command which will display the randomize settings to the console.

    1.1
    - Added better logging
    - Checks for min being greater than max


    Cvars:
    Code:
    // Notify the infected players of the tank and witch settings.
    // Default: "1"
    l4d_randomize_tankwitch_notify "1"
    
    // Version of the randomize tank and witch settings plugin.
    l4d_randomize_tankwitch_ver "1.0"
    
    // Tanks maximum health when randomizing
    l4d_tank_hp_max
    
    // Tanks minimum health when randomizing
    l4d_tank_hp_min
    
    // Tanks maximum speed when randomizing
    // -
    l4d_tank_speed_max
    
    // Tanks minimum speed when randomizing
    l4d_tank_speed_min
    
    // Witchs maximum health when randomizing
    l4d_witch_hp_max
    
    // Witchs minimum health when randomizing
    l4d_witch_hp_min
    
    // Witchs maximum speed when randomizing
    l4d_witch_speed_max
    
    // Witchs minimum speed when randomizing
    l4d_witch_speed_min
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_randomize_tank_witch_settings.sp - 7039 views - 10.8 KB)

    Last edited by Thraka; 02-05-2010 at 20:09.
    Thraka is offline
     


    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 00:43.


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