File tree Expand file tree Collapse file tree
Gamemode Mods/StarCore SUGMA Gamemodes/Data/Scripts/SUGMA/GameModes/RocketCore Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111using Sandbox . Game ;
1212using VRageMath ;
1313using VRage . ModAPI ;
14+ using static SC . SUGMA . GameModes . Domination . DominationGamemode ;
1415
1516namespace SC . SUGMA . GameModes . RocketCore
1617{
@@ -73,7 +74,6 @@ public override void UpdateActive()
7374 continue ;
7475 // Goal was made
7576 PointTracker . AddFactionPoints ( zoneSet . Key , - 1 ) ;
76- SUGMA_SessionComponent . I . GetComponent < RocketCoreHud > ( "rocHud" ) ? . GoalScored ( zoneSet . Key ) ;
7777
7878 if ( _winningFaction != null )
7979 break ;
@@ -160,6 +160,10 @@ public override void StartRound(string[] arguments = null)
160160 if ( ! MyAPIGateway . Utilities . IsDedicated )
161161 SUGMA_SessionComponent . I . RegisterComponent ( "rocHud" , new RocketCoreHud ( this ) ) ;
162162
163+ PointTracker . OnPointsUpdated += ( faction , points ) =>
164+ {
165+ SUGMA_SessionComponent . I . GetComponent < RocketCoreHud > ( "rocHud" ) ? . GoalScored ( faction ) ;
166+ } ;
163167 SpawnBall ( ) ;
164168
165169 Log . Info ( "Started a ROC match." +
You can’t perform that action at this time.
0 commit comments