-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A function to end the round #7
Comments
I also added some implementation details |
It looks like (It gets into an infinite loop in |
After doing a bit more research, I found a way to go around the crash: |
... I love getting useless GitHub stats, say no more
Anyway, a function to force a team to win or stalemate would be nice
Some useful implementation details:
CTFGameRules
(tf_gamerules
) has a function calledSetWinningTeam
andSetStatemate
When game_round_win is used, it calls one of these 2 functions.
Arguments for
CTFGameRules::SetWinningTeam
:0 is the team index (int)
1 is the win reason, used for pass time? It's also provided in the
teamplay_round_win
event (int)2 resets the map if set to true (bool)
3 switches the teams if set to true (bool)
4 adds 1 to the team score thing that shows at the end if set to true (bool)
5 makes the humiliation period last for 5 seconds if true and if we're in competitive mode (bool)
CTFGameRules::SetStalemate
only has args 1-3 ofCTFGameRules::SetWinningTeam
The text was updated successfully, but these errors were encountered: