View Single Post
Author Message
Jindo
AlliedModders Donor
Join Date: May 2009
Location: England, UK
Old 11-02-2009 , 07:39   [TF2] Light Colours 0.6 (03/10)
Reply With Quote #1

Light Colours v0.6

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:
  • Public Release
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!
Attached Files
File Type: zip LightColors.zip (14.7 KB, 2167 views)
File Type: txt lightcolors.phrases.txt (6.8 KB, 1726 views)
File Type: sp Get Plugin or Get Source (lightcolors.sp - 3240 views - 15.8 KB)
__________________

Last edited by Jindo; 10-03-2010 at 16:35.
Jindo is offline