math_counter check

Discussion in 'Mapping Questions & Discussion' started by MegapiemanPHD, Jan 3, 2016.

  1. MegapiemanPHD

    aa MegapiemanPHD Doctorate in Deliciousness

    Messages:
    994
    Positive Ratings:
    491
    Is there a console command I can use to check the current value of a math_counter entity?
     
  2. Digaag Wa Riz

    Digaag Wa Riz L3: Member

    Messages:
    121
    Positive Ratings:
    84
    With sv_cheats on, type ent_dump [name of math_counter] into the console. It will print all the keys for the entity and their associated values.
     
    • Thanks Thanks x 1
  3. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,745
    alternatively if you're interested in exactly when a math counter reaches certain values, use 'developer 2'
    If that wizzes by too fasr for you, use 'con_filter_enable 1' with 'con_filter_text <string>' to remove everything that doesn't match the desired string (use an entity name for all inputs to that entity as well as all outputs it sends)
     
    • Thanks Thanks x 1
  4. henke37

    aa henke37

    Messages:
    1,927
    Positive Ratings:
    454
    Does ent_text show the counter status? That one accepts entity names. Of course, you'd need to look in the right direction, but that's hardly a challenge.
     
  5. MegapiemanPHD

    aa MegapiemanPHD Doctorate in Deliciousness

    Messages:
    994
    Positive Ratings:
    491
    Doing that gives me the max, classname, hammerid, and friction but not the current value of the math counter.

    typing developer 2 in the console doesn't seem to do anything.