Addcon help

Discussion in 'Mapping Questions & Discussion' started by TravisTouchdown, Mar 2, 2017.

  1. TravisTouchdown

    TravisTouchdown L2: Junior Member

    Messages:
    68
    Positive Ratings:
    5
    I would like to give my TF 2 buddys a taste of what I grew up with in quake. So I rebuilt the 4 quake buffs as addcon items in my map. I need some help with what to do next.

    The pentagram of protection was 30 seconds of invincibility so I set it to TF_COND_INVULNERABLE
    The ring of shadows was 30 seconds of invisibility so I set it to TF_COND_STEALTHED

    Now quake had 2 more. Quad damage which was 30 seconds of 4x damage and Mega health was a double health boost that counted down to normal like an overheal.

    My question is this. What can I use to give out the
     
  2. SmallBiscuit

    SmallBiscuit L7: Fancy Member

    Messages:
    463
    Positive Ratings:
    242
    the what?
     
  3. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    779
    Positive Ratings:
    226
    Quad damage would have to be crits (TF_COND_CRITBOOSTED) and the health you'd actually want to use TF_COND_MEGAHEAL for the effect, with the follwing additional output:
    Code:
    Output named: OnStartTouch
    Targets named: !activator
    Via this input: AddOutput
    Parameter: Health 500
    Delay: 0.00
     
    • Thanks Thanks x 1
  4. Izotope

    aa Izotope Never releases maps

    Messages:
    619
    Positive Ratings:
    584
    Correct me if I'm wrong, but I'm pretty sure the health value is clamped to the max_health KeyVal.
     
  5. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    834
    It is if you use !sethealth, @Izotope, but not if you use health. health lets you overheal someone to whatever you want, or just set them to a specific health. Useful if you want to try to make an arena minigame in a Deathrun map feel a bit more fair by setting the juggernaut/activator's health to a sensible value for the number of remaining runners.
     
  6. TravisTouchdown

    TravisTouchdown L2: Junior Member

    Messages:
    68
    Positive Ratings:
    5

    So my trigger_add_tf_player_condition is called Mega health.
    I set it to TF_COND_MEGAHEAL

    now where you say to use !activator, does that mean I select the name of my entity or do I type in !activator?

    The parameter box also says none so i typed in health 500 but when im in game testing is it just shows my health as 125 cause i was scout.
     
  7. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    779
    Positive Ratings:
    226
    You type in !activator, because in this case the activator is a player, so we have to use the generic !activator command. Otherwise you'd have to type each players name which is just impossible.
     
    Last edited: Mar 4, 2017
  8. henke37

    aa henke37

    Messages:
    1,909
    Positive Ratings:
    446
    Not the player name, the name of the player entity. Which has no relation to the screen name of the player.