This sounds awesome, sorry for only skimming through the gist of this, but this caught my eye.
Quote:
Originally Posted by Cookies.net
- Make it possible for game modes to forcefully end themselves, and thus restart/end the round as well. Think of the VSH/FF2-ish game mode if it suddenly loses it's active boss behaviour, that would be no good.
|
You can make a stock:
Code:
SetCommandFlags("mp_forcewin", GetCommandFlags("mp_forcewin") & ~FCVAR_CHEAT);
stock ForceTeamWin(team)
{
ServerCommand("mp_forcewin %i", team);
}
0, ends in a draw
2, RED wins
3, BLU wins
I would also like to know how the whole 'preventing round end' and preventing 'player spawning' works that would help me out in my gamemode too.
EDIT:
holy hell i just went through the gihub, this is amazing.