After fixing the team base explosions, which has finalised everything in the bomb_zone entity. I started work on adding the bombs score column to the scoreboard, and to the team scoreboard above it.
This wasnt as simple as i thought it would be, I had to use the “getDefinition” and “getDeclaration” in VC++ alot, to track back from how players add score to their bomb explosions which i also added. The bombs variable had to be declared in the scoreboard, the player, the team and gamerules Scripts, and in their coresponding client side scripts. There needed to be some communication between the client/server scripts where the score and bombs were updated between them, aswell as alot of accessor functions being created for data access.
With the whole comuncations of data sorted out, all i have to do now to add to the score or bombs are theses simple (once i finaly figgured them out) lines:
pBomb->GetPlayer()->AddPoints( GetExplPoints() , false );
pBomb->GetPlayer()->AddPointsToTeam( GetExplPoints() , false );
pBomb->GetPlayer()->IncrementBombCount( 1 );
pBomb->GetPlayer()->IncrementBombCountToTeam( 1 );
I didnt realise at first that adding points to the team was different than just adding points. As total kills/bombs/deaths etc are contained on the player himself, and the scoreboard takes the data from him to update itself. This means if a player joins or leaves a server they need to clear any previous games data, Also if they leave then the scoreboard has to maintain a stable level of total bomb explosions. As if a player leaves who scored 2 boms, the server needs to have the bomb explosions kept tallyed up in the Team rather than adding up each teams total.
What i didnt want to happen was players swaping sides or leaving and that changing the total scores/bombs.
Next step is still figuring out how to disable punting the bombs while someone holds them, thats the only thing the bomb needs changing so far.
Meanwhile i think i can start designing the custom bomb models for the combine and rebel bombs.
Mabye also looking at a single bomb version, where theres only one bomb in the middle that both teams fight over ? i can implement this if i have the free time.
Pics of the scoreboard below as i make changes to it.



