Description:
This plugin grants admins full control over the colour of lights in a map, you can change all lights to a certain colour, turn them on/off, or even start a disco!
Video:
http://www.youtube.com/watch?v=WXuB7EamiOQ
CVars:
lights_version 0.6 -
Version of the Light Colours plugin.
lights_disco_enable 0 - Automatic Disco Mode.
lights_flag z - Default admin flag required to use the commands. (Multiple flags can be added)
Commands:
lights_color <color> - Change all lights to the desired color.
lights_disco - Start a disco with the lights (as seen in the video), this command does not turn Disco Mode off and will not work if Disco Mode is already turned on.
lights_reset - Resets all lights.
lights_switch - Toggle all lights (on/off).
lights_help - Lists the above commands and what they do.
The commands can also be accessed via the 'Server Commands' category in your Admin Menu, as of 0.2
Version History:
0.1:
0.2:
- Added Admin Menu support.
0.3:
- Admin Flag support (lights_flag cvar).
- Several bug fixes.
- lights_disco_enable cvar added.
0.4:
- Fixed Disco Mode not disabling.
0.5:
- Really fixed Disco Mode not disabling.
- Adjusted code to hopefully allow for multi-mod support.
0.6:
- Some minor adjustments in the hope of fixing the error.
- Generic code optimizations.
To Do:
Admin menu support
- Change lights by aim.
- Add natives to allow people to easily change lights through this plugin under their own conditions.
- Get more translations. (Looking good so far!)
Add support for other mods besides TF2.
Valid Colours:
Code:
pink
red
blue
green
yellow
orange
brown
purple
magenta
cyan
random (default)
---
Installation:
Place
lightcolors.smx in your
addons/sourcemod/plugins directory, and
lightcolors.phrases.txt in your
addons/sourcemod/translations directory.
---
Translations:
Hungarian - KhyrOO
Spanish - Damizean
Polish - Zuko
Dutch - icequeenzz
French - Cadav0r
Portuguese - The JCS
---
Any questions or issues, feel free to ask.
Have fun!