Add a win/loss argument to GameOver call-in

Add a win/loss argument to GameOver call-in

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Add a win/loss argument to GameOver call-in

Post by zwzsg »

In the call-in:

function widget:GameOver()
end

I want to know if it's a win or a loss. Currently, it's not very possible. I tried counting #Spring.GetTeamUnits(Spring.GetMyTeamID()), doesn't work because the player is already autoswitched to speccing another team when GameOver is called.

So my demand is to add an argument to GameOver to know it's a win or a loss.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Add a win/loss argument to GameOver call-in

Post by aegis »

they get specced if they win?
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Add a win/loss argument to GameOver call-in

Post by zwzsg »

Indeed, "if Spring.GetSpectatingState() then" did the trick. Still feels ugly and prone to break.
Post Reply

Return to “Feature Requests”