I have SH, but in what SH is relative to my question ?
There is no relevance, could be AA SH BT or PA for that matter.
What you need to decide is what are the outcomes you require for each objective? For example, say allis complete their objective, and axis haven't, what's the outcome? Same for the other way around.
What happens if no one completes an objective, does the game have a time limit?
Once you have mapped out a rough story board of the possible game play, then you can start making the script track the objectives and react to them either way to create the outcome.
Sounds to me like your game needs to be more TOW style.
So define your variables to track the objectives to something like this:
level.dmrespawning = 1 // can players re-spawn? 1=yes 0=no
level.dmroundlimit = 15 // round time limit in minutes
level.clockside = draw // set to axis, allies, kills, or draw
level.alliedobjective = 0 // set allied obj to 0 = not done yet
level.axisobjective = 0 // set allied obj to 0 = not done yet
Now if the game times out and no objectives have been met then it's a draw. To define a winner after a bomb has gone off increment the variable with level.alliedobjective++ or level.axisobjective++ then call the thread for end match checking and check the variables for each team.... something like this.
check_endmatch:
//this thread called after a bomb has blown
if ( level.alliedobjective ==1 )
{
//play a nice ending movie for allies
teamwin allies
}
else
{
//show axis ending movie
teamwin axis
}
end
Does that help you at all?
Grassy