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.
- Need to handle tank frustration and disable the "tank_spawn" logic in that scenario
- 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.
- Added better logging
- Checks for min being greater than max
// Notify the infected players of the tank and witch settings.
// Default: "1"
// Version of the randomize tank and witch settings plugin.
// Tanks maximum health when randomizing
// Tanks minimum health when randomizing
// Tanks maximum speed when randomizing
// Tanks minimum speed when randomizing
// Witchs maximum health when randomizing
// Witchs minimum health when randomizing
// Witchs maximum speed when randomizing
// Witchs minimum speed when randomizing