Help with ctf map.

Discussion in 'Mapping Questions & Discussion' started by Player1, Aug 23, 2012.

  1. Player1

    Player1 L1: Registered

    Messages:
    24
    Positive Ratings:
    15
    A map I creating is ctf, and I want to change a few things that are normal for ctf. I would like to increase the amount of caps it takes to win, and would like to disable crits on cap. In addition I want to also decrease spawn time. I have looked at game_round_win, game_end, game_scoring, and tf_gamerules, but I did not really see any of those values to change. I'm pretty sure you have to add some output command, but I do not know what that would be.

    Thanks for your time.


    I'm new to sdk, so pardon if my questions are kinda simple to fix or impossible. :unsure:
     
  2. phi

    aa phi Let Pain Be Your Guide

    Messages:
    804
    Positive Ratings:
    1,585
    The amount of caps required to win is server-side, it's not decided by the map. You could use a point _servercommand to alter this variable, but gamedays do not allow that.
    For the crits, well, I don't know. There is a way to do it, though, as other maps have done it.
     
    • Thanks Thanks x 1
  3. Player1

    Player1 L1: Registered

    Messages:
    24
    Positive Ratings:
    15
    Thanks. but how would I use the point_servercommands in sdk, there isn't a variable for the points needed to win?
     
  4. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    Point_servercommand is an entity that forces the server to execute a certain command; it's as if someone opened the console on the host machine and entered the command. However, this requires cheats to be enabled, and is against gameday rules. You're best off not worrying about this, as it's going to get changed by admins anyway (if the map is played, that is).

    Crits on cap is a serverside setting too, I believe.

    Adjust spawntimes with the SetBlueTeamRespawnWaveTime/SetRedTeamRespawnWaveTime output going into tf_gamerules. It's usually fired from a logic_auto by OnMapSpawn.
     
    Last edited: Aug 23, 2012
  5. Micnax

    aa Micnax I maek map

    Messages:
    2,062
    Positive Ratings:
    1,396
    It is, BUT it can be modified in a map. I do it in Arroyo.

    Using a logic_auto, put in OnMapSpawn to fire SetCTFCaptureBonusTime into a tf_gamerules with a parameter of 0.
     
    • Thanks Thanks x 1
  6. Player1

    Player1 L1: Registered

    Messages:
    24
    Positive Ratings:
    15
    Okay, thanks. For some reason I was throwing the setredteamrespawnwavetime on tf_gamerules >.> that could explain why it wasn't working :p
     
  7. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    Well yeah, that's where the input goes; OnMapSpawn => tf_gamerules => SetRedTeamRespawnWaveTime => x. Shoulda mentioned that in the previous post, I'll add it now.