math_counter

  1. Grassen

    How do I change spawn locations when a team wins a certain amount of wins?

    So recently i've started to play around with math_counter entity to add to a map. What came to mind was, let's say red team wins 3 rounds the map changes spawnpoints and if blue wins a round it removes a "counter" to the score, making it so red does not progress to the next area of the map. How...
  2. Asimuth

    Tracking Control Point Ownership

    Hello! I have a map in which there are 7 control points (all neutral by default), and it's supposed to work in a way that when a team captures all 7, the other team's base barrier is lowered. Tracking which teams owns the control points is a bit tricky. My first naive implementation was having...
  3. Cyberen

    A Math Question

    Say I want to create a vehicle with speeds and gears. Speeds is represented by S. It has six values: 0, 25, 40, 55, 70, 85 Gears is represented by G. It has four values: 1, 1.41, 1.83, 2.25 If I want to output a value based on S multiplied by G, with both variables changing based on hitting...
  4. Sappykun

    Displaying randomly generated number somewhere in map (TF2)

    I have a logic_case -> math_remap -> math_counter setup that effectively generates a random number between 0 and about 530,000 when the map starts. The number is then deposited in a logic_compare where it is used to determine a pattern for a code-breaking game I have created. However, without...