mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 11:28:26 +00:00
remove the round end remove, use mp_do_warmup_period 0
This commit is contained in:
parent
45ba502aa0
commit
7e02b24e9b
@ -439,7 +439,7 @@ public void UpdateHUD(int client)
|
|||||||
|
|
||||||
if(bStarted)
|
if(bStarted)
|
||||||
{
|
{
|
||||||
Format(sHintText, 512, "%s\nJumps: %d\t\tStyle: <font color='#%s'>%s</font>", sHintText, iJumps, gS_StyleHTMLColors[bsStyle], gS_BhopStyles[bsStyle]);
|
Format(sHintText, 512, "%s\nJumps: %d%s\tStyle: <font color='#%s'>%s</font>", sHintText, iJumps, (iJumps < 1000)? "\t":"", gS_StyleHTMLColors[bsStyle], gS_BhopStyles[bsStyle]);
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
@ -63,9 +63,6 @@ ConVar gCV_AutoRespawn = null;
|
|||||||
ConVar gCV_CreateSpawnPoints = null;
|
ConVar gCV_CreateSpawnPoints = null;
|
||||||
ConVar gCV_DisableRadio = null;
|
ConVar gCV_DisableRadio = null;
|
||||||
|
|
||||||
// game cvars
|
|
||||||
ConVar mp_ignore_round_win_conditions = null;
|
|
||||||
|
|
||||||
// dhooks
|
// dhooks
|
||||||
Handle gH_GetMaxPlayerSpeed = null;
|
Handle gH_GetMaxPlayerSpeed = null;
|
||||||
|
|
||||||
@ -144,9 +141,6 @@ public void OnPluginStart()
|
|||||||
|
|
||||||
AutoExecConfig();
|
AutoExecConfig();
|
||||||
|
|
||||||
// game cvars
|
|
||||||
mp_ignore_round_win_conditions = FindConVar("mp_ignore_round_win_conditions");
|
|
||||||
|
|
||||||
if(LibraryExists("dhooks"))
|
if(LibraryExists("dhooks"))
|
||||||
{
|
{
|
||||||
Handle hGameData = LoadGameConfigFile("shavit.games");
|
Handle hGameData = LoadGameConfigFile("shavit.games");
|
||||||
@ -175,8 +169,6 @@ public void OnPluginStart()
|
|||||||
|
|
||||||
public void OnMapStart()
|
public void OnMapStart()
|
||||||
{
|
{
|
||||||
CS_TerminateRound(10.0, CSRoundEnd_GameStart, true);
|
|
||||||
|
|
||||||
if(gCV_CreateSpawnPoints.BoolValue)
|
if(gCV_CreateSpawnPoints.BoolValue)
|
||||||
{
|
{
|
||||||
int iEntity = -1;
|
int iEntity = -1;
|
||||||
@ -832,15 +824,3 @@ public Action Player_Notifications(Event event, const char[] name, bool dontBroa
|
|||||||
|
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Action CS_OnTerminateRound(float &delay, CSRoundEndReason &reason)
|
|
||||||
{
|
|
||||||
int iTimeLeft = 0;
|
|
||||||
|
|
||||||
if(mp_ignore_round_win_conditions.BoolValue || (reason == CSRoundEnd_GameStart && GetMapTimeLeft(iTimeLeft) && iTimeLeft > 1 && (gCV_RespawnOnTeam.BoolValue || gCV_RespawnOnRestart.BoolValue)))
|
|
||||||
{
|
|
||||||
return Plugin_Handled;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Plugin_Continue;
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user