How to make custom hud for map? (solved)

Discussion in 'Tutorials & Resources' started by r0nii, May 20, 2019.

  1. r0nii

    r0nii L4: Comfortable Member

    Messages:
    158
    Positive Ratings:
    18
    I have made a map which are bit like capture the flag and are almost done. the flag spawns and 30seconds after the flag spawns will explode and the flag will reset. Its unfair because you don't know when will explode till you will count down.

    Do anyone knows how to make custom hud and put it into map?




    "If someone will help me in making a hud then please make hud which has timer/1capturepoint and 1flag but i reminds i don't ask to make me hud. i asking for help how to do."
     
  2. TheMightyGerbil

    TheMightyGerbil L2: Junior Member

    Messages:
    72
    Positive Ratings:
    23
    You basically gut the tf_logic_player_destruction entity and use it with a .res file. https://tf2maps.net/threads/player-destruction-guide.25958/ . As to putting a countdown on the hud you need a base hud element to work with. You might be able to do it though the round timer or koth timers but then you wouldn't have round timers. There is also a buggy way of doing it through game_text like https://gamebanana.com/maps/107047 does but that conflicts with some sourcemod plugins, do not recommend.

    I think your best bet is to make it like another map which I unfortunately can't remember the name of. It had a bomb intel which would countdown on pick up and you had to take it to a control point before it exploded. It was a/d and blue spawn started behind a train with the bomb on it. Was it an april's fool map? I can't remember and don't have the time to go looking right now. Sorry.
     
    • Thanks Thanks x 1
  3. Yaki

    Yaki L5: Dapper Member

    Messages:
    201
    Positive Ratings:
    91
    For countdowns, try using the "tf_logic_hybrid_ctf_cp" and "tf_logic_cp_timer". The first entity adds the CP HUD to CTF, and the second adds a countdown timer on top of one of the CPs on the HUD. (exactly how cp_degrootkeep does it on the last capture point)
     
    • Thanks Thanks x 1
  4. r0nii

    r0nii L4: Comfortable Member

    Messages:
    158
    Positive Ratings:
    18
    WOAH Thanks you! you really helped me! :D
     
  5. r0nii

    r0nii L4: Comfortable Member

    Messages:
    158
    Positive Ratings:
    18
    i know there's exist almost same gamemode map which i made. ctf_isotope is something like my map which my cousin found and shared with me ;c i was sad because the gamemode is almost same ;c but not falling into pipe. on my map you need to be on special zone and the bomb needs to explode. thanks you for help
     
  6. r0nii

    r0nii L4: Comfortable Member

    Messages:
    158
    Positive Ratings:
    18
    Thanks for help and sorry that i asking so late but i few questions. first can i send the map with the hud on the workshop? and second i tried to make this but really i my huds doesnt work. can you send me maybe a ez tutorial and maybe show photos or something like that how you mean it? second question can you maybe make this hud for me? i will add you to co-creator i have a texture of background for this hud. i can send if you want help me by making it.