mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 06:23:20 +00:00
Updates
This commit is contained in:
parent
fd2367f41f
commit
79d37bdd34
45 changed files with 5587 additions and 3877 deletions
|
@ -213,6 +213,7 @@ public void Event_GamemodeChange(ConVar cvar, const char[] oldValue, const char[
|
|||
HookEvent("player_bot_replace", Event_PlayerToBot);
|
||||
HookEvent("player_ledge_grab", Event_LedgeGrab);
|
||||
AddCommandListener(OnGoAwayFromKeyboard, "go_away_from_keyboard");
|
||||
InitGamemode();
|
||||
} else if(!lateLoaded) {
|
||||
cvarStorage.Restore();
|
||||
delete cvarStorage;
|
||||
|
@ -462,7 +463,8 @@ Action Timer_SpawnBots(Handle h, int max) {
|
|||
if(AddSurvivor()) {
|
||||
count++;
|
||||
return Plugin_Continue;
|
||||
} else {
|
||||
} else if(count < 0) {
|
||||
// Fail if we couldnt make enough bots
|
||||
PrintToChatAll("GUESS WHO: FATAL ERROR: AddSurvivor() failed");
|
||||
LogError("Guess Who: Fatal Error: AddSurvivor() failed");
|
||||
count = 0;
|
||||
|
@ -561,6 +563,7 @@ Action Timer_WaitForStart(Handle h) {
|
|||
Game.State = State_Starting;
|
||||
Game.Tick = 0;
|
||||
Game.MapTime = RoundFloat(seedTime);
|
||||
Game.PopulateCoins();
|
||||
CreateTimer(seedTime, Timer_StartSeeker);
|
||||
return Plugin_Stop;
|
||||
}
|
||||
|
@ -585,6 +588,7 @@ Action Timer_StartSeeker(Handle h) {
|
|||
Action Timer_TimesUp(Handle h) {
|
||||
Game.Broadcast("The seeker ran out of time. Hiders win!");
|
||||
Game.End(State_HidersWin);
|
||||
timesUpTimer = null;
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue