Raised This Month: $32 Target: $400
 8% 

Light Setting


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Plugin ID:
354
Plugin Version:
Alpha:1
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    Allows an admin to change the lights in game
    Old 04-15-2008 , 02:23   Light Setting
    Reply With Quote #1

    This simple plugin allows any admin with a certain level of access to change the map lighting scheme.

    Command:
    sm_lighting <#level|pattern> [style]

    Valid #level is from #0 to #12, and corrospond to the following:

    Code:
    	// 0 normal
    	"m",
    	// 1 FLICKER (first variety)
    	"mmnmmommommnonmmonqnmmo",
    	// 2 SLOW STRONG PULSE
    	"abcdefghijklmnopqrstuvwxyzyxwvutsrqponmlkjihgfedcba",
    	// 3 CANDLE (first variety)
    	"mmmmmaaaaammmmmaaaaaabcdefgabcdefg",
    	// 4 FAST STROBE
    	"mamamamamama",
    	// 5 GENTLE PULSE 1
    	"jklmnopqrstuvwxyzyxwvutsrqponmlkj",
    	// 6 FLICKER (second variety)
    	"nmonqnmomnmomomno",
    	// 7 CANDLE (second variety)
    	"mmmaaaabcdefgmmmmaaaammmaamm",
    	// 8 CANDLE (third variety)
    	"mmmaaammmaaammmabcdefaaaammmmabcdefmmmaaaa",
    	// 9 SLOW STROBE (fourth variety)
    	"aaaaaaaazzzzzzzz",
    	// 10 FLUORESCENT FLICKER
    	"mmamammmmammamamaaamammma",
    	// 11 SLOW PULSE NOT FADE TO BLACK
    	"abcdefghijklmnopqrrqponmlkjihgfedcba",
    	// 12 UNDERWATER LIGHT MUTATION
    	// this light only distorts the lightmap - no contribution
    	// is made to the brightness of affected surfaces
    	"mmnnmmnnnmmnn",
    Patterns may be any combination of alphabet characters.
    Default style is 0, style may be from 0 to 63.

    Note: This plugin cannot set clients dynamically, it can only set them as they come in, or on map change.
    I recommend having the command execute OnMapChange, so everyone gets set.
    I used this for night fighting on my HL2DM server, so I figured I'd post it.

    First public plugin on SM, yay!
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_lights.sp - 4007 views - 2.9 KB)
    __________________

    Last edited by Twilight Suzuka; 04-24-2008 at 16:42.
    Twilight Suzuka is offline
    Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
    franzcis066
    Member
    Join Date: Nov 2007
    Old 04-15-2008 , 03:46   Re: Light Setting
    Reply With Quote #2

    Wow nice plugin.. It's good that you script for source now..
    franzcis066 is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 04-15-2008 , 20:24   Re: Light Setting
    Reply With Quote #3

    This plugins hard to use. I cant seem to use the numerical values. Maybe make a cfg so we can.
    __________________

    DontWannaName is offline
    Twilight Suzuka
    bad
    Join Date: Jul 2004
    Location: CS lab
    Old 04-23-2008 , 17:20   Re: Light Setting
    Reply With Quote #4

    Did you add a # before the number? IE, #12?
    __________________
    Twilight Suzuka is offline
    Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
    FunTF2Server
    Veteran Member
    Join Date: Apr 2008
    Old 04-23-2008 , 19:50   Re: Light Setting
    Reply With Quote #5

    ok, first of all your post is totally wrong, sm_lights does nothing, the command is sm_lighting

    is this your own plugin or did you just totally forget what your own commands are?
    __________________
    FunTF2Server is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 04-23-2008 , 19:52   Re: Light Setting
    Reply With Quote #6

    Quote:
    Originally Posted by Twilight Suzuka View Post
    Did you add a # before the number? IE, #12?
    err no lol. Not use to using the number sign before a value.
    __________________

    DontWannaName is offline
    FunTF2Server
    Veteran Member
    Join Date: Apr 2008
    Old 04-23-2008 , 19:56   Re: Light Setting
    Reply With Quote #7

    Quote:
    Originally Posted by DontWannaName View Post
    err no lol. Not use to using the number sign before a value.
    and also use the sm_lighting command like I said not sm_lights like the info says

    sm_lightning #6 is what I have my server currently set too, it's a nice easy pulse
    __________________
    FunTF2Server is offline
    raydan
    Senior Member
    Join Date: Aug 2006
    Old 04-23-2008 , 21:50   Re: Light Setting
    Reply With Quote #8

    i try it in css, doesn't work.
    after i type "sm_lighting #12 0", then i rejoin server, light doesn't change

    also, is there any wayt to set clients dynamically? such as hack source engine or offset?

    Last edited by raydan; 04-23-2008 at 22:35.
    raydan is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 04-23-2008 , 22:50   Re: Light Setting
    Reply With Quote #9

    Quote:
    Originally Posted by FunTF2Server View Post
    ok, first of all your post is totally wrong, sm_lights does nothing, the command is sm_lighting

    is this your own plugin or did you just totally forget what your own commands are?

    Calm down guy. There's no reason to be pissed over nothing. She probably wrote it one way, decided to change it, and forgot to switch a few minor things over.
    bl4nk is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 04-24-2008 , 00:34   Re: Light Setting
    Reply With Quote #10

    In TF2 it didnt require a rejoin or anything. It works right after you use the command.
    __________________

    DontWannaName is offline
    Reply



    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 17:54.


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