added timer so people can walk during the intermission
This commit is contained in:
parent
3589dd66a3
commit
924ffd318c
@ -991,12 +991,26 @@ public Action CS_OnTerminateRound(float &delay, CSRoundEndReason &reason)
|
|||||||
InitiateVote(MapChange_Instant); //feature so mapvote happens at actual mapend
|
InitiateVote(MapChange_Instant); //feature so mapvote happens at actual mapend
|
||||||
}
|
}
|
||||||
delay = float(total_time);
|
delay = float(total_time);
|
||||||
|
CreateTimer(0.1, Timer_set_move_type);
|
||||||
return Plugin_Changed;
|
return Plugin_Changed;
|
||||||
}
|
}
|
||||||
g_DidRoundTerminate = false;
|
g_DidRoundTerminate = false;
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Action Timer_set_move_type(Handle hTimer, Handle dp)
|
||||||
|
{
|
||||||
|
for (int i = 1; i < MaxClients; i++)
|
||||||
|
{
|
||||||
|
if (IsValidClient(i))
|
||||||
|
{
|
||||||
|
SetEntityMoveType(i, MOVETYPE_WALK);
|
||||||
|
//should allow people to run around freely by overwriting pPlayer->AddFlag( FL_FROZEN ); line 3337 in cs_gamerules.cpp
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Plugin_Handled;
|
||||||
|
}
|
||||||
|
|
||||||
public Action Timer_fall_back_map_switch(Handle hTimer, Handle dp)
|
public Action Timer_fall_back_map_switch(Handle hTimer, Handle dp)
|
||||||
{
|
{
|
||||||
ForceChangeLevel("ze_random_v9", "nobody voted at mapvote");
|
ForceChangeLevel("ze_random_v9", "nobody voted at mapvote");
|
||||||
|
Loading…
Reference in New Issue
Block a user