Update eventqueuefix.sp

This commit is contained in:
deadw1nter 2021-04-11 14:05:48 +08:00 committed by GitHub
parent 62f39af2dc
commit 66765f40ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,7 @@ public Plugin myinfo =
public void OnPluginStart() public void OnPluginStart()
{ {
g_bBhopTimer = false;
LoadDHooks(); LoadDHooks();
HookEntityOutput("trigger_multiple", "OnTrigger", OnTrigger); HookEntityOutput("trigger_multiple", "OnTrigger", OnTrigger);
} }
@ -62,18 +63,18 @@ public void OnAllPluginsLoaded()
if(GetFeatureStatus(FeatureType_Native, "Shavit_GetBhopStyle") != FeatureStatus_Unknown) if(GetFeatureStatus(FeatureType_Native, "Shavit_GetBhopStyle") != FeatureStatus_Unknown)
{ {
g_bBhopTimer = true; g_bBhopTimer = true;
} else g_bBhopTimer = false; }
if(GetFeatureStatus(FeatureType_Native, "Shavit_GetClientTimescale") != FeatureStatus_Unknown) if(GetFeatureStatus(FeatureType_Native, "Shavit_GetClientTimescale") != FeatureStatus_Unknown)
{ {
g_bBhopTimer = true; g_bBhopTimer = true;
} else g_bBhopTimer = false; }
//This is the latest added native, so we check this one last. //This is the latest added native, so we check this one last.
if(GetFeatureStatus(FeatureType_Native, "Shavit_GetStyleSettingFloat") != FeatureStatus_Unknown) if(GetFeatureStatus(FeatureType_Native, "Shavit_GetStyleSettingFloat") != FeatureStatus_Unknown)
{ {
g_bBhopTimer = true; g_bBhopTimer = true;
} else g_bBhopTimer = false; }
if(g_bBhopTimer) if(g_bBhopTimer)
{ {