- Mar 23, 2023
- 1
- 0
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 a math_counter, for both teams that tracked the amount of cps they owned. Removing one point from the other team's math_counter and adding another to their own. Now this system breaks the moment the second capture point is acquired by a team, because let's say Blu owns a control point, their math_counter is at 1. Red captures a neutral point and now it's back to zero. Other idea was okay not removing any points, but making a capture raise your own team's barrier.- this resulted in barriers being always down after 7 total captures somehow, now admittedly it's a very real possibility i just messed something up and one of these should work somehow, but i felt it's time to ask for some help.
Sorry if i left any important thing out!
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 a math_counter, for both teams that tracked the amount of cps they owned. Removing one point from the other team's math_counter and adding another to their own. Now this system breaks the moment the second capture point is acquired by a team, because let's say Blu owns a control point, their math_counter is at 1. Red captures a neutral point and now it's back to zero. Other idea was okay not removing any points, but making a capture raise your own team's barrier.- this resulted in barriers being always down after 7 total captures somehow, now admittedly it's a very real possibility i just messed something up and one of these should work somehow, but i felt it's time to ask for some help.
Sorry if i left any important thing out!