BakkesMod Programming Wiki
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

ServerWrapper : TeamGameEventWrapper

View Implementation

The server is the controller of the match. It tells you where cars and balls are, the time remaining, score, and so much more.

If not hosting the match (in an online or private match) all values are read-only. Some functions will also return garbage data in online matches to protect the competitive integrity of the game

Get it with gameWrapper.GetCurrentGameState()


BallWrapper 
GetBall()



void 
SpawnCar(int carBody, std::string name)


Parameter Type Description
carBody int
name std::string

void 
SpawnBot(int carBody, std::string name)


Parameter Type Description
carBody int
name std::string

BallWrapper 
SpawnBall(const Vector position, bool wake, bool spawnCannon)


Parameter Type Description
position Vector
wake bool
spawnCannon bool

bool 
HasAuthority()



CarWrapper 
GetGameCar()



bool 
IsBallMovingTowardsGoal(int goalNo, BallWrapper bw)


Parameter Type Description
goalNo int
bw BallWrapper

bool 
IsInGoal(Vector vec)


Parameter Type Description
vec Vector

void 
DisableGoalReset()



void 
EnableGoalReset()



Vector 
GenerateShot(Vector startPos, Vector destination, float speed)


Parameter Type Description
startPos Vector
destination Vector
speed float

Vector 
GenerateGoalAimLocation(int goalNumber, Vector currentBallLocation)


Parameter Type Description
goalNumber int
currentBallLocation Vector

Vector 
GetGoalExtent(int goalNumber=0)


Parameter Type Description
goalNumber int

Vector 
GetGoalLocation(int goalNumber=0)


Parameter Type Description
goalNumber int

CarWrapper 
GetTestCarArchetype()



void 
SetTestCarArchetype(CarWrapper newTestCarArchetype)


Parameter Type Description
newTestCarArchetype CarWrapper

BallWrapper 
GetBallArchetype()



void 
SetBallArchetype(BallWrapper newBallArchetype)


Parameter Type Description
newBallArchetype BallWrapper

ActorWrapper 
GetBallSpawnPoint()



void 
SetBallSpawnPoint(ActorWrapper newBallSpawnPoint)


Parameter Type Description
newBallSpawnPoint ActorWrapper

int 
GetSeriesLength()



void 
SetSeriesLength(int newSeriesLength)


Parameter Type Description
newSeriesLength int

int 
GetGameTime()



void 
SetGameTime(int newGameTime)


Parameter Type Description
newGameTime int

int 
GetWarmupTime()



void 
SetWarmupTime(int newWarmupTime)


Parameter Type Description
newWarmupTime int

int 
GetMaxScore()



void 
SetMaxScore(int newMaxScore)


Parameter Type Description
newMaxScore int

int 
GetAutoBalanceDifference()



void 
SetAutoBalanceDifference(int newAutoBalanceDifference)


Parameter Type Description
newAutoBalanceDifference int

float 
GetScoreSlomoTime()



void 
SetScoreSlomoTime(float newScoreSlomoTime)


Parameter Type Description
newScoreSlomoTime float

float 
GetGameTimeRemaining()



void 
SetGameTimeRemaining(float newGameTimeRemaining)


Parameter Type Description
newGameTimeRemaining float

int 
GetSecondsRemaining()



void 
SetSecondsRemaining(int newSecondsRemaining)


Parameter Type Description
newSecondsRemaining int

int 
GetWaitTimeRemaining()



void 
SetWaitTimeRemaining(int newWaitTimeRemaining)


Parameter Type Description
newWaitTimeRemaining int

float 
GetTotalGameTimePlayed()



void 
SetTotalGameTimePlayed(float newTotalGameTimePlayed)


Parameter Type Description
newTotalGameTimePlayed float

float 
GetOvertimeTimePlayed()



void 
SetOvertimeTimePlayed(float newOvertimeTimePlayed)


Parameter Type Description
newOvertimeTimePlayed float

unsigned long 
GetbRoundActive()



