Raised This Month: $12 Target: $400
 3% 

[TF2] Light Colours 0.6 (03/10)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Jindo
AlliedModders Donor
Join Date: May 2009
Location: England, UK
Plugin ID:
1262
Plugin Version:
0.6
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    26 
    Plugin Description:
    Change the colour of lights.
    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, 2159 views)
    File Type: txt lightcolors.phrases.txt (6.8 KB, 1723 views)
    File Type: sp Get Plugin or Get Source (lightcolors.sp - 3233 views - 15.8 KB)
    __________________

    Last edited by Jindo; 10-03-2010 at 16:35.
    Jindo is offline
    KhyrOO
    Senior Member
    Join Date: May 2008
    Location: Budapest, Hungary
    Old 11-02-2009 , 08:13   Re: [TF2] Light Colours 0.1 (02/11)
    Reply With Quote #2

    Hungarian translation, great plugin, I love it!
    Attached Files
    File Type: txt lightcolors.phrases.txt (1.6 KB, 644 views)
    __________________


    The ForCe will be WiTH U ALwaYs!
    KhyrOO is offline
    Send a message via MSN to KhyrOO
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 11-02-2009 , 08:17   Re: [TF2] Light Colours 0.1 (02/11)
    Reply With Quote #3

    Thanks, updated the first post to include those!
    __________________
    Jindo is offline
    Chris-_-
    SourceMod Donor
    Join Date: Oct 2008
    Old 11-02-2009 , 09:38   Re: [TF2] Light Colours 0.1 (02/11)
    Reply With Quote #4

    My god that looks awesome

    EDIT: Idea here, light_aim, look in the direction of a light, trace to the area you're looking at, loop through all entities and compare the length between the actual location of the point_spotlight and the traced location by xx distance (whatever suitable) using vector-math. ftw!

    Last edited by Chris-_-; 11-02-2009 at 10:06.
    Chris-_- is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 11-02-2009 , 09:45   Re: [TF2] Light Colours 0.1 (02/11)
    Reply With Quote #5

    Why are you such a great coder?

    5starred
    noodleboy347 is offline
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 11-02-2009 , 10:57   Re: [TF2] Light Colours 0.1 (02/11)
    Reply With Quote #6

    Quote:
    Originally Posted by Chris-_- View Post
    My god that looks awesome

    EDIT: Idea here, light_aim
    So change the light you're looking at? I'll see what I can do!
    __________________
    Jindo is offline
    scopesp
    Senior Member
    Join Date: Jan 2009
    Location: Munich
    Old 11-02-2009 , 11:18   Re: [TF2] Light Colours 0.1 (02/11)
    Reply With Quote #7

    many thanks ;)

    possible to add it in admin menu for root admins ?

    Last edited by scopesp; 11-02-2009 at 11:25.
    scopesp is offline
    Chris-_-
    SourceMod Donor
    Join Date: Oct 2008
    Old 11-02-2009 , 11:19   Re: [TF2] Light Colours 0.1 (02/11)
    Reply With Quote #8

    Quote:
    Originally Posted by Jindo View Post
    So change the light you're looking at? I'll see what I can do!
    Yeah
    Chris-_- is offline
    Jindo
    AlliedModders Donor
    Join Date: May 2009
    Location: England, UK
    Old 11-02-2009 , 12:28   Re: [TF2] Light Colours 0.2 (02/11)
    Reply With Quote #9

    Updated to 0.2, which adds Admin Menu support.

    Changing Lights via aiming is next on my To Do list.
    __________________
    Jindo is offline
    Jimbomcb
    Member
    Join Date: Aug 2009
    Old 11-02-2009 , 12:50   Re: [TF2] Light Colours 0.2 (02/11)
    Reply With Quote #10

    Chance of having admin level restrictions on changing lights?
    Jimbomcb is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 21:36.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode