Healthkits

Discussion in 'Mapping Questions & Discussion' started by boykevin, Aug 18, 2008.

  1. boykevin

    boykevin L1: Registered

    Messages:
    41
    Positive Ratings:
    0
    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
     
  2. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,742
    item_healthkit_medium (small or full)
    item_ammopack_medium (small or full)

    these both respawn after use.
     
  3. boykevin

    boykevin L1: Registered

    Messages:
    41
    Positive Ratings:
    0
    o so no need for any time or anything?
     
  4. drp

    aa drp

    Messages:
    2,251
    Positive Ratings:
    2,551
    no, they will respawn after they are used. takes about 30 or 45 seconds or something like that
     
  5. Hyperviper

    Hyperviper L1: Registered

    Messages:
    3
    Positive Ratings:
    0
    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.
     
  6. boykevin

    boykevin L1: Registered

    Messages:
    41
    Positive Ratings:
    0
    is there a way to set there time?
     
  7. Laz

    Laz L7: Fancy Member

    Messages:
    461
    Positive Ratings:
    34
    Ive been wondering if there is a way to adjust the respawn times of these :)
     
  8. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,742
    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..)
     
  9. boykevin

    boykevin L1: Registered

    Messages:
    41
    Positive Ratings:
    0
    o ok thanks for the help :D
     
  10. endyss

    endyss L1: Registered

    Messages:
    16
    Positive Ratings:
    0
    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?
     
  11. FaTony

    FaTony Banned

    Messages:
    902
    Positive Ratings:
    160
    OnPlayerTouch !self kill
     
  12. Shaar

    Shaar L3: Junior Member<BR>toboruin

    Messages:
    231
    Positive Ratings:
    103
    Don't forget to add a delay to it, Cause the chances are it would give the added health/ammo/
     
  13. endyss

    endyss L1: Registered

    Messages:
    16
    Positive Ratings:
    0
    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.
     
  14. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    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.
     
    Last edited: Aug 23, 2008