Add a Hammer entity that plays a sound only to a specific team

Discussion in 'Implemented' started by D.D.D. Destroyer, Apr 22, 2014.

  1. D.D.D. Destroyer

    D.D.D. Destroyer Member Staff Member Moderator

    Messages:
    9,506
    Likes Received:
    111
    Trophy Points:
    0
    This one's less important to me than the vehicle type filter, but I feel like this could prove to be quite useful on certain maps in certain situations - I'm thinking pre-recorded voice lines, like "The Brenodi have secured the flag!" and so forth.
     
  2. Silk

    Silk Mapper

    Messages:
    3,147
    Likes Received:
    36
    Trophy Points:
    0
    I need something similar, but for team specific text.

    Probably possible in some other way as well, but this would be easier ^^
    Just if some coder ever gets bored ;)
     
  3. LordDz_2

    LordDz_2 Strange things happens here

    Messages:
    2,956
    Likes Received:
    93
    Trophy Points:
    0
    emp_hint or what's it's called can be displayed for a team. Two of them can't be displayed at the same time (from what I know of), even if they're shown for different teams.
     
  4. D.D.D. Destroyer

    D.D.D. Destroyer Member Staff Member Moderator

    Messages:
    9,506
    Likes Received:
    111
    Trophy Points:
    0
    Those show up at the bottom of the screen, between health and ammo bars. I think Silk means the big letters in the middle of the screen. I can't imagine it'd take much since there are already more general entities (ambient_generic for sound and a text one whose name eludes me), they just need some tweaking to only play/show to the right people.

    Like, a filter :rolleyes:
     
  5. LordDz_2

    LordDz_2 Strange things happens here

    Messages:
    2,956
    Likes Received:
    93
    Trophy Points:
    0
  6. Beerdude26

    Beerdude26 OnThink(){ IsDownYet(); }

    Messages:
    7,243
    Likes Received:
    13
    Trophy Points:
    0
    Added two new entities:

    emp_team_text_pointentity: two keyfields, "text" and "team" (2 = NF, 3 = BE) and an input called "DisplayMessage".

    emp_team_sound_pointentity: two keyfields, "sound" and "team" (2 = NF, 3 = BE) and an input called "PlaySound". No idea where it looks for the sound, btw
     

Share This Page