View Single Post
Author Message
Thraka
AlliedModders Donor
Join Date: Aug 2005
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