+ Reply to Thread
Results 1 to 7 of 7

Thread: Holo Top Hat

  1. #1
    Wire Noob iSpork's Avatar
    Join Date
    Aug 2010
    Location
    New York
    Posts
    16

    Default Holo Top Hat

    This is my first real E2 thing. It's very simple but still fun.

    Just a hat that goes on your head. It blocks your vision a little bit in First Person but not to bad.



    Code:
    @name HoloHat
    
    print("Someone Just Fot Fancy!")
    holoCreate(1)
    holoPos(1, owner():attachmentPos("eyes"))
    holoAng(1, owner():attachmentAng("eyes"))
    holoParentAttachment(1, owner(), "eyes")
    
    holoAlpha(1,0)
    
    holoCreate(2)
    holoPos(2, holoEntity(1):pos() + holoEntity(1):up()*7 + holoEntity(1):forward()*-3)
    holoAng(2,holoEntity(1):angles())
    holoModel(2, "hqcylinder")
    holoColor(2,vec(0,0,0))
    holoScale(2,vec(0.7,0.7,0.7))
    holoParent(2,1)
    
    holoCreate(3)
    holoPos(3, holoEntity(1):pos() + holoEntity(1):up()*2 + holoEntity(1):forward()*-3)
    holoAng(3,holoEntity(1):angles())
    holoModel(3, "hqtorus")
    holoColor(3,vec(255,255,255))
    holoScale(3,vec(0.8,0.8,0.6))
    holoParent(3,1)
    Any tips or advice would be awesome. I just started E2 Yesterday.

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

    Default Re: Holo Top Hat

    Not bad, but I suggest using E:toWorld(V) instead of getting the forward, right and up directions individually.

  3. #3
    Wire Noob iSpork's Avatar
    Join Date
    Aug 2010
    Location
    New York
    Posts
    16

    Default Re: Holo Top Hat

    Is there a way to make it not obscure vision but stay in the same place on your head?

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

    Default Re: Holo Top Hat

    Quote Originally Posted by iSpork View Post
    Is there a way to make it not obscure vision but stay in the same place on your head?
    holoVisible( Index, owner(), 1 )

    Someone should add the 2 holoVisible() functions to the wiki.

  5. #5
    Wire Noob 1ian5's Avatar
    Join Date
    Feb 2009
    Posts
    15

    Thumbs up Re: Holo Top Hat

    Looks fine! And perfect, I always wanted to were a top hat
    Primary VAC banned account (was hacked and got vac banned by hacker :/ )



    Secondary Account (only in use when playing certain games)

    need to make public

  6. #6
    Wire Noob ChrisYo's Avatar
    Join Date
    Mar 2010
    Posts
    11

    Default Re: Holo Top Hat

    Nice hat.
    Off topic...
    I love Drunkie hes so positive.

  7. #7
    Wire Noob OMG TEH PWNS's Avatar
    Join Date
    Nov 2008
    Posts
    7

    Default Re: Holo Top Hat

    Quote Originally Posted by Drunkie View Post
    Someone should add the 2 holoVisible() functions to the wiki.
    Done.
    Etc

+ Reply to Thread

Tags for this 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