Attempting to make a health pack...

  • If you're asking a question make sure to set the thread type to be a question!

Exelaratore

L2: Junior Member
Mar 18, 2013
91
56
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:

Exelaratore

L2: Junior Member
Mar 18, 2013
91
56
I know, and I want to make the Health give 50 health to all classes. How would I do so?
 

fubarFX

The "raw" in "nodraw"
aa
Jun 1, 2009
1,720
1,978
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.
 

Exelaratore

L2: Junior Member
Mar 18, 2013
91
56
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?
 

Empyre

L6: Sharp Member
Feb 8, 2011
309
187
As fubarFX mentioned, item_healthpack.
 

Exelaratore

L2: Junior Member
Mar 18, 2013
91
56
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 :-\
 

Crash

func_nerd
aa
Mar 1, 2010
3,315
5,499
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.
 
Sep 7, 2012
638
500
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! :)
 
Last edited:

GPuzzle

L9: Fashionable Member
Feb 27, 2012
638
414
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 :-\

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:

Arne

L3: Member
Nov 22, 2012
114
55
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>
 
Last edited:

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
Small ammo/health actually refills something like 21.5%, in case anyone cares c:
 

Seba

DR. BIG FUCKER, PHD
aa
Jun 9, 2009
2,364
2,728
I was close enough shut up
 

Trotim

aa
Jul 14, 2009
1,195
1,045
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%