+ Reply to Thread
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: Cat's New Hologram HUD

  1. #1
    Wire Sofaking SpectreCat's Avatar
    Join Date
    Mar 2008
    Location
    Sammamish, Washington
    Posts
    504

    Default Cat's New Hologram HUD

    Hello again

    I hope many of you remember the HUD I created out of Holo emitters, and today I bring you the New version using Mc Lovins Hologram mod. It includes the same features as the last one, but extremely fast setup. All you have to do is spawn the chip, this is why I will not make it an advanced dupe, but just give you the code.



    Code:
    @name Visual.Image.Systomatic.Overlay.R
    @inputs 
    @outputs
    @persist HPScale Entity:entity Target:vector Eye:vector
    @persist EHPScale LST Select Bearing
    @trigger all
    
    Eye = owner():eye()
    
    interval(10)
    if(first()) {
    
    #Bars
    createHolo(1)
    createHolo(2)
    
    #Health 1.owner
    createHolo(3)
    createHolo(4)
    
    #lock
    createHolo(5)
    createHolo(6)
    
    #Enemy Bars
    createHolo(7)
    createHolo(8)
    
    #Dir Bars
    createHolo(9)
    createHolo(10)
    
    }
    
    #Bars
    holoModel(1,"torus")
    holoModel(2,"torus")
    
    holoPos(1,owner():shootPos()+vec(0,0,2):rotate(Eye:toAngle()))
    holoPos(2,owner():shootPos()+vec(0,0,-2):rotate(Eye:toAngle()))
    
    holoAng(1,Eye:toAngle())
    holoAng(2,Eye:toAngle())
    
    holoColor(1,vec(0,255,150),150)
    holoColor(2,vec(0,255,150),150)
    
    #Health
    holoModel(3,"cylinder")
    holoScale(3,vec(0.05,0.05,HPScale))
    holoPos(3,owner():shootPos()+Eye*4+vec(0,0,1.5))
    holoAng(3,Eye:toAngle()+ang(0,0,90))
    holoColor(3,vec(255,0,0))
    HPScale = (owner():health() / 100)*0.5
    
    #Target
    Target = mix(owner():shootPos(),(Entity:pos() + vec(0,0,Entity:height()/2)),0.95)
    holoPos(4,Target)
    holoAng(4,Eye:toAngle()+ang(90,0,0))
    holoModel(4,"torus")
    holoScale(4,vec(0.5,0.5,0.1))
    holoColor(4,vec(0,0,255),150)
    
    findByClass("player")
    Entity = findResult(Select)
    if(owner():lastSaid() == "next"&$LST) {Select++, timer("update",500)}
    elseif(owner():lastSaid() == "previous"&$LST) {Select--, timer("update",500)}
    else{Update = 0}
    
    if(clk("update") & Entity:isPlayer()) {hint("Target Updated: "+Entity:name(),3)}
    LST = owner():lastSaidWhen()
    
    #lock
    holoModel(5,"cylinder")
    holoColor(5,vec(255,255,0),200)
    holoScale(5,vec(0.05,0.1,0.5))
    holoAng(5,Eye:toAngle()+ang(0,0,90))
    
    holoModel(6,"cylinder")
    holoColor(6,vec(255,255,0),200)
    holoScale(6,vec(0.05,0.1,0.5))
    holoAng(6,Eye:toAngle()+ang(0,0,90))
    
    if(owner():aimEntity() == Entity) {
    holoPos(5,Target+vec(0,5,0):rotate(Eye:toAngle()))
    holoPos(6,Target-vec(0,5,0):rotate(Eye:toAngle()))
    }else{
    holoPos(5,owner():shootPos()-Eye*3)
    holoPos(6,owner():shootPos()-Eye*3)
    }
    
    #enemy Health
    holoModel(7,"cylinder")
    holoColor(7,vec(255,0,0),200)
    holoScale(7,vec(0.05,0.1,EHPScale))
    holoAng(7,Eye:toAngle())
    holoPos(7,Target+vec(0,0,5):rotate(Eye:toAngle()))
    
    holoModel(8,"cylinder")
    holoColor(8,vec(255,0,0),200)
    holoScale(8,vec(0.05,0.1,EHPScale))
    holoAng(8,Eye:toAngle())
    holoPos(8,Target-vec(0,0,5):rotate(Eye:toAngle()))
    
    
    EHPScale = (Entity:health()/100)*0.5
    
    #Dir Bars
    Bearing = owner():bearing(Entity:shootPos())
    
    holoModel(9,"cylinder")
    holoScale(9,vec(0.05,0.05,0.1))
    holoAng(9,Eye:toAngle())
    holoColor(9,vec(255,0,0))
    if(Bearing < -35) {
    holoPos(9,owner():shootPos()+Eye*4+(vec(0,2.8,0):rotate(Eye:toAngle())))
    } else {
    holoPos(9,owner():shootPos()-Eye*3)
    }
    
    holoModel(10,"cylinder")
    holoScale(10,vec(0.05,0.05,0.1))
    holoAng(10,Eye:toAngle())
    holoColor(10,vec(255,0,0))
    if(Bearing > 35) {
    holoPos(10,owner():shootPos()+Eye*4+vec(0,-2.8,0):rotate(Eye:toAngle()))
    } else {
    holoPos(10,owner():shootPos()-Eye*3)
    }
    This is based on a 100 health system.
    Red on the visor is your health
    Red on the target circle is their health
    Yellow is locked on
    Red on the sides is Bearing
    Blue is the crosshair

    Type Next or Previous to change targets







    ^^^ McLovin ^^^

    Credit to Haloguy for thinking of the Idea and participating in the race to release the Holo HUD
    (I WIN!!!! HAHAHA)
    Last edited by SpectreCat; 06-19-2009 at 05:58 PM.

    New to the E2? Try my Tutorial:
    A Beginners Guide to Expression 2



    ***Please send a PM before you add me to friends***

    Quote Originally Posted by chinoto View Post
    E2 is not complicated, but many of the people who use it do complicated things with it.

  2. #2
    ◕␣◕ McLovin's Avatar
    Join Date
    Sep 2008
    Location
    Batman, Turkey
    Posts
    2,346
    Blog Entries
    3

    Default Re: Cats New Hologram HUD (Hologram Addon)

    Nice job cat!
    Anticept - HP you are terrible at trolling. Always have been. Leave it up to the pros like Jat.
    Black Phoenix - Actually cunt goes into bullshit. Bullshit does not fit in cunt.
    Drunkie - Logically, Jat Goodwin must be a fist pumping guido.

  3. #3
    Wiremod Helper Lyinginbedmon's Avatar
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,659

    Default Re: Cats New Hologram HUD (Hologram Addon)

    Awesome, I'm gonna have to give this a shot later

  4. #4
    Wire Sofaking Solece's Avatar
    Join Date
    Jul 2008
    Location
    Pittsburgh, PA
    Posts
    673

    Default Re: Cats New Hologram HUD (Hologram Addon)

    My idea, and I started one first. But THIS BASTUD! beat me to it xD
    Last edited by Solece; 06-19-2009 at 05:49 PM.

  5. #5
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,662
    Blog Entries
    1

    Default Re: Cats New Hologram HUD (Hologram Addon)

    Quote Originally Posted by haloguy922 View Post
    My idea, and I started one first. But THIS BASTUD! beat me to it xD
    QQ, ideas get stolen in garrysmod all the time. its a race to see who can do it the best.

  6. #6
    Wirererer adadr's Avatar
    Join Date
    Jan 2009
    Location
    South Dakota, USA
    Posts
    303
    Blog Entries
    3

    Default Re: Cats New Hologram HUD (Hologram Addon)

    yay im on here i was there when you showd it

  7. #7
    Wire Noob Pyromandan's Avatar
    Join Date
    May 2009
    Posts
    11

    Default Re: Cats New Hologram HUD (Hologram Addon)

    Why did I leave the server right before you did this? Its so cool!

  8. #8
    Wire Sofaking Solece's Avatar
    Join Date
    Jul 2008
    Location
    Pittsburgh, PA
    Posts
    673

    Default Re: Cats New Hologram HUD (Hologram Addon)

    My idea... :angry:

  9. #9
    Wire Sofaking SpectreCat's Avatar
    Join Date
    Mar 2008
    Location
    Sammamish, Washington
    Posts
    504

    Default Re: Cats New Hologram HUD (Hologram Addon)

    Lol, halo I gave you credit. You can still upload your visor.

    New to the E2? Try my Tutorial:
    A Beginners Guide to Expression 2



    ***Please send a PM before you add me to friends***

    Quote Originally Posted by chinoto View Post
    E2 is not complicated, but many of the people who use it do complicated things with it.

  10. #10
    Wire Sofaking Solece's Avatar
    Join Date
    Jul 2008
    Location
    Pittsburgh, PA
    Posts
    673

    Default Re: Cats New Hologram HUD (Hologram Addon)

    VISR, thank you very much... name stealer xD. Your R doesnt even represent anything, unless your a pirate.

+ Reply to Thread
Page 1 of 4 123 ... LastLast

Similar Threads

  1. Hologram Help
    By Zukarakox in forum Installation and Malfunctions Support
    Replies: 9
    Last Post: 12-25-2007, 05:41 PM
  2. Hologram kit bug
    By Mini Franki in forum Bug Reports Archive
    Replies: 0
    Last Post: 10-27-2007, 12:42 PM
  3. Hologram Drawer
    By kilroy in forum Finished contraptions
    Replies: 5
    Last Post: 10-05-2007, 08:21 PM
  4. Hologram Re-Creator
    By Seraphis in forum Finished contraptions
    Replies: 38
    Last Post: 06-19-2007, 07:40 AM
  5. Hologram Help
    By Guardian9978 in forum Installation and Malfunctions Support
    Replies: 0
    Last Post: 04-12-2007, 09:44 AM

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