void 
SetbRoundActive(unsigned long newbRoundActive)


Parameter Type Description
newbRoundActive unsigned long

unsigned long 
GetbPlayReplays()



void 
SetbPlayReplays(unsigned long newbPlayReplays)


Parameter Type Description
newbPlayReplays unsigned long

unsigned long 
GetbBallHasBeenHit()



void 
SetbBallHasBeenHit(unsigned long newbBallHasBeenHit)


Parameter Type Description
newbBallHasBeenHit unsigned long

unsigned long 
GetbOverTime()



void 
SetbOverTime(unsigned long newbOverTime)


Parameter Type Description
newbOverTime unsigned long

unsigned long 
GetbUnlimitedTime()



void 
SetbUnlimitedTime(unsigned long newbUnlimitedTime)


Parameter Type Description
newbUnlimitedTime unsigned long

unsigned long 
GetbNoContest()



void 
SetbNoContest(unsigned long newbNoContest)


Parameter Type Description
newbNoContest unsigned long

unsigned long 
GetbDisableGoalDelay()



void 
SetbDisableGoalDelay(unsigned long newbDisableGoalDelay)


Parameter Type Description
newbDisableGoalDelay unsigned long

unsigned long 
GetbShowNoScorerGoalMessage()



void 
SetbShowNoScorerGoalMessage(unsigned long newbShowNoScorerGoalMessage)


Parameter Type Description
newbShowNoScorerGoalMessage unsigned long

unsigned long 
GetbMatchEnded()



void 
SetbMatchEnded(unsigned long newbMatchEnded)


Parameter Type Description
newbMatchEnded unsigned long

unsigned long 
GetbShowIntroScene()



void 
SetbShowIntroScene(unsigned long newbShowIntroScene)


Parameter Type Description
newbShowIntroScene unsigned long

unsigned long 
GetbClubMatch()



void 
SetbClubMatch(unsigned long newbClubMatch)


Parameter Type Description
newbClubMatch unsigned long

int 
GetNextSpawnIndex()



void 
SetNextSpawnIndex(int newNextSpawnIndex)


Parameter Type Description
newNextSpawnIndex int

ReplayDirectorWrapper 
GetReplayDirectorArchetype()



void 
SetReplayDirectorArchetype(ReplayDirectorWrapper newReplayDirectorArchetype)


Parameter Type Description
newReplayDirectorArchetype ReplayDirectorWrapper

ReplayDirectorWrapper 
GetReplayDirector()



void 
SetReplayDirector(ReplayDirectorWrapper newReplayDirector)


Parameter Type Description
newReplayDirector ReplayDirectorWrapper

ArrayWrapper 
GetGameBalls()



int 
GetTotalGameBalls()



void 
SetTotalGameBalls(int newTotalGameBalls)


Parameter Type Description
newTotalGameBalls int

float 
GetPostGoalTime()



void 
SetPostGoalTime(float newPostGoalTime)


Parameter Type Description
newPostGoalTime float

ArrayWrapper 
GetGoals()



int 
GetSecondsRemainingCountdown()



void 
SetSecondsRemainingCountdown(int newSecondsRemainingCountdown)


Parameter Type Description
newSecondsRemainingCountdown int

Vector 
GetFieldCenter()



void 
SetFieldCenter(Vector newFieldCenter)


Parameter Type Description
newFieldCenter Vector

TeamWrapper 
GetGameWinner()



void 
SetGameWinner(TeamWrapper newGameWinner)


Parameter Type Description
newGameWinner TeamWrapper

TeamWrapper 
GetMatchWinner()



void 
SetMatchWinner(TeamWrapper newMatchWinner)


Parameter Type Description
newMatchWinner TeamWrapper

PriWrapper 
GetMVP()



void 
SetMVP(PriWrapper newMVP)


Parameter Type Description
newMVP PriWrapper

PriWrapper 
GetFastestGoalPlayer()



void 
SetFastestGoalPlayer(PriWrapper newFastestGoalPlayer)


Parameter Type Description
newFastestGoalPlayer PriWrapper

PriWrapper 
GetSlowestGoalPlayer()



void 
SetSlowestGoalPlayer(PriWrapper newSlowestGoalPlayer)


Parameter Type Description
newSlowestGoalPlayer PriWrapper

PriWrapper 
GetFurthestGoalPlayer()



void 
SetFurthestGoalPlayer(PriWrapper newFurthestGoalPlayer)


Parameter Type Description
newFurthestGoalPlayer PriWrapper

float 
GetFastestGoalSpeed()



void 
SetFastestGoalSpeed(float newFastestGoalSpeed)


Parameter Type Description
newFastestGoalSpeed float

float 
GetSlowestGoalSpeed()



void 
SetSlowestGoalSpeed(float newSlowestGoalSpeed)


Parameter Type Description
newSlowestGoalSpeed float

float 
GetFurthestGoal()



void 
SetFurthestGoal(float newFurthestGoal)


Parameter Type Description
newFurthestGoal float

unsigned char 
GetReplicatedScoredOnTeam()



void 
SetReplicatedScoredOnTeam(unsigned char newReplicatedScoredOnTeam)


Parameter Type Description
newReplicatedScoredOnTeam unsigned char

unsigned char 
GetReplicatedServerPerformanceState()



void 
SetReplicatedServerPerformanceState(unsigned char newReplicatedServerPerformanceState)


Parameter Type Description
newReplicatedServerPerformanceState unsigned char

int 
GetRoundNum()



void 
SetRoundNum(int newRoundNum)


Parameter Type Description
newRoundNum int

float 
GetAssistMaxTime()



void 
SetAssistMaxTime(float newAssistMaxTime)


Parameter Type Description
newAssistMaxTime float

float 
GetBallHasBeenHitStartDelay()



void 
SetBallHasBeenHitStartDelay(float newBallHasBeenHitStartDelay)


Parameter Type Description
newBallHasBeenHitStartDelay float

float 
GetPodiumDelay()



void 
SetPodiumDelay(float newPodiumDelay)


Parameter Type Description
newPodiumDelay float

float 
GetPodiumTime()



void 
SetPodiumTime(float newPodiumTime)


Parameter Type Description
newPodiumTime float

int 
GetLobbyEndCountdown()



void 
SetLobbyEndCountdown(int newLobbyEndCountdown)


Parameter Type Description
newLobbyEndCountdown int

int 
GetLobbyCountdown()



void 
SetLobbyCountdown(int newLobbyCountdown)


Parameter Type Description
newLobbyCountdown int

float 
GetLobbyTime()



void 
SetLobbyTime(float newLobbyTime)


Parameter Type Description
newLobbyTime float

int 
GetLobbySpawnRestartTime()



void 
SetLobbySpawnRestartTime(int newLobbySpawnRestartTime)


Parameter Type Description
newLobbySpawnRestartTime int



void 
SetPauser(PlayerControllerWrapper newPauser)


Parameter Type Description
newPauser PlayerControllerWrapper

void 
SetNumPlayers(int numPlayers)


Parameter Type Description
numPlayers int

int 
GetNumPlayers()



int 
GetPlayerCarCount()



void 
ReplicateSkillTiers()



void 
RemoveTeamSelection()



void 
CheckStart()



void 
StartLobbyTimer()



void 
HandleCountdownTick()



void 
CheckForCountdownAction()



void 
LobbyCountdownTick()



bool 
CanSpawnBots()



void 
StartRound()



void 
EndRound()



void 
SetBallEventListeners(BallWrapper Ball, unsigned long bListen)


Parameter Type Description
Ball BallWrapper
bListen unsigned long

bool 
CanAwardPoints()



void 
HandleCarTouch(BallWrapper Ball, CarWrapper HitCar, unsigned char HitType)


Parameter Type Description
Ball BallWrapper
HitCar CarWrapper
HitType unsigned char

void 
SetBallHasBeenHit2()



int 
DetermineScoreTouchIndex(BallWrapper Ball, GoalWrapper Goal)


Parameter Type Description
Ball BallWrapper
Goal GoalWrapper

int 
DetermineAssistTouchIndex(BallWrapper Ball, int ScoreIdx)


Parameter Type Description
Ball BallWrapper
ScoreIdx int

void 
UpdateTotalGameTimePlayed(float DeltaTime)


Parameter Type Description
DeltaTime float

void 
UpdateGameTime(float DeltaTime)


Parameter Type Description
DeltaTime float

bool 
CanUpdateGameTime()



void 
StartReplay()



void 
HandleReplayFinished(ReplayDirectorWrapper InReplay)


Parameter Type Description
InReplay ReplayDirectorWrapper

void 
GotoPodiumSpotlight()



void 
UpdateSpotlight()



void 
SpawnPodiumCars()



bool 
CanEnableCarPodiumMovement()



void 
FinishEvent()



bool 
__GameEvent_Soccar_TA__UpdateTeamScores(TeamWrapper T)


Parameter Type Description
T TeamWrapper

void 
__GameEvent_Soccar_TA__SubmitMatchComplete(PriWrapper PRI)


Parameter Type Description
PRI PriWrapper

void 
__GameEvent_Soccar_TA__CheckStart(TeamWrapper T)


Parameter Type Description
T TeamWrapper

void 
__GameEvent_Soccar_TA__EndState(TeamWrapper T)


Parameter Type Description
T TeamWrapper

void 
__ReplicatedServerPerformanceState__ChangeNotifyFunc()



void 
__bClubMatch__ChangeNotifyFunc()



void 
__bShowIntroScene__ChangeNotifyFunc()



void 
__WaitTimeRemaining__ChangeNotifyFunc()



void 
CheckJoinInProgress(PriWrapper PRI)


Parameter Type Description
PRI PriWrapper

bool 
AllowDynamicCrowd()



void 
AddBallTrajectory(BallWrapper InBall)


Parameter Type Description
InBall BallWrapper

bool 
ShowScorerGoalMessage()



bool 
CanUseBallCam()



bool 
DisableStatXP()



void 
SetDisableGoalDelay(unsigned long bInDisableGoalDelay)


Parameter Type Description
bInDisableGoalDelay unsigned long

void 
ForceMatchStart()



void 
RemoveLocalPlayer(PlayerControllerWrapper Player)


Parameter Type Description
Player PlayerControllerWrapper

void 
AddLocalPlayer(PlayerControllerWrapper Player)


Parameter Type Description
Player PlayerControllerWrapper

void 
DestroyGoalIndicators(PlayerControllerWrapper Player)


Parameter Type Description
Player PlayerControllerWrapper

void 
CreateGoalIndicators(PlayerControllerWrapper Player)


Parameter Type Description
Player PlayerControllerWrapper

void 
BeginHighlightsReplay()



bool 
ShouldCountUp()



bool 
ShouldAllowVoteToForfeit()



bool 
ShouldHaveLeaveMatchPenalty()



void 
SetPaused(PlayerControllerWrapper InPauser, unsigned long bInPaused)


Parameter Type Description
InPauser PlayerControllerWrapper
bInPaused unsigned long

bool 
ShouldCountdownResumeFromPause()



void 
SetScoreAndTime(PlayerControllerWrapper PC, int NewScoreTeam0, int NewScoreTeam1, int InGameTimeRemaining, unsigned long bInOvertime, unsigned long bRestartRound)


Parameter Type Description
PC PlayerControllerWrapper
NewScoreTeam0 int
NewScoreTeam1 int
InGameTimeRemaining int
bInOvertime unsigned long
bRestartRound unsigned long

void 
SaveLocalPlayerStats()



bool 
ShouldPlayReplay()



bool 
ShouldRecordReplay()



void 
OnBallHasBeenHit()



