Moving tf_generic_bomb

Discussion in 'Mapping Questions & Discussion' started by Holden, Feb 26, 2017.

  1. Holden

    Holden L1: Registered

    Messages:
    10
    Positive Ratings:
    5
    Hi, this is my first post on Tf2 maps, so let me know if I've posted this in the wrong spot or anything so I don't repeat that mistake.

    I'm currently making a map with a train in it, and I wanted to make one of the train cars carrying bombs that would explode if shot. I've got the train all set up, but under the tf_generic_bomb entity I can't set a parent entity to allow it to move along with the train. Is there any way to do this with tf_generic_bomb, or should I be using another entity?

    Sorry for being a mapping noob if this is obvious.
     
  2. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    752
    Positive Ratings:
    212
    Your best option would be to use a func_breakable brush that roughly matches the shape of your bomb props. The props would have to be prop_dynamic's so that they can be parented to the train and for them to receieve the 'Break' input. For the explosion you can use a env_explosion or an info_particle_system to create the effect.

    Your func_breakable would have low health, with the following outputs:
    • OnBreak > (named prop_dynamic) > Break
    • OnBreak > (named env_explosion) > explode OR
    • OnBreak > (named info_particle_system) > Start > 0.00
    • OnBreak > (named info_particle_system) > Stop > 5.00
     
    • Respectfully Disagree Respectfully Disagree x 2
    • Thanks Thanks x 1
    Last edited: Feb 26, 2017
  3. Egan

    aa Egan

    Messages:
    1,305
    Positive Ratings:
    1,486
    While the tf_generic_bomb entity doesn't explicitly say it has the parent keyvalue, you can set that manually by disabling the SmartEdit setting and adding the parentname keyvalue yourself. This will cause the generic bomb to be parented.

    [​IMG]
     
    • Like Like x 3
    • Thanks Thanks x 1
    • Agree Agree x 1
  4. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    752
    Positive Ratings:
    212
    OK out of the solutions proposed by myself and @Egan, his is the more efficient. But I'm confused why people are disagreeing with my solution when it's not wrong in any way? Can someone enlighten me here? @iiboharz
     
  5. Egan

    aa Egan

    Messages:
    1,305
    Positive Ratings:
    1,486
    I disagreed because you said "your best option", which involved redoing the entire system with 3 entities instead of 1. Not only was the point of the generic bomb entity being added to the game to get rid of excess entities, but also Holden would get a different result than what he precisely wanted - - - for example func breakable can't be broken by flames.
     
    • Agree Agree x 3
    • Thanks Thanks x 1
  6. iiboharz

    aa iiboharz Meme Queen

    Messages:
    707
    Positive Ratings:
    1,030
    Exactly what Egan said.
     
    • Thanks Thanks x 1
  7. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    752
    Positive Ratings:
    212
    Fair enough, thanks for clarifying it.
     
  8. Holden

    Holden L1: Registered

    Messages:
    10
    Positive Ratings:
    5
    Thanks so much for the quick help guys! I've got everything working perfectly now.