Attempting to make a health pack...

Discussion in 'Mapping Questions & Discussion' started by SeanMcPhearless, Mar 25, 2013.

  1. SeanMcPhearless

    SeanMcPhearless L2: Junior Member

    Messages:
    91
    Positive Ratings:
    51
    I'm working on making a simple medium health pickup in Valve Hammer for a team fortress map. I cannot find anywhere online for the amount of damage healed from a medium medkit. anyone have a clue? I know its 50% but I need an exact number.. can just put 50% and it will actually work?
     
    Last edited: Mar 25, 2013
  2. fubarFX

    aa fubarFX The "raw" in "nodraw"

    Messages:
    1,605
    Positive Ratings:
    1,696
    well it depends on the class you are playing. a heavy will actually get more health than a scout would form a single pickup.
     
  3. SeanMcPhearless

    SeanMcPhearless L2: Junior Member

    Messages:
    91
    Positive Ratings:
    51
    I know, and I want to make the Health give 50 health to all classes. How would I do so?
     
  4. Spacek531

    Spacek531 L4: Comfortable Member

    Messages:
    162
    Positive Ratings:
    60
    trigger_hurt with negative values. Good luck getting it to work though
     
    • Thanks Thanks x 1
  5. fubarFX

    aa fubarFX The "raw" in "nodraw"

    Messages:
    1,605
    Positive Ratings:
    1,696
    well that means you won't be using item_healthpacks. you would have to make your own with a combination of prop_dynamic, trigger_hurt and a logic_timer (or not if you're really clever). it's probably going to be a little wonky but it would work. but it will most likely be super confusing for players so you might want to avoid doing that.
     
    • Thanks Thanks x 2
  6. Crash

    aa Crash func_nerd

    Messages:
    3,129
    Positive Ratings:
    4,710
    Just to clarify, are you just trying to make a plain standard health pack on your map or are you trying to do something custom?
     
    • Thanks Thanks x 1
  7. SeanMcPhearless

    SeanMcPhearless L2: Junior Member

    Messages:
    91
    Positive Ratings:
    51
    Just a plain and simple medium medkit.. and I'm going to have to scrap the one I made because it didn't even appear in game. Anyone know how to make just the regular medium medkit from tf2?
     
  8. Spacek531

    Spacek531 L4: Comfortable Member

    Messages:
    162
    Positive Ratings:
    60
    item_healthkit_medium
     
    • Thanks Thanks x 1
  9. Empyre

    Empyre L6: Sharp Member

    Messages:
    279
    Positive Ratings:
    131
    As fubarFX mentioned, item_healthpack.
     
    • Thanks Thanks x 1
  10. SeanMcPhearless

    SeanMcPhearless L2: Junior Member

    Messages:
    91
    Positive Ratings:
    51
    Well, I believe that is just the model. I mean the actual working health pack in game. Last time I placed the model it was just a still medkit in game that you couldn't pick up :-\
     
  11. Crash

    aa Crash func_nerd

    Messages:
    3,129
    Positive Ratings:
    4,710
    You need to place the entity item_healthkit_medium.

    Place one down like you're going to do a prop, but at the top type that in. Usually I just type in "health" and select which size I need. The game does it all for you. You don't select it from the prop list, but a whole new entity.
     
    • Thanks Thanks x 1
  12. nightwatch

    aa nightwatch

    Messages:
    640
    Positive Ratings:
    446
    You have to place the entity item_healthkit_medium. (select it from the entity list!)

    That is different from placing a prop_static, for example, and giving it that model.

    Edit: Ninja-ed, but at least I beat someone else! :)
     
    • Thanks Thanks x 1
    Last edited: Mar 25, 2013
  13. GPuzzle

    GPuzzle L9: Fashionable Member

    Messages:
    638
    Positive Ratings:
    134
    Talking about the prop? Nope, it's an entity. It is what we use to create those darn health and ammo packs.

    Edit: Double Ninja'ed! Darn.
     
    Last edited: Mar 25, 2013
  14. Spacek531

    Spacek531 L4: Comfortable Member

    Messages:
    162
    Positive Ratings:
    60
    I ninja'd all of y'all

     
  15. SeanMcPhearless

    SeanMcPhearless L2: Junior Member

    Messages:
    91
    Positive Ratings:
    51
    doesn't matter cause I thanked you all :)
     
  16. Dïcecübe

    Dïcecübe L3: Member

    Messages:
    114
    Positive Ratings:
    31
    item_healthkit_small - heals with 20 % of the user's max health on pickup.
    item_healthkit_medium - heals with 50 % of user's max health on puckup.
    item_healthkit_large - heals the user's health to max (100 %) on pickup.

    Ammopacks does the thing as healthkits. But instead of refilling health, it refills the user's ammo reserve. The enitities are named as item_ammopack_<size>
     
    • Thanks Thanks x 1
    Last edited: Mar 26, 2013
  17. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    Small ammo/health actually refills something like 21.5%, in case anyone cares c:
     
  18. Idolon

    aa Idolon the worst admin

    Messages:
    1,439
    Positive Ratings:
    4,193
    According to the wiki, small health heals 20.5% and small ammo refills 20%.
     
  19. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    I was close enough shut up
     
    • Thanks Thanks x 1
  20. Trotim

    aa Trotim

    Messages:
    1,180
    Positive Ratings:
    993
    They fixed the typo they had on small medkits so they'd properly heal 25% for a few days but then reverted that iirc so now it's 20.5%