is it possible to change team size in hammer

Discussion in 'Mapping Questions & Discussion' started by jpg02, Jul 25, 2017.

  1. jpg02

    jpg02 L1: Registered

    Messages:
    24
    Positive Ratings:
    0
    makeng a saxtonhale type gamemode can someone help me make some sort of team limiter
     
  2. Lampenpam

    aa Lampenpam

    Messages:
    1,019
    Positive Ratings:
    337
    the saxton hale gamemode is being handled by a server plugin. You need a plugin to limit team sizes unless you are already making a vsh map
     
  3. jpg02

    jpg02 L1: Registered

    Messages:
    24
    Positive Ratings:
    0
    I know there handed by a plugin but I'm trying to make a map like it and a team limited would be good thing to know how to use and what's a vsh map?
     
  4. Diva Dan

    aa Diva Dan hello!

    Messages:
    849
    Positive Ratings:
    1,443
    It's definitely possible in vanilla without plugins. You may need to look up cheats that allow for team imbalances and enable them using a pointservercommand entity.
     
    • Agree Agree x 1
  5. Fragancia

    Fragancia L2: Junior Member

    Messages:
    85
    Positive Ratings:
    29
    VSH = Vs Saxton Hale
    it's the prefix that maps made for the VSH gamemode use.

    You are out of luck on making what you wish to achieve simply using the limited tools given to mappers without a sourcemod plugin to get around most of the shortcomings.

    They can't really use point_servercommand because it's blocked off by the cvar sv_allow_point_servercommand which is set to official by default.

    This is done to stop maps from using the entity in malicious ways.
    It sucks Valve went down this route and making this entity useless.
     
  6. Diva Dan

    aa Diva Dan hello!

    Messages:
    849
    Positive Ratings:
    1,443
    You can always ask a server operator to turn on the cvar, if they trust you
     
  7. Crash

    aa Crash func_nerd

    Messages:
    3,182
    Positive Ratings:
    4,878
    @Egan made something similar awhile back for an April fool's day map. Maybe he'd be able to point you in the right direction.
     
  8. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    779
    Positive Ratings:
    226
    Which commands would do this exactly, because I looked in the VDC for TF2 console commands and cvars, and I can't see which commands would do this.
    • I see mp_teams_unbalance_limit cvar, but that only kicks in when autobalancing is enabled.
    • There's the tf_arena_override_team_size cvar, but that only changes the team size in arena and it's for both teams.
    • and there's the 9 tf_tournament_classlimit_<class> cvars that limit how many of each class can be on a team in Tourament mode
    In any case, surely any appropriate cvars could be issued via a <mapname>.cfg file distributed with the map. That way server operators would be able to see which cvars or commands are being fired and their values, and disable or adjust them as they see fit.
     
  9. Diva Dan

    aa Diva Dan hello!

    Messages:
    849
    Positive Ratings:
    1,443
    I have the original VMF for Egans map which has the working logic for it (it may be outdated, who knows). I'll check inside of that and get back to you, because I'm also researching it
     
  10. 【EmNudge】

    【EmNudge】 L4: Comfortable Member

    Messages:
    182
    Positive Ratings:
    37
    It shouldn't be too hard if you have a point_clientcommand and a small little renaming system.

    If you want it to be, say, one guy a team:
    Have multiple spawn points in a room, have triggers around each one which get enabled a second after spawn time and have a filter that block ppl renamed to Hale. Have a trigger on one of the points to rename the player to Hale which starts enabled.
    The triggers around the rest of players with the filter can have an output to change the players' team to spectate using the point_clientcommand.

    You can make more triggers to rename the player to Hale to extend the player team count

    EDIT: I made a quick test map for the concept. Not certain if it works as I didn't test it yet. The map has 32 slots in case all 32 ppl on a 32 person server join one team it will place them in different locations (I think that's how it works, I may be wrong and it's just random). The first guy to spawn will get renamed to hale and won't be forced to join spectate.

    There would be ways to increase the player count such as having a math_counter and count up to a certain number of players being renamed and then disable the renaming system and enable the trigger to make the player join spectate.
     

    Attached Files:

    • Like Like x 1
    Last edited: Jul 26, 2017