A bored entity guru...

Discussion in 'Mapping Questions & Discussion' started by A Boojum Snark, Apr 27, 2009.

  1. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    ...creates things that melt people's minds in the real world, let alone in Hammer...

    [ame="http://www.youtube.com/watch?v=v-HK8uo6i5k&fmt=18"]YouTube - Source/TF2 Rubik's Cube[/ame]
    Make sure you go to the Youtube page to see who made the song!


    After having the idea hit me and quickly thinking out how I would do it, it took about 4-5 hours to find the entities I could use because I had trouble figuring out what code and functions were supported on what entities :( (totally not consistant or reliable, mind you)
    After that it was only about 90 minutes of construction to put it all together.
    Then it took me 2 days to make the video. :p

    What's it made of?

    All 26 cubes are func_physbox with all physics simulation disabled. Each of the six sides has a trigger_multiple for detecting the cubes and a momentary_rot_button for rotating the cubes.
    The 48 activation panels are grouped into 12 damage-activated func_buttons.

    How's it work?

    When you shoot one of the buttons the following sequence occurs:
    • All buttons are locked.
    • The required trigger_multiple is enabled, tying the 9 func_physbox residing on that side to the m_r_b via SetParent.
    • m_r_b is told to rotate 90 degrees (position 0 or 1, it has a 180 degree range and starts at .5).
    • trigger_multiple disables.
    • m_r_b reaches the rotated position.
    • func_physboxs have their parent cleared (delayed input from the trigger).
    • m_r_b reverts itself to the centered position (delayed self input from finishing its movement).
    • All buttons unlock.

    Matt wanted I/Os too, so here: bing bong

    I wanted to attach it since it doesn't really fit into downloads... there is no "random entity madness cause snark was being ridiculous" category. :rolleyes: But apparently it's too big for an attachment, so tut resources will have to do... Download

    Also: cookies to whoever is first to guess how I colored the puzzle without decompiling or using console commands.
     
    • Thanks Thanks x 20
    Last edited: Apr 27, 2009
  2. Icarus

    aa Icarus

    Messages:
    2,246
    Positive Ratings:
    1,181
    holy mother of crap
     
  3. Ninjilla

    Ninjilla L7: Fancy Member

    Messages:
    445
    Positive Ratings:
    55
    Wow Boojum, thats rather crazy. I didnt even know that was possible in tf2?!:wow:
     
  4. Bslashingu

    Bslashingu L2: Junior Member

    Messages:
    53
    Positive Ratings:
    11
    I pooped a little.
     
  5. NovaSilisko

    aa NovaSilisko L42: Life, the Universe and Everything

    Messages:
    502
    Positive Ratings:
    129
    Fucking awesome.

    @ The vid and my song being used =p
     
  6. l3eeron

    l3eeron L8: Fancy Shmancy Member

    Messages:
    594
    Positive Ratings:
    85
    you gotta be shittin' me....

    You are my hero.
     
  7. TheDarkerSideofYourShadow

    TheDarkerSideofYourShadow L10: Glamorous Member

    Messages:
    792
    Positive Ratings:
    144
    Interesting. While watching the video I was thinking about how I try and accomplish something like this, and I think you have a very interesting solution there Snark. Btw, how much would it cost to get a copy of your memories so I could know all these cool entity tricks?
     
  8. Cameron:D

    Cameron:D L6: Sharp Member

    Messages:
    363
    Positive Ratings:
    146
    Wow. just wow.
    THAT IS EPIC!!!!!!!!!!!!!!!!!!!!!!!!
     
  9. HojoTheGreat

    HojoTheGreat L5: Dapper Member

    Messages:
    206
    Positive Ratings:
    34
    You sir, are a beautiful freak of nature. That's absurd! I want to show it to everyone I know, and yet have no one to show it to who would appreciate it. Fantastic.
     
  10. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,562
  11. Pendaz

    Pendaz L2: Junior Member

    Messages:
    60
    Positive Ratings:
    0
    nice man good work


    watching the vid i was thinking... hmm, i wonder if he knows how to solve it... ;)

    do you get the "z0mg he must be weird" when people learn that you can solve a rubix cube? lol

    gg tho
     
  12. eerieone

    aa eerieone

    Messages:
    1,009
    Positive Ratings:
    569
    it´s early in the morning, and my brain popped out and now sits quietly weeping in the corner because it feels overpowered by what it just saw....
     
    • Thanks Thanks x 1
  13. Dustoxx

    Dustoxx L6: Sharp Member

    Messages:
    304
    Positive Ratings:
    40
    Awesome!

    Maybe people are going to play competitions with this; 'TF2 speed solving':p
     
  14. The Political Gamer

    aa The Political Gamer

    Messages:
    4,468
    Positive Ratings:
    1,682
  15. Randdalf

    aa Randdalf

    Messages:
    1,054
    Positive Ratings:
    462
    Now make it solve itself :)

    Or scramble iteself
     
  16. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,741
    I get quite the opposite.

    As someone who can do a rubik's cube I never found any of the digital representations of it any fun, since they're slow to turn, you can't always look at them how you would in real life and rather than turning the middle one once you have to turn the ouer two the other way..
    So yeah, impressive that you managed it.. but talk about pointless! :p
     
  17. Randdalf

    aa Randdalf

    Messages:
    1,054
    Positive Ratings:
    462
    I used to be able to do a cube - by the method Boojum used in the video - in about 3-4 minutes, and people were generally quite impressed by it, I remember I had to do it like 5 times one lunch time.

    But then I forgot how to do all of it, except the first face, I forgot all after that.
     
  18. SiniStarR

    SiniStarR L8: Fancy Shmancy Member

    Messages:
    585
    Positive Ratings:
    116
    its awesome and all but...why? XD
     
  19. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    Five souls and a bathing machine.

    Yeah really... all my entity work only impresses if you've ever worked with them yourself.

    One for each team? First to solve wins?! :p or I was thinking I could make it be the payload for no reason other than giving people something to mess with while pushing.

    I had thought about both of these actually. The only way I see that I could scramble it would be to have a system that locks the cube and automatically performs randomized rotations, it wouldn't be possible to 'insta-scramble'.

    As for solving... mostly the same. I was thinking I could do some method of recording every action taken, and then reverse them all. But that's a lame and boring method of "solving".

    Being pointless is the whole point! I'll find myself building things just to see if I can.

    Best comment in the thread.
     
  20. DJive

    aa DJive Cake or Death?

    Messages:
    1,466
    Positive Ratings:
    736
    Also Nova

    Sick tune you have there man