+ Reply to Thread
Results 1 to 10 of 10

Thread: St. Patrick's Day Clover!

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

    Arrow St. Patrick's Day Clover!

    Today is...
    :clover: St Patrick's Day! :clover:
    I have made a neat little contraption for such an occasion.
    Here's some pictures followed by the expression code






    Code:
    @name St Patrick's Day
    @inputs 
    @outputs 
    @persist [Stem E]:entity Mat:string Green:vector
    @trigger 
    
    interval(10)
    
    if (first()) {
        Size = 3
        runOnLast(1)
        E = entity()
        Mat = "models/debug/debugwhite"
        Green = vec(0,200,0)
        Size = clamp(Size,2,20)
        Stem = holoCreate(1,E:pos(),vec(0.05,0.03,0.3)*Size,ang(),Green,"hqcylinder2")
        holoCreate(2,Stem:toWorld(vec(-0.18,0,-2.2)*Size),vec(0.05,0.03,0.1)*Size,Stem:toWorld(ang(20,0,0)),Green,"hqcylinder2")
        holoCreate(3,Stem:toWorld(vec(2.35,0,1)*Size),vec(0.4,0.15,0.025)*Size,Stem:toWorld(ang(10,0,90)),Green,"hqcylinder2")
        holoCreate(4,Stem:toWorld(vec(-2.35,0,1)*Size),vec(0.4,0.15,0.025)*Size,Stem:toWorld(ang(-10,0,90)),Green,"hqcylinder2")
        holoCreate(5,Stem:toWorld(vec(2.35,0,2)*Size),vec(0.4,0.15,0.025)*Size,Stem:toWorld(ang(-10,0,90)),Green,"hqcylinder2")
        holoCreate(6,Stem:toWorld(vec(-2.35,0,2)*Size),vec(0.4,0.15,0.025)*Size,Stem:toWorld(ang(10,0,90)),Green,"hqcylinder2")
        holoCreate(7,Stem:toWorld(vec(0.5,0,4)*Size),vec(0.4,0.15,0.025)*Size,Stem:toWorld(ang(100,0,90)),Green,"hqcylinder2")
        holoCreate(8,Stem:toWorld(vec(-0.5,0,4)*Size),vec(0.4,0.15,0.025)*Size,Stem:toWorld(ang(80,0,90)),Green,"hqcylinder2")
        for (I = 1,8) {
            holoParent(I,Stem)
            holoMaterial(I,"debug/debugdrawflat")
            holoShadow(I,0)
        }
        E = owner()
        holoPos(1,E:shootPos()+vec(0,0,5*Size))
        holoParent(1,E)
    }
    
    # Keep player green
    if (E:getMaterial() != Mat) {E:setMaterial(Mat)}
    if (E:getColor() != Green) {E:setColor(Green)}
    
    # Make it spin
    holoAng(1,ang(0,curtime()*30,0))
    
    # Clear the color
    if (last()) {
        E:setColor(vec(255,255,255))
        E:setMaterial("")
    }
    It colors you green and the :clover: spins around your head
    Last edited by Drunkie; 03-18-2010 at 12:22 AM. Reason: Optimized code

  2. #2
    has a custom title mattwd0526's Avatar
    Join Date
    Apr 2009
    Location
    Born Bostonian
    Posts
    2,652

    Default Re: St. Patrick's Day Clover!

    Little bit late, being the end of the day... Oh well

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

    Default Re: St. Patrick's Day Clover!

    Quote Originally Posted by mattwd0526 View Post
    Little bit late, being the end of the day... Oh well
    Hey, we all get home from work or school around 4 or 5, dont we?
    Really depends on your time-zone.

  4. #4
    Banned Samantha Fangs's Avatar
    Join Date
    Nov 2009
    Location
    Tulsa,oklahoma,USA
    Posts
    18

    Default Re: St. Patrick's Day Clover!

    Yes, True, And it looks awesome by the look of it. Happy saint Patrick's day.

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

    Default Re: St. Patrick's Day Clover!

    Quote Originally Posted by Samantha Fangs View Post
    Yes, True, And it looks awesome by the look of it. Happy saint Patrick's day.
    Thanks!

  6. #6
    Wire Noob Illuminati's Avatar
    Join Date
    Aug 2009
    Posts
    12

    Default Re: St. Patrick's Day Clover!

    damn.. i dont get to pinch you

  7. #7
    Wire Amateur Pridit's Avatar
    Join Date
    Mar 2009
    Location
    United Kingdom
    Posts
    52

    Default Re: St. Patrick's Day Clover!

    It's awesome, I love it great job as always Drunkie.
    I've not yet decided what to fill this with :v:

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

    Default Re: St. Patrick's Day Clover!

    Quote Originally Posted by Pridit View Post
    It's awesome, I love it great job as always Drunkie.
    Thanks but yeah, I usually dont make n00b contraptions like this, but I just had to for this particular holiday.
    I just suspect that several of you are Irish :clover: ... xD

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

    Default Re: St. Patrick's Day Clover!

    I think this can also be passed off as a weed leaf.
    Somewhat. xD

  10. #10
    Wire Sofaking ShadowBrain's Avatar
    Join Date
    Oct 2008
    Location
    Where you live.
    Posts
    910

    Default Re: St. Patrick's Day Clover!

    Quote Originally Posted by Drunkie View Post
    I think this can also be passed off as a weed leaf.
    Somewhat. xD
    Lol, that's the first thing that came to my mind when I looked at the pictures.
    I maek 3D mdoels adn paly veido gaems!

+ 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