L4D1 ONLY
Description
This plugin adds more colors to the clothes of the common infected.
Features
- Allow configuring a random or a specific color to the clothes of the common infected.
Cvars
A configuration file named "
l4d1_colorful_common.cfg" will automatically be created for you upon the first run in the "
\cfg\sourcemod\" folder.
PHP Code:
// Common infected clothes color.
// Use "random" for random colors.
// Use three values between 0-255 separated by spaces ("<0-255> <0-255> <0-255>"), to apply a specific color.
// Examples:
// l4d1_colorful_common_color "random"
// l4d1_colorful_common_color "255 0 0"
// -
// Default: "random"
l4d1_colorful_common_color "random"
// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d1_colorful_common_enable "1"
Admin Commands
- sm_colorful_common_refresh => Refresh the common infected clothes color.
- sm_print_cvars_l4d1_colorful_common => Print the plugin related cvars and their respective values to the console. (z flag required)
Change Log
Notes
- L4D2 isn't supported, since there is no way to change the common clothes color (without modding) by now.
- The color change was applied by using the SetEntityRenderColor function.
Thank you!
- KadabraZz - for the request and testing in his server.
Related Plugins
Post Reply
- Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.
Installation
- Put the "l4d1_colorful_common.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.