+ Reply to Thread
Results 1 to 2 of 2

Thread: Big-Blue's basic E2's

  1. #1
    Wire Noob Big-Blue is on a distinguished road Big-Blue's Avatar
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    15

    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)
    E2 Code:
    1. @name TextCloaking Device - by Big-Blue
    2. @persist Con:array
    3. interval(60000)
    4. runOnChat(1)
    5. Con = entity():isWeldedTo():getConstraints()
    6. if(chatClk(owner())){
    7. Command = owner():lastSaid()
    8. if(Command == "!cloak"){
    9. hideChat(1)
    10. for(I = 1, Con:count()){
    11.  
    12. entity():isWeldedTo():isConstrainedTo(I):setAlpha(0)
    13.  
    14. }
    15. entity():isWeldedTo():setAlpha(0)
    16. }
    17. if(Command == "!uncloak"){
    18. hideChat(1)
    19. for(I = 1, Con:count()){
    20. entity():isWeldedTo():isConstrainedTo(I):setAlpha(255)
    21. }
    22. entity():isWeldedTo():setAlpha(255)
    23. }
    24. }

    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
    E2 Code:
    1. @name Random Colorer - by Big-Blue
    2. @persist Mode
    3. @model models/jaanus/wiretool/wiretool_range.mdl
    4. interval(50)
    5. runOnChat(1)
    6. if(first() | duped()){
    7. Party = 0
    8. }
    9. if(chatClk(owner())){
    10. F = owner():lastSaid():explode(" "):string(1)
    11. S = owner():lastSaid():explode(" "):string(2)
    12.  
    13. if(F == "-color"){
    14. hideChat(1)
    15. if(S == "off"){
    16. Mode = 0
    17. owner():setMaterial("")
    18. owner():weapon():setMaterial("")
    19. owner():weapon():setColor(255,255,255)
    20. owner():setColor(255,255,255)
    21. }
    22. if(F == "on"){
    23. Mode = 1
    24. owner():setMaterial("models/debug/debugwhite")
    25. owner():weapon():setMaterial("models/debug/debugwhite")
    26. }
    27. }
    28. }
    29. if(Mode){
    30. owner():setColor(randint(0,255),randint(0,255),randint(0,255))
    31. owner():weapon():setColor(randint(0,255),randint(0,255),randint(0,255))
    32. }

    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 10:31 AM.

  2. #2
    Wirererer jacoby6000 is an unknown quantity at this point jacoby6000's Avatar
    Join Date
    Feb 2008
    Location
    behind you when you aren't looking
    Posts
    278

    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)

    e2 Code:
    1. @name Random Colorer - by Big-Blue
    2. @persist Mode
    3. @model models/jaanus/wiretool/wiretool_range.mdl
    4. interval(50)
    5. runOnChat(1)
    6. if(first() | duped()){
    7. Party = 0
    8. }
    9. if(chatClk(owner())){
    10. F = owner():lastSaid():lower():explode(" "):string(1)
    11. S = owner():lastSaid():lower():explode(" "):string(2)
    12. if(F == "-color"){
    13. hideChat(1)
    14. if(S == "off"){
    15. Mode = 0
    16. owner():setMaterial("")
    17. owner():weapon():setMaterial("")
    18. owner():weapon():setColor(255,255,255)
    19. owner():setColor(255,255,255)
    20. }
    21. if(F == "on"){
    22. Mode = 1
    23. owner():setMaterial("models/debug/debugwhite")
    24. owner():weapon():setMaterial("models/debug/debugwhite")
    25. }
    26. }
    27. }
    28. if(Mode){
    29. owner():setColor(randint(0,255),randint(0,255),randint(0,255))
    30. owner():weapon():setColor(randint(0,255),randint(0,255),randint(0,255))
    31. }
    Last edited by jacoby6000; 02-06-2010 at 10:59 AM.
    Quote Originally Posted by mattwd0526 View Post
    >.< So yours echoes everything back, except in rainbow? That's like having Richard Simmons follow you around...
    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