Results 1 to 2 of 2

Thread: More useful E2 codes

  1. #1
    Wire Noob random4525's Avatar
    Join Date
    Jul 2010
    Posts
    25

    Post More useful E2 codes

    Well hello there, this is my first thread, i'll post some useful/random E2 codes for you to (ab)use
    Umm.. ok there's not much more to say, let's dump the codes!

    Red medium-sized box hovering over targets head, use "/t <name>"
    Code:
    @name findplayer
    @inputs 
    @outputs 
    @persist Player:entity
    @trigger 
    
    runOnTick(1)
    
    if(first()){
        hint("/t <name>",5)
        hint("made by GigaJew",5)
    holoCreate(1)
    }
    
    S = owner():lastSaid():explode(" ")
    
    if (S:string(1)=="/t"){
    
    TempPlayer = findPlayerByName(S:string(2))
    if (TempPlayer:isPlayer()){
    Player = TempPlayer
    }
    }
    
    holoPos(1, Player:pos() + vec(0,0,100))
    holoColor(1, vec(255,0,0))
    
    if (duped()) {selfDestruct()}

    Modified Hidechat function (modified by me)
    Code:
    @name hidechat
    @inputs 
    @outputs 
    @persist 
    @trigger 
    
    runOnChat(1) #causes the e2 to run on every chat message
    if (chatClk(owner())) { #if you were the one who said something
        if (lastSaid():left(1) == "!") {
            hideChat(1) #then hide the chat message
        }
    }

    Make yourself invisible (not setalpha) (modified by me to be completely invisible)
    Sequel to this "Restore Material" is below aswell.
    Code:
    @name Invisible E2
    @inputs 
    @outputs 
    @persist 
    @trigger 
    if (first()) {
    runOnTick(1)
            owner():weapon():setMaterial("effects/ar2_altfire1b")
            owner():setMaterial("effects/ar2_altfire1b")
    hint("You are now invisible!",10)
    hint("--Made by GigaJew--",10)
    }

    Restore Material, use this after you used the "Invisible_E2"
    Code:
    @name Restore Material
    @inputs 
    @outputs 
    @persist 
    @trigger 
    if (first()) {
    runOnTick(1)
            owner():weapon():setMaterial("sprites/light_glow02_add_nozgggg")
            owner():setMaterial("sprites/light_glow02_add_nozgggg")
    hint("Material Restored!",10)
    hint("--Made by GigaJew--",10)
    }

    Simple keypad hacker, not made or modified by me, just thought it would be useful.
    Code:
    @name Keypad Hacker
    @persist Keypads:array Codes:array OwnerUse:array CO:entity Display
    @trigger all
    if(first()){
        entity():setColor(0,0,0,255)
        Display = 1
        CO = entity():owner()
        runOnTick(1)
        runOnChat(1)
        Scan = 1
        timer("ReScan",60000)
    }
    A = 1
    while(A <= Keypads:count()){
        Owner = Keypads:entity(A):owner()
        Keypad = Keypads[A,entity]
        Down = OwnerUse[A,number]
        Pressed = Owner:keyUse()
        if(CO:keyAttack2() & Display & CO:shootPos():distance(Keypad:pos()) <= 100 & CO:aimEntity() == Keypad){
            Code = Codes[A,number]
            if(Code - 50000 > 0){hint("The code is: " + (Code - 50000) +". Enjoy!",5)}
            else{hint("No Code Entered. Try Again Later!",3)}
            Display = 0
        }
        elseif(!CO:keyAttack2() & !Display){Display = 1}
        if(!Down & Pressed){
            if(Keypad != noentity()){
                if(Owner:shootPos():distance(Keypad:pos()) < 32 & Owner:aimEntity() == Keypad){
                    Code = Codes[A,number]
                    #Find Button Pressed
                    KPPL = Keypad:toLocal(Keypad:owner():aimPos()):rotate(ang())
                    #Line 1
                    if(inrange(KPPL:z(),-1.3,0)){
                        #Col 1
                        if(inrange(KPPL:y(),-2.2, -0.95)){Number = 1}
                        #Col 2
                        elseif(inrange(KPPL:y(),-0.6, 0.65)){Number = 2}
                        #Col 3
                        elseif(inrange(KPPL:y(),1, 2.25)){Number = 3}
                    }
                    #Line 2
                    elseif(inrange(KPPL:z(),-2.9,-1.6)){
                        #Col 1
                        if(inrange(KPPL:y(),-2.2 ,-0.95)){Number = 4}
                        #Col 2
                        elseif(inrange(KPPL:y(),-0.6, 0.65)){Number = 5}
                        #Col 3
                        elseif(inrange(KPPL:y(),1, 2.25)){Number = 6}
                    }
                    #Line 3
                    elseif(inrange(KPPL:z(),-4.45,-3.3)){
                        #Col 1
                        if(inrange(KPPL:y(),-2.2 ,-0.95)){Number = 7}
                        #Col 2
                        elseif(inrange(KPPL:y(),-0.6, 0.65)){Number = 8}
                        #Col 3
                        elseif(inrange(KPPL:y(),1, 2.25)){Number = 9}
                    }
                    elseif(inrange(KPPL:z(),0.3, 1.6)){
                        #Abort
                        if(inrange(KPPL:y(),-2.2, -0.15)){Number = 11}
                        #Accept
                        elseif(inrange(KPPL:y(),0.3, 2.25)){Number = 10}
                    }
                    if(Number){
                        if(Number == 10 & Code < 10000){
                                Code += 50000
                                hint("Code entered: "+(Code - 50000),3)
                        }
                        elseif(Number == 11 & Code < 10000){Code = 0 hint("Code Canceled",3)}
                        elseif(Code < 1000){
                            Code *= 10
                            Code += Number
                            hint(""+Owner:name()+" Pressed: "+Number,3)
                        }
                        Codes[A,number] = Code
                    }
                }   
            }
            else{
                hint("Keypad "+A+" has been removed",3)
                Keypads:removeEntity(A)
                Codes:removeNumber(A)
            }
            OwnerUse[A, number] = 1
        }
        elseif(Down & !Pressed){
            OwnerUse[A,number] = 0
        }
    A++
    }
    
    if(chatClk(entity():owner())){
        if(entity():owner():lastSaid() == "/reset"){
            A = 1
            CO = entity():owner()
            while (A <= Keypads:count()){
                Keypad = Keypads:entity(A)
                if(CO:shootPos():distance(Keypad:pos()) <= 100 & CO:aimEntity() == Keypad){
                    hint("Code Reset!",3)
                    Codes[A,number] = 0
                }
                A++
            }
        }
        if(CO:lastSaid() == "/scan"){
            Scan = 1
        }
    }
    if(clk("ReScan")){Scan = 1 timer("ReScan",60000)}
    if(Scan){
        Keypads = array()
        OwnerUse = array()
        findByModel("models/props_lab/keypad.mdl")
        findSortByDistance(entity():pos())
        Keypads = findToArray()
        hint("Scan complete! "+Keypads:count()+" Keypads found!",3)
        while(Keypads:count()>13){
            hint("Keypad removed due to gate restriction!",3)
            Keypads:pop()
        }
        A = 1
        while(A <= Keypads:count()){
            print(""+A+": "+Keypads:entity(A):owner():name())
            OwnerUse[A,number] = Keypads:entity(A):owner():keyUse()
            A++
        }
        if(Keypads:count() > 0){
            timer("ReDisplayCode",3000)
        }
    }

    Money PLANT finder (modified money finder) (modified by me)
    Code:
    @inputs Player
    @outputs X Y
    @name Plant Detecter
    @persist I Off 
    runOnTick(1)
    if(duped() == 1) {selfDestructAll()}
    
    findByModel("models/props/cs_office/Plant01.mdl")
    Props = findToArray()
    E = Props:entity(1)  
    EE=entity()
    Dist = E:pos():distance(EE:pos())
    
    
    # nice little beeping that makes it kindof like a metal detecter
    if (clk("Beep") & Props:entity(1)) {
        soundVolume(0,(1/4))
        soundPitch(0,200-E:pos():distance(EE:pos())/10)
        timer("Stop",1000)
    }
    
    if (clk("Stop")) {
        soundVolume(0,0)
        timer("Beep",Dist)
    }
    
    #find the angle the arrow will point (math stuff)
    Slope = (E:pos():y()-EE:pos():y())/(E:pos():x()-EE:pos():x())
    
    Y = sign(E:pos():y()-EE:pos():y())
    X = sign(E:pos():x()-EE:pos():x())
     
    if (sign(E:pos():y()-EE:pos():y()) == 1 & sign(E:pos():x()-EE:pos():x()) == 1) {
    ArrowAngle = atan(Slope)+90
    }
    elseif (sign(E:pos():y()-EE:pos():y()) == -1 & sign(E:pos():x()-EE:pos():x()) == 1) {
    ArrowAngle = atan(Slope)+90
    }
    elseif (sign(E:pos():y()-EE:pos():y()) == 1 & sign(E:pos():x()-EE:pos():x()) == -1) {
    ArrowAngle = atan(Slope)-90
    }
    elseif (sign(E:pos():y()-EE:pos():y()) == -1 & sign(E:pos():x()-EE:pos():x()) == -1) {
    ArrowAngle = atan(Slope)-90
    }
    
    
    #if there is money it will make the arrow green and tracking starts
    if (Props:entity(1)) {
        holoColor(1,vec(0,255,0),255)
        holoColor(0,vec(0,255,0),255)
        timer("Beep",Dist)
        holoAng(1,ang(0,ArrowAngle,90))
        
        
        #item Position (with a little arrow :D)
        holoCreate(2)
        holoModel(2,"cone")
        holoPos(2,(E:pos()+vec(0,0,5)))
        holoParent(2,E)
        holoScale(2,vec((1/4),(1/4),(1/4)))
        holoColor(2,vec(255,0,0),100)
        holoAng(2,ang(180,0,0))
        
        
        #stem :D i could have left it a cone but I like you!
        #you can remove if you have more than this chip going
        holoCreate(3)
        holoModel(3,"cylinder")
        holoPos(3,(E:pos()+vec(0,0,8)))
        holoParent(3,E)
        holoScale(3,vec((1/8),(1/8),(1/4)))
        holoColor(3,vec(255,0,0),100)
        holoAng(3,ang(180,0,0))
        
    }
    
    
    #This will make the noise stop and turn the arrow red
    if (!Props:entity(1)) {
        holoColor(1,vec(255,0,0),255)
        holoColor(0,vec(255,0,0),255)
        soundVolume(0,0) # I use volume instead of purge because i find it easier
    }
    
    
    if (first() | duped())
        {
        soundPlay(0,100,"synth/saw.wav")
        timer("Beep",Dist)
        hint("Made by DrFrev",1)
        #My first expression done completely by me
        #Dr.Frev #1
        
        #arrow stem
        holoCreate(1)
        holoModel(1,"cylinder")
        holoPos(1,EE:pos()+vec(0,0,7))
        holoScale(1,vec((1/8),(1/8),(1/4)))
        holoColor(1,vec(255,0,0),255)
        holoParent(1,EE)
        holoAng(1,ang(90,0,90))
        
        #arrow point
        holoCreate(0)
        holoModel(0,"cone")
        holoPos(0,EE:pos()+vec(0,-3,7))
        holoScale(0,vec((1/4),(1/4),(1/4)))
        holoColor(0,vec(255,0,0),255)
        holoParent(0,1)
        holoAng(0,ang(90,0,90))
    }

    Modified lightsaber, (mod by me) (crowbar now COMPLETELY invisible)
    Code:
    @name Lightsaber by Dad, Danking, and OmicroN
    @outputs Toggle Light On [SC Approved]:string Clk Clk3 Colors:table
    
    if(!On){ interval(1000) }else{ interval(10) }
    
    LS = lastSpoke():owner():lastSaid():lower()
    C = chatClk(owner())
    
    E = owner()
    Clk = E:keyAttack2() & owner():weapon():type()=="weapon_crowbar" & On
    Clk3 = E:keyAttack1() & owner():weapon():type()=="weapon_crowbar" & On
    Toggle = owner():keyUse()& owner():weapon():type()=="weapon_crowbar"
    
    if(first() | duped() | (C & LS == "-list")){
        runOnChat(1)
        hideChat(1)
        On = Light = 0
        print("Holo LightSaber by Dad Danking and OmicroN!")
        printColor(vec(255,0,0),("             Hold E button to place lightsaber in hand"))
        printColor(vec(255,155,0),("Available colors are:"))
        printColor(vec(255,0,0),"           -red",vec(50,50,255)," -blue",vec(100,255,0)," -green",vec(0,255,0)," -green2",vec(255,255,0)," -yellow",vec(255,0,255)," -purple")
        printColor(vec(255,0,0),"           -ared",vec(0,100,255)," -ablue",vec(255,255,255)," -alig -disco -gmod")
        printColor(vec(255,155,0),("Type '-list' to view this again!"))
        Approved = "red blue green green2 yellow purple ared ablue alig disco gmod"
        Colors["red",vector] = vec(255,255,255) , Colors["red",string] = "cable/redlaser"
        Colors["blue",vector] = vec(50,50,255) , Colors["blue",string] = "cable/xbeam"
        Colors["green",vector] = vec(255,255,255) , Colors["green",string] = "cable/hydra"
        Colors["green2",vector] = vec(20,200,20) , Colors["green2",string] = "cable/xbeam"
        Colors["yellow",vector] = vec(255,200,20) , Colors["yellow",string] = "cable/xbeam"
        Colors["purple",vector] = vec(100,20,200) , Colors["purple",string] = "cable/xbeam"
        Colors["ared",vector] = vec(255,255,255) , Colors["ared",string] = "models/props_combine/tprings_globe"
        Colors["ablue",vector] = vec(255,255,255) , Colors["ablue",string] = "models/alyx/emptool_glow"
        Colors["alig",vector] = vec(255,255,255) , Colors["alig",string] = "models/effects/comball_sphere"
        Colors["disco",vector] = vec(255,255,255) , Colors["disco",string] = "effects/flashlight/tech"
        Colors["gmod",vector] = vec(255,255,255) , Colors["gmod",string] = "effects/flashlight/logo"
    }
    
    if((Toggle & $Toggle) & !On){
        On = 1 , Light = 0
        printColor(vec(0,255,0),("Lightsaber is Out!"))
        printColor(vec(255,0,255),("Right Click to TURN ON Lightsaber"))
        for(I=0,11){
            if(I<4 | I>5){
            holoCreate(I)
            }
        #holoCreate(0) #dummy hologram to receive occasional Pos bug
        holoAlpha(0,0)
        holoAng(0,owner():attachmentAng("anim_attachment_RH"))
        holoPos(0,owner():attachmentPos("anim_attachment_RH"))
        holoParentAttachment(0,owner(),"anim_attachment_RH")
        holoScale(0,vec(0.01,0.01,0.01)) 
        holoPos(0,holoEntity(0):toWorld(vec(0,0,0)))
        holoAng(0,holoEntity(0):toWorld(ang(0,0,0)))
            
        # Handle
        holoModel(1,"hqcylinder2")
        holoAng(1,owner():attachmentAng("anim_attachment_RH"))
        holoPos(1,owner():attachmentPos("anim_attachment_RH"))
        holoParentAttachment(1,owner(),"anim_attachment_RH")
        holoScale(1,vec(0.15,0.15,0.7)) 
        holoColor(1,vec(20,20,20))
        holoMaterial(1,"phoenix_storms/chrome")
        holoPos(1,holoEntity(1):toWorld(vec(0,0,1)))
        holoAng(1,holoEntity(1):toWorld(ang(0,0,0)))
        
        # Black things
        holoModel(2,"cube")
        holoScale(2,vec(0.05,0.2,0.3)) 
        holoMaterial(2,"")
        holoPos(2,holoEntity(1):toWorld(vec(0,0,-2.2)))
        holoAng(2,holoEntity(1):toWorld(ang(0,0,0)))
        holoParent(2,1)
        holoColor(2,vec(0,0,0))
        
        # hand guard thing
        holoModel(3,"cube")
        holoScale(3,vec(0.2,0.05,0.3))
        holoColor(3,vec(0,0,0))
        holoMaterial(3,"models/props_pipes/GutterMetal01a")
        holoPos(3,holoEntity(1):toWorld(vec(0,0,-2.2)))
        holoAng(3,holoEntity(1):toWorld(ang(0,0,0)))
        holoParent(3,1)
        
        holoModel(6,"dome2")
        holoAng(6,owner():attachmentAng("anim_attachment_RH"))
        holoPos(6,owner():attachmentPos("anim_attachment_RH"))
        holoParentAttachment(6,owner(),"anim_attachment_RH")
        holoScale(6,vec(0.15,0.15,0.13)) 
        holoColor(6,vec(0,0,0))
        holoMaterial(6,"")
        holoPos(6,holoEntity(1):toWorld(vec(0,0,4.5)))
        holoAng(6,holoEntity(1):toWorld(ang(-140,0,0)))
        
        holoModel(7,"hqcylinder2")
        holoAng(7,owner():attachmentAng("anim_attachment_RH"))
        holoPos(7,owner():attachmentPos("anim_attachment_RH"))
        holoParentAttachment(7,owner(),"anim_attachment_RH")
        holoScale(7,vec(0.17,0.17,0.17)) 
        holoColor(7,vec(20,20,20))
        holoMaterial(7,"phoenix_storms/chrome")
        holoPos(7,holoEntity(1):toWorld(vec(0,0,0)))
        holoAng(7,holoEntity(1):toWorld(ang(0,0,0)))
        
        holoModel(8,"squere")
        holoAng(8,owner():attachmentAng("anim_attachment_RH"))
        holoPos(8,owner():attachmentPos("anim_attachment_RH"))
        holoParentAttachment(8,owner(),"anim_attachment_RH")
        holoScale(8,vec(0.05,0.15,0.17)) 
        holoColor(8,vec(255,200,20))
        holoMaterial(8,"")
        holoPos(8,holoEntity(1):toWorld(vec(0.2,0.2,0)))
        holoAng(8,holoEntity(1):toWorld(ang(0,-40,0)))
        
        holoModel(9,"hqcylinder2")
        holoAng(9,owner():attachmentAng("anim_attachment_RH"))
        holoPos(9,owner():attachmentPos("anim_attachment_RH"))
        holoParentAttachment(9,owner(),"anim_attachment_RH")
        holoScale(9,vec(0.05,0.05,0.05)) 
        holoColor(9,vec(255,200,20))
        holoMaterial(9,"")
        holoPos(9,holoEntity(1):toWorld(vec(1.03,0,3)))
        holoAng(9,holoEntity(1):toWorld(ang(90,0,0)))
        
        holoModel(10,"hqcylinder2")
        holoAng(10,owner():attachmentAng("anim_attachment_RH"))
        holoPos(10,owner():attachmentPos("anim_attachment_RH"))
        holoParentAttachment(10,owner(),"anim_attachment_RH")
        holoScale(10,vec(0.065,0.065,0.095)) 
        holoColor(10,vec(255,200,20))
        holoMaterial(10,"phoenix_storms/chrome")
        holoPos(10,holoEntity(1):toWorld(vec(0.6,0,3)))
        holoAng(10,holoEntity(1):toWorld(ang(90,90,90)))
        
        holoModel(11,"hqcylinder2")
        holoAng(11,owner():attachmentAng("anim_attachment_RH"))
        holoPos(11,owner():attachmentPos("anim_attachment_RH"))
        holoParentAttachment(11,owner(),"anim_attachment_RH")
        holoScale(11,vec(0.16,0.16,0.16)) 
        holoColor(11,vec(0,0,0))
        holoMaterial(11,"")
        holoPos(11,holoEntity(1):toWorld(vec(0,0,3.25)))
        holoAng(11,holoEntity(1):toWorld(ang(0,0,0)))
        }
    }elseif((Toggle & $Toggle) & On){
        for(I=0,11){
            holoDelete(I)
        }
        printColor(vec(255,0,0),("Lightsaber is Put Away!"))
        soundPurge()
        On = 0
    }
    
    if(C){
        if(LS:index(1)=="-" & Approved:find(LS:right(LS:length()-1))){
            hideChat(1)
            Color = Colors[LS:right(LS:length()-1),vector]
            Mat = Colors[LS:right(LS:length()-1),string]
            holoColor(4,Color)
            holoMaterial(4,Mat)
            holoColor(5,Color)
            holoMaterial(5,Mat)
            print("Lightsaber color is now '"+LS:right(LS:length()-1)+"'!")
        }elseif(LS:index(1)=="-" & !Approved:find(LS:right(LS:length()-1))){
            hideChat(1)
            printColor(vec(255,0,0),LS:right(LS:length()-1)+" is NOT an approved color, for a list type '-list'")
        }
    }    
        
        if(Clk & $Clk){
            if(!Light){
                owner():soundPlay(0,0,"weapons/physgun_off.wav")
                soundPitch(0,160)
                owner():soundPlay(1,0,"ambient/atmosphere/city_beacon_loop1.wav")
                soundPitch(1,90)
            }
            Light = !Light
            
            if(!holoEntity(4)){
                holoCreate(4)
            }
            if(!holoEntity(5)){
                holoCreate(5)
            }
            holoModel(4,"hqcylinder2") 
            holoMaterial(4,"cable/redlaser")
            holoPos(4,holoEntity(1):toWorld(vec(0,0,15)))
            holoAng(4,holoEntity(1):toWorld(ang(0,-90,0)))
            holoParent(4,1)
            holoColor(4,vec(255,255,255))
            
            #second side of laser
            holoModel(5,"hqcylinder2") 
            holoMaterial(5,"cable/redlaser")
            holoPos(5,holoEntity(1):toWorld(vec(0,0,15)))
            holoAng(5,holoEntity(1):toWorld(ang(0,90,0)))
            holoParent(5,1)
            holoColor(5,vec(255,255,255))
            holoScale(5,vec(0.1,0.1,2.5))
            holoScale(4,vec(0.1,0.1,2.5))
        }
        if(Light & $Light){
            holoAlpha(4,255)
            holoAlpha(5,255)
        }
        if(!Light & $Light){
            holoAlpha(4,0)
            holoAlpha(5,0)
            soundStop(0,1)
            soundPitch(0,140)
            soundStop(1,1)
        }
        if(Clk3 & Light){
            if($Clk3){ 
            owner():soundPlay(3,1,"weapons/fx/nearmiss/bulletLtoR13.wav")
            soundPitch(3,60)
            }
        timer("swing",500)
            if(clk("swing")){
            owner():soundPlay(3,1,"weapons/fx/nearmiss/bulletLtoR13.wav")
            soundPitch(3,60)
            }
        }else{ stoptimer("swing") , soundStop(3) }
        
        if(owner():weapon():type()=="weapon_crowbar"){
            owner():weapon():setMaterial("sprites/light_glow02_add_noz")
            holoAlpha(1,255)
            holoAlpha(2,255)
            holoAlpha(3,255)
            holoAlpha(6,255)
            holoAlpha(7,255)
            holoAlpha(8,255)
            holoAlpha(9,255)
            holoAlpha(10,255)
            holoAlpha(11,255)
        }
        else{
            Light = 0
            holoAlpha(1,0)
            holoAlpha(2,0)
            holoAlpha(3,0)
            holoAlpha(6,0)
            holoAlpha(7,0)
            holoAlpha(8,0)
            holoAlpha(9,0)
            holoAlpha(10,0)
            holoAlpha(11,0)
        }

    Modified Zelda lullaby song (mod NOT by me)
    Code:
    @inputs On
    @outputs [TrackStrings TrackSounds TrackVolume]:array I J Length Count
    @persist 
    
    if (first()) {
        TrackSounds[1,string] = "synth/tri.wav"
        TrackVolume[1,number] = 1
        TrackStrings[1,string] =
    " uuuuuuuuuuuuuuuuooooooooyyyyyyyyyyyyyyyyttttyyyyuuuuuuuuuuuuuuuuoooooooo" +
    "yyyyyyyyyyyyyyyyyyyyyyyyuuuuuuuuuuuuuuuuoooooooozzzzzzzzzzzzzzzz]]]]]]]]" +
    "ooooooooooooooooiiiiuuuuyyyyyyyyyyyyyyyyyyyyyyyyuuuuuuuuuuuuuuuuooooooooyyyyyyyyyyyyyyyy" +
    "ttttyyyyuuuuuuuuuuuuuuuuooooooooyyyyyyyyyyyyyyyyyyyyyyyyuuuuuuuuuuuuuuuu" +
    "oooooooozzzzzzzzzzzzzzzz]]]]]]]]vvvvvvvvvvvvvvvvvvvvvvvv" +
    "vvvvvvvvvvvvvvvvccccxxxxccccxxxx]]]]]]]]]]]]]]]" +
    "ccccccccccccccccxxxxzzzzxxxxzzzzppppppppppppppp" +
    "vvvvvvvvvvvvvvvvccccxxxxccccxxxx]]]]]]]]ccccccc" +
    "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm"
    
        while( I<TrackStrings:count() ) {
            I++
            
            String=TrackStrings[I,string]
            
            String=String:replace("7","temp")
            String=String:replace("0",   "74>")
            String=String:replace("6",   "67>")
            String=String:replace("2",   "60>")
            String=String:replace("3",   "62>")
            String=String:replace("5",   "65>")
            String=String:replace("9",   "72>")
            String=String:replace("temp","69>")
            String=String:replace(" ",   "00>")
            String=String:replace("q",   "59>")
            String=String:replace("w",   "61>")
            String=String:replace("e",   "63>")
            String=String:replace("r",   "64>")
            String=String:replace("t",   "66>")
            String=String:replace("y",   "68>")
            String=String:replace("u",   "70>")
            String=String:replace("i",   "71>")
            String=String:replace("o",   "73>")
            String=String:replace("p",   "75>")
            String=String:replace("[",   "76>")
            String=String:replace("]",   "78>")
            String=String:replace("=",   "77>")
            String=String:replace("a",   "79>")
            String=String:replace("z",   "80>")
            String=String:replace("s",   "81>")
            String=String:replace("x",   "82>")
            String=String:replace("c",   "83>")
            String=String:replace("f",   "84>")
            String=String:replace("v",   "85>")
            String=String:replace("g",   "86>")
            String=String:replace("b",   "87>")
            String=String:replace("n",   "88>")
            String=String:replace("j",   "89>")
            String=String:replace("m",   "90>")
            String=String:replace("k",   "91>")
            String=String:replace(",",   "92>")
            String=String:replace("l",   "93>")
            String=String:replace(".",   "94>")
            String=String:replace("/",   "95>")
            String=String:replace("'",   "96>")
            
            TrackStrings[I,string] = String
        }
        Length=TrackStrings[1,string]:length()
    }
    
    if (On) {
        interval(50)
        
        if (~On) {
            I=J=0
            Count=TrackStrings:count()
            while( J<Count ) {
                J++
                holoCreate(J, entity():pos(), vec())
                holoParent(J, entity())
                holoEntity(J):soundPlay(J,0, TrackSounds[J,string] )
                soundVolume(J, TrackVolume[J,number] )
            }
            
        }
        
        I+=3
        I=I%Length
        
        SubA=I-2
        SubB=I-1
        
        J=0
        while( J<Count ) {
            J++
            PV=TrackStrings:string(J):sub(SubA,SubB):toNumber()
            soundPitch(J,2^(PV/12))
        }
    }
    else {
        soundPurge()
        holoDeleteAll()
    }

    Enjoy!^_^





    Please go to RPguide and click around some to support my work on garrysmod.org, this instead of donating!
    Last edited by random4525; 01-29-2011 at 09:10 AM.

  2. #2
    Wirererer Muffin Burglar's Avatar
    Join Date
    Nov 2009
    Posts
    228

    Default Re: More useful E2 codes

    Might want to include the original authors to the codes that aren't yours/you modified.

    Aside from that, nice work.
    |-- E2 Monkey Ball -- | -- gPaint! --|

Tags for this Thread

Posting Permissions

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