L4D2 ONLY
Description
This plugin turns the Special Infected models more random.
Currently support the vanilla models from:
- Smoker (L4D2 and L4D1 models)
- Boomer (L4D2, Boomette and L4D1 models)
- Hunter (L4D2 and L4D1 models)
- Spitter (L4D2 model)
- Jockey (L4D2 model)
- Charger (L4D2 model)
- Witch (Witch and Witch Bride models)
- Tank (L4D2, DLC and L4D1 models)
Features- Allow configuring which models should each SI spawn.
- Allow maintaining custom SI models from map variants.
Cvars
A configuration file named "
l4d2_random_si_model.cfg" will automatically be created for you upon the first run in the "
\cfg\sourcemod\" folder.
PHP Code:
// Random model for Boomer.
// 0 = Disable. 1 = Enable L4D2 model. 2 = Enable Boomette model. 4 = Enable L4D1 model.
// Add numbers greater than 0 for multiple options.
// Example: "3", enables L4D2 and Boomette model.
// -
// Default: "7"
// Minimum: "0.000000"
// Maximum: "7.000000"
l4d2_random_si_model_boomer "7"
// Chance to apply a random model for Boomer.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d2_random_si_model_boomer_chance "100"
// Random model for Charger.
// 0 = Disable. 1 = Enable L4D2 model.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_random_si_model_charger "1"
// Chance to apply a random model for Charger.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d2_random_si_model_charger_chance "100"
// Which type of client (human/bot) should apply the random model.
// 0 = NONE, 1 = HUMAN, 2 = BOT, 3 = BOTH.
// Add numbers greater than 0 for multiple options.
// Example: "3", enables for Humans and Bots.
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "3.000000"
l4d2_random_si_model_client_type "3"
// Chance to keep the custom model (map variant).
// 0 = OFF.
// -
// Default: "50"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d2_random_si_model_custom_chance "50"
// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_random_si_model_enable "1"
// Random model for Hunter.
// 0 = Disable. 1 = Enable L4D2 model. 2 = Enable L4D1 model.
// Add numbers greater than 0 for multiple options.
// Example: "3", enables L4D2 and L4D1 model.
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "3.000000"
l4d2_random_si_model_hunter "3"
// Chance to apply a random model for Hunter.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d2_random_si_model_hunter_chance "100"
// Random model for Jockey.
// 0 = Disable. 1 = Enable L4D2 model.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_random_si_model_jockey "1"
// Chance to apply a random model for Jockey.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d2_random_si_model_jockey_chance "100"
// Random model for Smoker.
// 0 = Disable. 1 = Enable L4D2 model. 2 = Enable L4D1 model.
// Add numbers greater than 0 for multiple options.
// Example: "3", enables L4D2 and L4D1 model.
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "3.000000"
l4d2_random_si_model_smoker "3"
// Chance to apply a random model for Smoker.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d2_random_si_model_smoker_chance "100"
// Random model for Spitter.
// 0 = Disable. 1 = Enable L4D2 model.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_random_si_model_spitter "1"
// Chance to apply a random model for Spitter.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d2_random_si_model_spitter_chance "100"
// Random model for Tank.
// 0 = Disable. 1 = Enable L4D2 model. 2 = Enable L4D2 DLC model. 4 = Enable L4D1 model.
// Add numbers greater than 0 for multiple options.
// Example: "5", enables L4D2 and L4D1 model.
// -
// Default: "7"
// Minimum: "0.000000"
// Maximum: "7.000000"
l4d2_random_si_model_tank "7"
// Chance to apply a random model for Tank.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d2_random_si_model_tank_chance "100"
// Random model for Witch.
// 0 = Disable. 1 = Enable Witch model. 2 = Enable Witch Bride model.
// Add numbers greater than 0 for multiple options.
// Example: "3", enables the Witch and Witch Bride model.
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "3.000000"
l4d2_random_si_model_witch "3"
// Chance to apply a random model for Witch.
// 0 = OFF.
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d2_random_si_model_witch_chance "100"
Admin Commands
- sm_print_cvars_l4d2_random_si_model => Print the plugin related cvars and their respective values to the console. (z flag required)
Change Log
Notes
- This plugin precache some models.
- Example of custom tank model on a custom map: White Forest (2nd Map) has a luminous tank.
To Do
- Add the relative first person arms model.
Thank you!
- Lux - for his random Tank/Witch plugins.
- Tonblader - for requesting chance cvars.
- TrevorSoldier - for requesting custom model variant support.
- Mr. Man - for reporting a missing model precache crashing the server when a Boomete dies.
- yabi - for reporting plugin breaking Suicide Blitz 2 finale when the Tank model changes.
Related Plugins
Post Reply
- Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.
Installation
- Put the "l4d2_random_si_model.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.