View Full Version : Healthkits
boykevin
08-18-2008, 10:22 AM
Hey is there a way to have healthkits spawn after they've been used?
i googled and stuff i couldnt find anything for it?
any help?
thanks :D
Youme
08-18-2008, 10:32 AM
item_healthkit_medium (small or full)
item_ammopack_medium (small or full)
these both respawn after use.
boykevin
08-18-2008, 10:37 AM
o so no need for any time or anything?
drpepper
08-18-2008, 10:38 AM
o so no need for any time or anything?
no, they will respawn after they are used. takes about 30 or 45 seconds or something like that
Hyperviper
08-18-2008, 10:39 AM
Nope, no need for a timer or anything like that.
Healthkits will respawn after a set amount of time, but bigger ones will take longer to respawn.
boykevin
08-18-2008, 10:42 AM
is there a way to set there time?
Ive been wondering if there is a way to adjust the respawn times of these :)
Youme
08-18-2008, 10:44 AM
Not that I know of, the time is standardised and I havent seen any options to change it (might be a server side cvar though..)
boykevin
08-18-2008, 10:46 AM
o ok thanks for the help :D
endyss
08-22-2008, 07:36 PM
There has to be some way to alter the respawn time for healthkits and ammo... I'm working on a map now and they respawn FAR too quickly!
Also, now on Arena maps, a mapper may want a healthkit to not respawn at all, so anyone have an idea how to do it?
FaTony
08-22-2008, 08:40 PM
OnPlayerTouch !self kill
toboruin
08-22-2008, 09:00 PM
OnPlayerTouch !self kill
Don't forget to add a delay to it, Cause the chances are it would give the added health/ammo/
endyss
08-23-2008, 05:14 AM
Don't forget to add a delay to it, Cause the chances are it would give the added health/ammo/
Pardon the mapping newbie here... can you explain how to do those things?
Actually, I'd like to make the healthkits and ammo respawn, but on the arena map I'm working on now, even item_ammopack_full entities respawn in less than 10 seconds. I'd just like to delay that if not turn them off completely.
taotd
08-23-2008, 02:26 PM
What you could do is send itself a Disable input OnPlayerTouch. The player still gets his health/ammo and the kit is removed from gameplay. You could also have the item send itself an Enable imput after a delay of x number of seconds OnPlayerTouch to make it "respawn"
ETA: Adding a delay is easy. On the Output tab, you'll see the fields like My OutPut Named, Target this Entity, etc. There's a box labelled After a Delay of [___] seconds. This means that whatever output this entiry sends, it won't happen after the specified time has elapsed.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.