So basically I'm trying to create a map based on the gametype of World of Warcraft's Arathi Basin. I don't much like WoW, just like the idea behind that specific battleground.
If you're unfamiliar with the game, basically:
There are 5 control points on the map, all starting out as neutral. Players aim to capture the points for their team. Every few sec, a score is added to the team based on the number of points they are currently holding. Once a team reaches a certain score, they win and the round ends.
Now I've got the design of the map all mostly down, but I need help with the logic behind it.
How exactly would I go about doing this?
I've thought about making the game_score entity, as would probably be required, and with a timer, have each control point tell the game_score to add the score.
My concern is if the game_score will recognize the teams and add appropriately.
Also what will happen when the points are neutral?
Another problem I face is the fact that if one team takes over all the cp's, the game will declare them the winner automatically, something I don't want.
To counter this, I've thought about adding an unreachable extra cp someplace in the map, that way it's impossible to capture "all" the cp's, and then use the control_point_master entity to not include it in the HUD. I sort of answered my self on this one, but I'd like a second opinion on if this would work.
Another problem is getting the score to appear on screen from the game_score at all times, and have it updated every few sec. I've seen it done, I know it's possible...I just don't know how.
Last problem I face is to help the game determine when a team won by reaching that final score. I really have no idea how to make this happen either. What if the score goes over the winning point?
This is a neat project I've been working on for a while, and help would be greatly appreciated. :blushing:
If you're unfamiliar with the game, basically:
There are 5 control points on the map, all starting out as neutral. Players aim to capture the points for their team. Every few sec, a score is added to the team based on the number of points they are currently holding. Once a team reaches a certain score, they win and the round ends.
Now I've got the design of the map all mostly down, but I need help with the logic behind it.
How exactly would I go about doing this?
I've thought about making the game_score entity, as would probably be required, and with a timer, have each control point tell the game_score to add the score.
My concern is if the game_score will recognize the teams and add appropriately.
Also what will happen when the points are neutral?
Another problem I face is the fact that if one team takes over all the cp's, the game will declare them the winner automatically, something I don't want.
To counter this, I've thought about adding an unreachable extra cp someplace in the map, that way it's impossible to capture "all" the cp's, and then use the control_point_master entity to not include it in the HUD. I sort of answered my self on this one, but I'd like a second opinion on if this would work.
Another problem is getting the score to appear on screen from the game_score at all times, and have it updated every few sec. I've seen it done, I know it's possible...I just don't know how.
Last problem I face is to help the game determine when a team won by reaching that final score. I really have no idea how to make this happen either. What if the score goes over the winning point?
This is a neat project I've been working on for a while, and help would be greatly appreciated. :blushing: