-
Notifications
You must be signed in to change notification settings - Fork 6
Description
nosoop — Today at 4:48 PM
feel free to raise an issue for it in tf2utils if you want; was planning on adding [a function to force a team win]
... 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 called SetWinningTeam and SetStatemate
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 of CTFGameRules::SetWinningTeam