Jump to content
CallMeLanden

Led Lights For The Tik Tok Fuckboys :)

Recommended Posts

@name Lights
@persist BRIGHTNESS DISTANCE RAINBOW COLOR:vector

if(first()){
    BRIGHTNESS = 5
    DISTANCE = 100000000000000000
    RAINBOW = 1
    COLOR = vec(255, 255, 255)
    runOnTick(1)
    runOnChat(1)
    holoCreate(1,entity():pos()+vec(0, 0, 10),vec(2,2,2),entity():angles(),vec(255),"models/maxofs2d/light_tubular.mdl")
    holoEntity(1):setdLight(holoEntity(1):pos(), vec(255, 0, 180), BRIGHTNESS, DISTANCE, 0)
    holoColor(1, vec(220, 0, 170))
}

holoPos(1, entity():pos())
if(RAINBOW == 1){
    holoEntity(1):dLightColor(hsv2rgb((curtime()*100)%360,1,1))
    holoColor(1, hsv2rgb((curtime()*100)%360,1,1))
}else{
    holoEntity(1):dLightColor(COLOR)
    holoColor(1, COLOR)
}
holoEntity(1):dLightBrightness(BRIGHTNESS)
holoEntity(1):dLightSize(DISTANCE)

if(chatClk(owner())){
    local LS=lastSaid():explode(" ")
    switch(LS[1,string]){
        case ".bright",
            BRIGHTNESS = LS[2, string]:toNumber()
            printColor(vec(255, 0, 180), "Set Brightness To "+LS[2, string])
            break
        case ".dist",
            DISTANCE = LS[2, string]:toNumber()
            printColor(vec(255, 0, 180), "Set Distance To "+LS[2, string])
            break
        case ".rainbow",
            if(RAINBOW == 1){
                RAINBOW = 0
                printColor(vec(255, 0, 180), "Rainbow Turned Off")
            }else{
                RAINBOW = 1
                printColor(vec(255, 0, 180), "Rainbow Turned On")
            }
            break
        case ".color",
            COLOR = vec(LS[2, string]:toNumber(), LS[3, string]:toNumber(), LS[4, string]:toNumber())
            printColor(vec(255, 0, 180), "Rainbow Set To "+COLOR)
            break
        default,
            break
    }
}

Share this post


Link to post
Share on other sites
Matt?    7

when you give someone an e2 and they post it 6 months later 👁️👄👁️

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...