BallWrapper 
SpawnBall2(Vector &SpawnLoc, unsigned long bWake, unsigned long bSpawnCannon, std::string BallArch)


Parameter Type Description
SpawnLoc Vector
bWake unsigned long
bSpawnCannon unsigned long
BallArch std::string

int 
GetTotalScore()



void 
HandleCarSet(PriWrapper InPRI)


Parameter Type Description
InPRI PriWrapper

void 
RemovePlayer(ControllerWrapper Player)


Parameter Type Description
Player ControllerWrapper

void 
RemovePRI(PriWrapper PRI)


Parameter Type Description
PRI PriWrapper

void 
AddPRI(PriWrapper PRI)


Parameter Type Description
PRI PriWrapper

void 
OnMatchWinnerSet()



void 
OnGameWinnerSet()



int 
MVPSort(PriWrapper A, PriWrapper B)


Parameter Type Description
A PriWrapper
B PriWrapper

void 
HandleHitGoal(BallWrapper Ball, GoalWrapper Goal)


Parameter Type Description
Ball BallWrapper
Goal GoalWrapper

void 
ClearReplicatedScoredOnTeam()



void 
TriggerScoreChangedEvent()



void 
HandleScoreUpdated(TeamWrapper Team)


Parameter Type Description
Team TeamWrapper

void 
OnAllTeamsCreated()



void 
TriggerGoalScoreEvent(int TeamScoredOn, CarWrapper Scorer)


Parameter Type Description
TeamScoredOn int
Scorer CarWrapper

void 
SetTotalGameBalls2(int TotalBalls)


Parameter Type Description
TotalBalls int

void 
RecordRecentPlayers()



void 
UpdateStats()



void 
NotifyKismetOfCurrentTime()



bool 
EnoughTimePassedToForfeit()



void 
OnGameTimeUpdated()



void 
OnOvertimeUpdated()



void 
ForceOvertime()



void 
StartOvertime()



bool 
OnMyHalf(Vector &TestLocation, unsigned char TeamNum)


Parameter Type Description
TestLocation Vector
TeamNum unsigned char

TeamWrapper 
GetWinningTeam()



void 
ResetPickups()



void 
ResetPlayers()



void 
OnBallSpawned(BallWrapper NewBall)


Parameter Type Description
NewBall BallWrapper

void 
ResetBalls()



void 
DestroyCars()



void 
FreezePawns()



void 
DestroyBalls()



void 
RemoveGameBall(BallWrapper Ball)


Parameter Type Description
Ball BallWrapper

void 
AddGameBall(BallWrapper Ball)


Parameter Type Description
Ball BallWrapper

void 
StartNewRound()



void 
CheckForAutoBalance()



bool 
HasWinner()



void 
SubmitMatch2()



void 
SubmitMatchComplete2()



void 
OnMatchEnded()



bool 
ShouldDoPodiumSpotlight()



void 
EndGame()



void 
UpdateTeamScores2()



void 
StartNewGame()



void 
ResetGame()



void 
ClearReplicatedStatEvent()



void 
eventDestroyed()



void 
InitBotDetection()



void 
InitCrowdManager()



void 
InitField()



void 
InitGameObserver()



void 
OnInit()



void 
InitMutators()



void 
OnClubMatch()



bool 
CanInitClubMatch()



void 
AssignCustomTeamSettings()



void 
InitGame2(std::string Options)


Parameter Type Description
Options std::string

std::string 
GetMatchGUID()



void 
SetMatchGUID(std::string s)


Parameter Type Description
s std::string

void 
EventGameWinnerSet(ServerWrapper GameEvent)


Parameter Type Description
GameEvent ServerWrapper

void 
EventGoalScored(ServerWrapper GameEvent, BallWrapper Ball, GoalWrapper Goal, int ScoreIndex, int AssistIdx)


Parameter Type Description
GameEvent ServerWrapper
Ball BallWrapper
Goal GoalWrapper
ScoreIndex int
AssistIdx int