Help with control points

Discussion in 'Mapping Questions & Discussion' started by Flambe, Jul 13, 2010.

  1. Flambe

    Flambe L1: Registered

    Messages:
    9
    Positive Ratings:
    0
    Currently I am trying to work on a varient of the control point gamemode. How it works isn't really important.

    What I am trying to do is make it so once the point is captured the next is unlocked, simple. But if the point is then capped by the opposing team it is locked.

    Example: Point 1 gets capped by blu and unlocks point 2 for both teams. Point 1 then gets capped by red. Point 1 gets disabled.

    I need help trying to disable point 1 after 2 caps. Though I've "used" hammer for a while I'm still fairly new to more complex stuff.
     
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    The easiest method would be to use the SetLocked input to the team_control_point, it is a boolean input where the parameter 0 = unlocked and 1 = locked.
     
  3. Flambe

    Flambe L1: Registered

    Messages:
    9
    Positive Ratings:
    0
    So, if I did this output on my capture_area: OnCapTeam1; cp1 ;SetLocked;1
    Where cp1 is my team_control_point.
    It should disable the capture point for only team 1?
     
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    No, it would lock it for everyone which is what it seemed like you needed. If you want to do team-specific locking you'll need to use the SetTeamCanCap input.
     
  5. Flambe

    Flambe L1: Registered

    Messages:
    9
    Positive Ratings:
    0
    What I want to do is have the point neutral to start. Then when a team caps the point, it can still be capped by the opposing team. When the opposing team caps it (if they want to cap it), the cap is disabled.

    But I will have a look at what you've said as well.
     
  6. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    Ah, ok. Make a math_counter and set it's max value to 2.
    On your trigger_capture_area add OnEndCap > math_counter > Add > 1
    Give the math_counter an OnHitMax > team_control_point > SetLocked > 1
    That will lock it after it has been captured twice.
     
    • Thanks Thanks x 1
  7. Flambe

    Flambe L1: Registered

    Messages:
    9
    Positive Ratings:
    0
    I thought more entites may be involved. Thank you for the help!