[REQ] 1CP map system in .vmt

Discussion in 'Request Area' started by Avaray, Jan 14, 2014.

  1. Avaray

    Avaray L2: Junior Member

    Messages:
    73
    Positive Ratings:
    3
    [REQ] 1CP map system in .vmf

    // theres .vmt in topic name, should be .vmf - if youre moderator, please change it

    After few days of trying I give up. I dont know how to do it right.

    I need 1CP map system:
    - controlpoint is disabled by default
    - controlpoint is enabling for capture only if theres 1+ player from red and 1+ player from blue team on point in same time
    - controlpoint is not giving player points for point capture, only gives 1 point to team score
    - one point capture per round, so if someone cap the point theres round end and begins new round

    I dont want KOTH mode, because there are timers in HUD and announcer that cannot be disabled in entity options.

    If is here any good human that will help me, I will thank and I will put him into credits when I done map.
     
    Last edited: Jan 14, 2014
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    I don't understand this part. If it can only be captured when both teams are there... neither team will be able to capture because it will be blocked. Did you mean OR? As in a single player cannot capture it, it has to be multiple people from a team?
     
    • Thanks Thanks x 1
  3. Avaray

    Avaray L2: Junior Member

    Messages:
    73
    Positive Ratings:
    3
    Look: http://i4.minus.com/ibl169RxvPEfur.jpg

    That big trigger on image is trigger_capture_area.
    Respawns are in buildings on left and on right.
    So player can do just one step forward and hes cappin the point.
    I want to set area_time_to_cap 1 (1 second) - its very short time.
    I want to prevent point capture by team A when team B is not on this point (in this capture area).
    "Prevention system" for too slow players or AFK'ers.

    Minimum 1 player from red and 1 player from blue must be in trigger_capture_area to Enable this point for capture.

    // my english is so bad, hope youll understand me :D
     
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    I think I understand what you are saying, but it seems like you are leaving something out. If BOTH teams are in a capture area, it will be blocked and nobody will be able to capture it. That is just how the core game mechanics work.

    You could make something that "manually" captures the point to ignore the way it should work, but even then I don't understand what would happen. If both teams are there, who gets to capture? I guess that is really the question here, who takes the point if both teams are standing on it?

    Also, what is your native language? We might have someone around here who speaks it that may be able to better explain in English if you describe it to them natively.
     
    • Thanks Thanks x 1
  5. Avaray

    Avaray L2: Junior Member

    Messages:
    73
    Positive Ratings:
    3
    Thats right. But players will have longer respawn time than round lenght = 1 life per round.
    Example: Round lenght = 2 minutes, players respawnwavetime = 3 minutes.
    When team A is dead, team B is winning the round.

    Im speaking Polish.
     
  6. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    Oh, I get it. Like Arena mode made a different way. I can probably set this up quick enough.
     
    • Thanks Thanks x 1
  7. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    https://dl.dropboxusercontent.com/u/98931/abs_avaray_arena.zip

    The three triggers should cover the whole area when you use it, I just made them how they are so it is easier to see what is what.

    For the record:
    I used a trigger_once for each team, that when touched adds 1 to a math_counter, when the counter hits 2 it will enable the trigger_capture_area.
     
    • Thanks Thanks x 1
  8. Avaray

    Avaray L2: Junior Member

    Messages:
    73
    Positive Ratings:
    3
    WORKS PERFECT! Thanks You very much!

    Can you tell me how to disable player score points for capping the control point? (default 2 points for point capture).
    Is any Entity to Setup scoring system?
     
    Last edited: Jan 14, 2014
  9. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    Oh, I forgot about that part. That actually makes it much easier. Getting points is just built in, there isn't a way to disable it that I remember.

    https://dl.dropboxusercontent.com/u/98931/abs_avaray_arena2.zip

    This one has no capture zone, just two trigger_multiple. They are filtered to each team, and use OnEndTouchAll to determine when no players of that team are alive (they die, they stop touching it). When nobody on the team is touching the trigger, it forces ownership change of the CP. Since it is forced nobody is credited with capture, and nobody gets points.
     
    • Thanks Thanks x 1
  10. Crash

    aa Crash func_nerd

    Messages:
    3,191
    Positive Ratings:
    5,017
    ABS, could you remake Trainsawlaser while you're at it? It's in dire need of a massive entity overhaul to optimize my terrible logic.

    Pretty please?
     
  11. Avaray

    Avaray L2: Junior Member

    Messages:
    73
    Positive Ratings:
    3
  12. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    I don't think that is unique to the second system. You can just as easily suicide to let the enemy cap in the first, or in regular arena. Either with the console or just explosive damage.

    Crash... eh? I don't remember if I've played it, or what could possibly be such a mess that it needs fixing. Elaborate or message me on steam?
     
    • Thanks Thanks x 1
  13. Avaray

    Avaray L2: Junior Member

    Messages:
    73
    Positive Ratings:
    3
    I mean not Crash.... ummmm... just like you said: Someone can killing herself for enemy Win :p
     
  14. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    I was responding to the other guy, whose name is Crash ;)
     
    • Thanks Thanks x 1
  15. Crash

    aa Crash func_nerd

    Messages:
    3,191
    Positive Ratings:
    5,017
    I shall provide all the confusion!

    I was just kidding ABS. It's a cluster in there, though. I'm drastically pushing the entity limits, to the point of a previous version causing server crashes due to it.

    This has some examples of the stuff I've crammed into the map.
     
  16. Avaray

    Avaray L2: Junior Member

    Messages:
    73
    Positive Ratings:
    3
  17. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    oh... yeah. I don't see how that could necessarily be improved if you just have... tons of stuff.
     
    • Thanks Thanks x 1
  18. Avaray

    Avaray L2: Junior Member

    Messages:
    73
    Positive Ratings:
    3
    One short question - is possible to have few different 3D skyboxes in one map?
     
  19. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    Technically, no. You can only have one. Some people will fake it by making big cubes that look like a sky texture and having areas of their map far enough apart they are in a different area of the 3D sky. I don't like that method because it looks bad.
     
    • Thanks Thanks x 1
  20. Avaray

    Avaray L2: Junior Member

    Messages:
    73
    Positive Ratings:
    3
    Is any entity to "freeze" player (make player Immovable for small period of time)?
    I know the way with func_brush around player, but maybe is another, easier way?
    // I need it for round start at respawn.
     
    Last edited: Jan 15, 2014