Comments (1)
This isn't exactly an issue related to this specific framework, but I can try to help you anyway.
You can determine when the game has ended by looking at gameState.Map.Phase
. If it is equal to MapPhase.GameOver
, the match has ended.
Unfortunately I don't think that Valve has provided a way to actually determine which team won the match. You could try comparing which team won the most rounds, but that may not be accurate in case one team surrendered. You could also try to deduce it from which team that has won the last round (gameState.Round.WinTeam
when gameState.Map.Phase == MapPhase.GameOver
).
from csgsi.
Related Issues (20)
- CSGSI on VB .NET HOT 1
- Doesn't detect new Wingman map mode HOT 3
- So do you guys know how to properly do the average damage per round?
- Need help for everything-im new there HOT 1
- GameStateListener.Start only returns true on first run when debugging HOT 1
- Int Null value handling HOT 2
- Not working with Danger Zone HOT 1
- Getting NewGameState but can't compare its values. HOT 8
- GameState.Added... should return a bool HOT 1
- can't receive data with latest version HOT 10
- Exception when PlayerNode has an empty array in Weapons
- Some events are not being triggered. HOT 1
- gs.Bomb.State and gs.Previously.Bomb.State returning Undefined HOT 1
- doesn't connect HOT 7
- Sometimes when I call .Stop() there is unexpected error
- Game State Objects come one round slower HOT 1
- gs.Player.Forward and Position return null
- gs.Map.HasData always returns true HOT 1
- BumpMine will give an exception
- Using GameStateListener.Stop() generates a System.Net.HttpListenerException
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csgsi.