2 Quick map questions for a dynamic koth

Discussion in 'Mapping Questions & Discussion' started by Grand Maester Zaenoch, Jan 5, 2017.

  1. Grand Maester Zaenoch

    Grand Maester Zaenoch L2: Junior Member

    Messages:
    51
    Positive Ratings:
    4
    1: How could one make a event happen on capture, that is 30 seconds long (mainly i'm only asking how to attach an output when any team captures the point to trigger a water brush door

    2: I require assistance with randomiser logic (1 or 2, randomly decided upon start of the map) And 1 of 16 on a timer
     
  2. henke37

    aa henke37

    Messages:
    1,948
    Positive Ratings:
    462
    "Event" is too vague to be useful. Give more details

    And "require assistance" isn't actionable. Ask an actual question.
     
    • Agree Agree x 1
  3. Grand Maester Zaenoch

    Grand Maester Zaenoch L2: Junior Member

    Messages:
    51
    Positive Ratings:
    4
    ok so a Triggered event that happens when the control point is captured by either team in koth
     
  4. Grand Maester Zaenoch

    Grand Maester Zaenoch L2: Junior Member

    Messages:
    51
    Positive Ratings:
    4
    And i would like some examples of randomisers to learn how to make them in hammer
     
  5. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,441
    Positive Ratings:
    1,196
    tbh you barely said anything new, but random stuff is done with logic_case, and "events" are literally the point of the input/output system. Either can be found on Valve Developer Community, sorry for not including the links, it's tedious on mobile.
     
  6. Vel0city

    aa Vel0city func_fish

    Messages:
    1,938
    Positive Ratings:
    1,540
    1: OnCapTeam1/2 (1=BLU, 2=RED)->send output to the desired entity.

    2 I can't answer.
     
  7. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,018
    Positive Ratings:
    1,181
    1. Use a pair of outputs from the trigger_capture_area, like this:
    OnEndCap | door | Open | 0.00
    OnEndCap | door | Close | 30.00
    OnEndCap works just like OnCapTeam1 and OnCapTeam2 together, so you can roll them into the same output. If you're trying to use moving water, make sure it's a func_water_analog since regular water doesn't work when tied to an entity.

    2. Create a logic_case, skip the keyvalues and go straight to the outputs tab. Fill in every possible case you want to happen with OnCase01 to OnCase16. Then send PickRandom (repeats allowed) or PickRandomShuffle (no repeats) to the logic_case whenever you want the random event to be chosen. The events chosen at the start of the map and the ones tied to the timer should be in separate logic_cases; for the first one, you can send OnMultiNewRound or OnMapSpawn from a logic_auto, and for the second, set up a logic_timer.
     
    • Agree Agree x 2
Tags: