[Solved] Multiple holograms per control point?

Discussion in 'Mapping Questions & Discussion' started by ComradeCheekiBreeki, Jun 30, 2020.

  1. ComradeCheekiBreeki

    ComradeCheekiBreeki L1: Registered

    Messages:
    2
    Positive Ratings:
    0
    My koth map's point is situated around a circular pit/piece of cover, and as such the normal cap_point_base just doesn't cut it. Instead, I added two small capture point models on either team's side so they can easily tell who owns the point. In this vein, I wanted to add a hologram to both mini points, but obviously the team_control_point entity's model can only be on side at once. So, I grabbed the cappoint_hologram model and made a prop_dynamic with that model and put it on the other. However, I can't figure out how to change the prop to match the team it's owned by. Looking at the team_control_point entity, it seems to use bodygroups to change the model, which makes sense, but by default the unowned bodygroup is 3, and both red and blu's bodygroup is 1, which doesn't make any sense to me.

    To clarify, this is all one point, the extra hologram and mini control point model is purely visual so both teams can easily identify who owns the point.
     
  2. Pinsplash

    Pinsplash bad bad bad

    Messages:
    114
    Positive Ratings:
    57
    You can change any entity's bodygroup by sending the input called AddOutput with the parameter body 0/1/2...
     
  3. Da Spud Lord

    aa Da Spud Lord Occasionally I make maps

    Messages:
    1,221
    Positive Ratings:
    826
    prop_dynamic also just has a built-in SetBodyGroup input, so you don't need AddOutput. So just use a prop_dynamic for the second hologram, and change it's body group to match the team_control_point's.
     
  4. Pinsplash

    Pinsplash bad bad bad

    Messages:
    114
    Positive Ratings:
    57
    lol, i forgot that. that input is also on all model entities
     
  5. ComradeCheekiBreeki

    ComradeCheekiBreeki L1: Registered

    Messages:
    2
    Positive Ratings:
    0
    Thanks everyone for the help, I got it working. The bodygroups are also a little confusing so for anyone in the future who wants to know: unowned bodygroup is 0, invisible is 1, red is 2 and blu is 3. This seems to only apply to a hologram model if it's not bound to a team_control_point entity, since those bodygroups mentioned in the entity don't line up at all by default but still work fine.