threw a player model in my map like valve did, question about it

JMRboosties

L2: Junior Member
Jun 3, 2009
98
2
like valve in lumberyard, just for fun, the character is out of the way like their's and doesnt even show up all the time (on a logic_timer set to random)

anyways its an engie and i want to put the train conductor hat on him, but the model is default with the construction hat... i cant find a way to make him bald and put the other on, does anyone know how?
 
Feb 18, 2009
640
629
I'm not sure how this could be done in Hammer. You can see how it is done with players by looking at the model in the model viewer. There is an option to turn sub-meshes (like the engineer's hard hat) on and off. I assume this is normally controlled with code in-game so I doubt it can be done in Hammer. Adding hats (such as the mining light) shouldn't be too difficult though, just place the hat model in the same place as the player model and make sure they are animated at the same time as each other.
 

CapellanCitizen

L2: Junior Member
Mar 31, 2010
77
16
make the Engie a prop_dynamic if he isn't already, and when he's spawned, send him an input to change bodygroup to [INSERT A NUMBER WHERE HE LACKS A HAT(I think 1 works)]. For the cap, you could just have a prop that is the engineer cap placed in the map so that it will look like he's wearing it, or you could attach a dynamic prop specifically to the engineer prop, and then parent it to the hat attachment point by parenting it to the engineer prop, and then sending it the input "setparentattatchment head".
 

JMRboosties

L2: Junior Member
Jun 3, 2009
98
2
when i do that, the hat floats above the engies head a little (his animation is in a crouching position)

any ideas?