player count real time

Discussion in 'Mapping Questions & Discussion' started by GoldenGirl, Feb 22, 2011.

  1. GoldenGirl

    GoldenGirl Banned

    Messages:
    43
    Positive Ratings:
    14
    is it posible to count the exact number of player on the map and using this number on other entity and calculate it even if a player leave ?
     
  2. Dragonstorm24

    Dragonstorm24 L4: Comfortable Member

    Messages:
    196
    Positive Ratings:
    43
    w8 why would you ask this if u dont own tf2?
     
  3. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    Sourcemod is your best bet for doing this; there's probably a way to do it with entity wankery, but I don't recommend that.
     
  4. GoldenGirl

    GoldenGirl Banned

    Messages:
    43
    Positive Ratings:
    14
    why not?
     
  5. Dragonstorm24

    Dragonstorm24 L4: Comfortable Member

    Messages:
    196
    Positive Ratings:
    43
    It takes up too much compile time and usually never works properly
     
  6. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    It'll probably be very complicated and prone to breaking; if you want to use that method, ask func_door or A Boojum Snark if/how is it possible.

    Dragonstorm does have a point, though - how will you map without even owning a Source game?
     
  7. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,767
    Positive Ratings:
    5,508
    tf_gamerules has two outputs, Team1PlayersChanged and Team2PlayersChanged that fire whenever they change and send the number of players as a parameter. Then you can use those for whatever, or add them if you want total count.
     
    • Thanks Thanks x 6