Moving tf_generic_bomb

Holden

L1: Registered
Feb 26, 2017
10
2
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.
 

Werewolf

Probably not a real Werewolf
aa
Apr 12, 2011
873
309
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
 
Last edited:

Egan

aa
Feb 14, 2010
1,375
1,721
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.

w6kSAnu.png
 

Egan

aa
Feb 14, 2010
1,375
1,721
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.
 

Holden

L1: Registered
Feb 26, 2017
10
2
Thanks so much for the quick help guys! I've got everything working perfectly now.