Icon Question

Discussion in 'Mapping Questions & Discussion' started by TMB, May 24, 2016.

  1. TMB

    TMB Banned

    Messages:
    827
    Positive Ratings:
    287
    Hi, i have a question for you (if you are reading this, of course...), in tf2 there is ways to die for ambient (Environmental death) and i was wondering. how i can put a custom icon on the game and works with i want?

    I mean this:
    https://wiki.teamfortress.com/wiki/Environmental_death
     
  2. Vel0city

    aa Vel0city func_fish

    Messages:
    1,930
    Positive Ratings:
    1,540
    The trigger_hurt you put at death pits/trains has a damage type (see this: https://developer.valvesoftware.com/wiki/Damage_types) in its options.

    As for custom death icons: don't think that's possible, since that would mean adding a new type of environmental death to the game's code and then updating the fgd to put it into Hammer and then adding the HUD icon displayed in the top right of the screen. The last part is possible without Valve's help, but the former two aren't. You can always email them, it's how that meteor PD map which I forget the name of (it was in the April Fools' game day) got to be real. Valve added a way to spawn the bottles/meteorites on command instead of only on on player death.
     
    Last edited: May 24, 2016
  3. Turnip

    aa Turnip The 80s Vegetable

    Messages:
    1,432
    Positive Ratings:
    803
    Ive seen custom mods for this, custom icons, but they are replacements. Are you talking about a new type of death? I.e. death by bull doser or some other non train death?
    or are you talking about replacing the skull and bones with something else? I.e. for fall damage, a guy falling off a cliff or something?
     
  4. Viperi

    aa Viperi 100% might be snake

    Messages:
    995
    Positive Ratings:
    544
    Rapture.
     
    • Thanks Thanks x 1
  5. TMB

    TMB Banned

    Messages:
    827
    Positive Ratings:
    287
    New type of death...
     
  6. Viperi

    aa Viperi 100% might be snake

    Messages:
    995
    Positive Ratings:
    544
    You could simply choose the damage type closest to what you're getting at.
     
  7. Vel0city

    aa Vel0city func_fish

    Messages:
    1,930
    Positive Ratings:
    1,540
    Yeah, you'll have to ask Valve for that. Doing that requires game code to be changed/added.
     
  8. takabuschik

    aa takabuschik

    Messages:
    663
    Positive Ratings:
    315
    NO!!! ITS TOTALLY POSSIBLE!!!

    You just need your map not to have all the enviromental death types in use (so if your map has no trains or doesn't have deathpits- you're fine!)
    Use whatever type of enviromental death that applies to this requirement.

    Now, make your death icon. That's the part I have no idea on how to do, but I assume you know how to make your own kill icon,
    Make it as a mod to the original death icon (so it replaces it in-game)

    Then pack the required texture files into the map. Since this is a replacement to the default icon, it would be displayed instead, but only as long as the map is loaded, of course, since it's packed inside it.


    I used this method a lot to make new model skins for my map, so I won't have to mess around with the actual model files. Since you can't mess with kill icons types (they're hard-coded) this is a simple workround.
     
    • Thanks Thanks x 2
  9. Vel0city

    aa Vel0city func_fish

    Messages:
    1,930
    Positive Ratings:
    1,540
    Wait, really?

    So if I wanted to let people on the server know that a person got hit by a windmill I'd just use the train notification and mod it into a windmill assuming I don't use the train notification already (which I won't and it'll be text like Fell to a clumsy, painful death but then something like Got hit hard by a windmill)?

    Sweet. Now to figure out how to do that...
     
    Last edited: May 24, 2016
  10. takabuschik

    aa takabuschik

    Messages:
    663
    Positive Ratings:
    315
    Yes that's awesome and I use it a lot as I said.
    http://tf2maps.net/downloads/re-sign.885/ Here's an example I uploaded here a while back- useful for steel-style maps. I also used it to make this for the april fools contest:
    [​IMG]
     
  11. Vel0city

    aa Vel0city func_fish

    Messages:
    1,930
    Positive Ratings:
    1,540
    I think we're not on the same page (or I am completely off-track). You're talking about in-game signs. I'm talking about the HUD icon on the top right of the screen that displays who killed who and such.

    Would that be possible?
     
  12. takabuschik

    aa takabuschik

    Messages:
    663
    Positive Ratings:
    315
    It's the same method for two different things. I do models, you can do kill icons, weapon skins, custom sounds or whatever you want. Basicly, my idea is making it a "map-side mod" (which, unlike client side, can be seen by everyone, and unlike server side, doesn't require server access)
     
  13. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    834
    Environmental death kill icons are found in materials/hud/d_images_v2.vtf. I advise against modifying it, as the file contains many icons so if Valve change something down the line, it might break them for people playing your map.
     
  14. takabuschik

    aa takabuschik

    Messages:
    663
    Positive Ratings:
    315
    So why not just modify, say, the train .vtf only?
     
  15. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,742
    @takabuschik There's like 50 different icons in that VTF, if you edit even just one of them and pack that into your map, ALL THE REST will be forever locked into your version like a timecapsule. So any changes or additions Valve makes to that file after you publish your map will never appear on your map.
     
  16. takabuschik

    aa takabuschik

    Messages:
    663
    Positive Ratings:
    315
    I'm actually interested why they made it like that. I assume the way it works is the game uses different coordinates of the texture itself to set it in the killfeed as required, but why would Valve do it like that?
     
  17. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,742
    That's exactly how it works. And that's exactly how texture maps work, you put lots of similarly grouped things into the same map to save on loading a billion textures. Plus these particular ones are used in text like a typeface, and that's how typefaces are stored