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

Discussion in 'Mapping Questions & Discussion' started by JMRboosties, Jul 16, 2010.

  1. JMRboosties

    JMRboosties L2: Junior Member

    Messages:
    98
    Positive Ratings:
    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?
     
  2. Mick-a-nator

    aa Mick-a-nator

    Messages:
    640
    Positive Ratings:
    314
    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.
     
  3. CapellanCitizen

    CapellanCitizen L2: Junior Member

    Messages:
    77
    Positive Ratings:
    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".
     
  4. JMRboosties

    JMRboosties L2: Junior Member

    Messages:
    98
    Positive Ratings:
    2
    thanks, i will give that a shot
     
  5. JMRboosties

    JMRboosties L2: Junior Member

    Messages:
    98
    Positive Ratings:
    2
    when i do that, the hat floats above the engies head a little (his animation is in a crouching position)

    any ideas?
     
  6. CapellanCitizen

    CapellanCitizen L2: Junior Member

    Messages:
    77
    Positive Ratings:
    16
    did you use the parenting method, or the putting the hat where it will be method?