+ Reply to Thread
Results 1 to 2 of 2

Thread: Big-Blue's basic E2's

  1. #1
    Wire Noob Big-Blue's Avatar
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    16

    Default Big-Blue's basic E2's

    Big-Blue's basic E2's

    Yeah, that's my thread for the basic E2's. Just look through and leave commands and critic =D

    Text-Controlled Cloaker:
    I made this script for fun, weld all props to be cloaked to 1 prop, and then attach the E2 to the prop. To cloak say "!cloak" in chat, to uncloak "!uncloak"... Simple, eh?
    OPS: very low (1-5)
    [highlight="E2"]
    @name TextCloaking Device - by Big-Blue
    @persist Con:array
    interval(60000)
    runOnChat(1)
    Con = entity():isWeldedTo():getConstraints()
    if(chatClk(owner())){
    Command = owner():lastSaid()
    if(Command == "!cloak"){
    hideChat(1)
    for(I = 1, Con:count()){

    entity():isWeldedTo():isConstrainedTo(I):setAlpha( 0)

    }
    entity():isWeldedTo():setAlpha(0)
    }
    if(Command == "!uncloak"){
    hideChat(1)
    for(I = 1, Con:count()){
    entity():isWeldedTo():isConstrainedTo(I):setAlpha( 255)
    }
    entity():isWeldedTo():setAlpha(255)
    }
    }
    [/highlight]

    Random Colorer:
    Another thing I made for fun, when its activated with "-color on" it changes your material to a blank (debug) material and colors you and your weapon with different random colors 20 times a second.
    OPS: low 25 in idle, 35 while coloring
    [highlight="E2"]
    @name Random Colorer - by Big-Blue
    @persist Mode
    @model models/jaanus/wiretool/wiretool_range.mdl
    interval(50)
    runOnChat(1)
    if(first() | duped()){
    Party = 0
    }
    if(chatClk(owner())){
    F = owner():lastSaid():explode(" "):string(1)
    S = owner():lastSaid():explode(" "):string(2)

    if(F == "-color"){
    hideChat(1)
    if(S == "off"){
    Mode = 0
    owner():setMaterial("")
    owner():weapon():setMaterial("")
    owner():weapon():setColor(255,255,255)
    owner():setColor(255,255,255)
    }
    if(F == "on"){
    Mode = 1
    owner():setMaterial("models/debug/debugwhite")
    owner():weapon():setMaterial("models/debug/debugwhite")
    }
    }
    }
    if(Mode){
    owner():setColor(randint(0,255),randint(0,255),ran dint(0,255))
    owner():weapon():setColor(randint(0,255),randint(0 ,255),randint(0,255))
    }
    [/highlight]

    I made lots of more E2's, but they are messy or just not for public use / too simple.
    So, please comment ;D

    Blue
    Last edited by Big-Blue; 02-06-2010 at 11:31 AM.

  2. #2
    Wire Sofaking jacoby6000's Avatar
    Join Date
    Feb 2008
    Location
    behind you when you aren't looking
    Posts
    792

    Default Re: Big-Blue's basic E2's

    your nested stuff lacks indenting... it confuzzled me for a second 0_o maybe fix that? i dont know if it was intentional or not.... Also, change
    owner():lastSaid()
    to
    owner():lastSaid():lower()
    it will remove case sensitivity ^_^

    Love the expressions though, i got sick of having to make one every time i wanted one, but never bothered to save cause it was easy ^_^

    EDIT: the indenting was really getting to me... so heres what i believe it should look like (i also threw the lower in there)

    [highlight=e2]

    @name Random Colorer - by Big-Blue
    @persist Mode
    @model models/jaanus/wiretool/wiretool_range.mdl
    interval(50)
    runOnChat(1)
    if(first() | duped()){
    Party = 0
    }
    if(chatClk(owner())){
    F = owner():lastSaid():lower():explode(" "):string(1)
    S = owner():lastSaid():lower():explode(" "):string(2)
    if(F == "-color"){
    hideChat(1)
    if(S == "off"){
    Mode = 0
    owner():setMaterial("")
    owner():weapon():setMaterial("")
    owner():weapon():setColor(255,255,255)
    owner():setColor(255,255,255)
    }
    if(F == "on"){
    Mode = 1
    owner():setMaterial("models/debug/debugwhite")
    owner():weapon():setMaterial("models/debug/debugwhite")
    }
    }
    }
    if(Mode){
    owner():setColor(randint(0,255),randint(0,255),ran dint(0,255))
    owner():weapon():setColor(randint(0,255),randint(0 ,255),randint(0,255))
    }
    [/highlight]
    Last edited by jacoby6000; 02-06-2010 at 11:59 AM.
    Quote Originally Posted by Garrysmod View Post
    Warning: You're trying to render in the wrong place. This doesn't play nice with multi-core rendering, so we're not going to let you draw here.
    I'm not stupid!
    In [his] experience that was a sentence never to be uttered except to prove its own inaccuracy
    --Orson Scott Card

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots