Permalink
Browse files

Switch back to OnAllPluginsLoaded instead of OnConfigsExecuted

  • Loading branch information...
Bara committed May 18, 2018
1 parent 1cc8240 commit 89b62c7adf046d62a5bb1ff2e9894e99ffbb9fd7
Showing with 227 additions and 207 deletions.
  1. +0 −1 addons/sourcemod/scripting/ttt/core/globals.sp
  2. +1 −0 addons/sourcemod/scripting/ttt/ttt.sp
  3. +1 −1 addons/sourcemod/scripting/ttt/ttt_blackout.sp
  4. +1 −1 addons/sourcemod/scripting/ttt/ttt_buyRoles.sp
  5. +4 −1 addons/sourcemod/scripting/ttt/ttt_c4_jihad.sp
  6. +4 −2 addons/sourcemod/scripting/ttt/ttt_decoy_body.sp
  7. +4 −1 addons/sourcemod/scripting/ttt/ttt_decoy_teleport.sp
  8. +4 −1 addons/sourcemod/scripting/ttt/ttt_dnascanner.sp
  9. +0 −3 addons/sourcemod/scripting/ttt/ttt_dronescameras.sp
  10. +1 −1 addons/sourcemod/scripting/ttt/ttt_dropWeapons.sp
  11. +4 −1 addons/sourcemod/scripting/ttt/ttt_fakebody.sp
  12. +0 −3 addons/sourcemod/scripting/ttt/ttt_futuristicgrenades.sp
  13. +1 −1 addons/sourcemod/scripting/ttt/ttt_healthshot.sp
  14. +1 −1 addons/sourcemod/scripting/ttt/ttt_iceknife.sp
  15. +1 −1 addons/sourcemod/scripting/ttt/ttt_id.sp
  16. +1 −1 addons/sourcemod/scripting/ttt/ttt_knockout.sp
  17. +1 −1 addons/sourcemod/scripting/ttt/ttt_martydom.sp
  18. +1 −1 addons/sourcemod/scripting/ttt/ttt_nightvision.sp
  19. +0 −3 addons/sourcemod/scripting/ttt/ttt_parachute.sp
  20. +1 −1 addons/sourcemod/scripting/ttt/ttt_poison_smoke.sp
  21. +4 −1 addons/sourcemod/scripting/ttt/ttt_radar.sp
  22. +170 −162 addons/sourcemod/scripting/ttt/ttt_random_teleport.sp
  23. +1 −1 addons/sourcemod/scripting/ttt/ttt_shop.sp
  24. +1 −1 addons/sourcemod/scripting/ttt/ttt_silent_awp.sp
  25. +4 −0 addons/sourcemod/scripting/ttt/ttt_sprint.sp
  26. +1 −1 addons/sourcemod/scripting/ttt/ttt_stations.sp
  27. +0 −3 addons/sourcemod/scripting/ttt/ttt_tactical_shield.sp
  28. +4 −1 addons/sourcemod/scripting/ttt/ttt_tagrenade.sp
  29. +4 −1 addons/sourcemod/scripting/ttt/ttt_taser.sp
  30. +4 −1 addons/sourcemod/scripting/ttt/ttt_teleporter.sp
  31. +1 −1 addons/sourcemod/scripting/ttt/ttt_tracer.sp
  32. +0 −3 addons/sourcemod/scripting/ttt/ttt_tripmines.sp
  33. +0 −3 addons/sourcemod/scripting/ttt/ttt_turret.sp
  34. +1 −1 addons/sourcemod/scripting/ttt/ttt_wallhack.sp
  35. +1 −1 addons/sourcemod/scripting/ttt/ttt_weapons.sp
@@ -85,7 +85,6 @@ int g_iBadNameCount = 0;
Database g_dDB = null;
bool g_bReceivingLogs[MAXPLAYERS + 1] = { false, ... };
ArrayList g_aLogs = null;
@@ -2466,6 +2466,7 @@ public void OnClientDisconnect(int client)
{
g_bKarma[client] = false;
g_bFound[client] = true;
g_bAlive[client] = false;
if (g_cTranfserArmor.BoolValue)
{
@@ -57,7 +57,7 @@ public void OnPluginStart()
HookEvent("round_end", Event_RoundEnd);
}
public void OnConfigsExecuted()
public void OnAllPluginsLoaded()
{
SetupBlackout();
@@ -66,7 +66,7 @@ public void OnPluginStart()
TTT_EndConfig();
}
public void OnConfigsExecuted()
public void OnAllPluginsLoaded()
{
RegisterItem();
}
@@ -164,7 +164,10 @@ public void OnConfigsExecuted()
char sBuffer[128];
g_cPlantSeconds.GetString(sBuffer, sizeof(sBuffer));
g_iPlantSecondsCount = ExplodeString(sBuffer, ",", g_sPlantSeconds, sizeof(g_sPlantSeconds), sizeof(g_sPlantSeconds[]));
}
public void OnAllPluginsLoaded()
{
RegisterItem();
}
@@ -88,9 +88,11 @@ public void OnConfigsExecuted()
{
g_cPluginTag = FindConVar("ttt_plugin_tag");
g_cPluginTag.AddChangeHook(OnConVarChanged);
g_cPluginTag.GetString(g_sPluginTag, sizeof(g_sPluginTag));
g_cPluginTag.GetString(g_sPluginTag, sizeof(g_sPluginTag));
}
public void OnAllPluginsLoaded()
{
RegisterItem();
}
@@ -76,7 +76,10 @@ public void OnConfigsExecuted()
g_cPluginTag = FindConVar("ttt_plugin_tag");
g_cPluginTag.AddChangeHook(OnConVarChanged);
g_cPluginTag.GetString(g_sPluginTag, sizeof(g_sPluginTag));
}
public void OnAllPluginsLoaded()
{
RegisterItem();
}
@@ -55,7 +55,10 @@ public void OnConfigsExecuted()
g_cPluginTag = FindConVar("ttt_plugin_tag");
g_cPluginTag.AddChangeHook(OnConVarChanged);
g_cPluginTag.GetString(g_sPluginTag, sizeof(g_sPluginTag));
}
public void OnAllPluginsLoaded()
{
RegisterItem();
}
@@ -64,10 +64,7 @@ public void OnAllPluginsLoaded()
SetFailState("You must have this plugin as base plugin for this items: https://forums.alliedmods.net/showthread.php?p=2537127");
return;
}
}
public void OnConfigsExecuted()
{
RegisterItem();
}
@@ -89,7 +89,7 @@ public Action OnWeapon(int client, int weapon)
return Plugin_Continue;
}
public void OnConfigsExecuted()
public void OnAllPluginsLoaded()
{
RegisterItem();
}
@@ -84,7 +84,10 @@ public void OnConfigsExecuted()
g_cPluginTag = FindConVar("ttt_plugin_tag");
g_cPluginTag.AddChangeHook(OnConVarChanged);
g_cPluginTag.GetString(g_sPluginTag, sizeof(g_sPluginTag));
}
public void OnAllPluginsLoaded()
{
RegisterItem();
}
@@ -160,10 +160,7 @@ public void OnAllPluginsLoaded()
SetFailState("You must have this plugin as base plugin for this items: https://forums.alliedmods.net/showthread.php?p=2499362");
return;
}
}
public void OnConfigsExecuted()
{
RegisterItem();
}
@@ -83,7 +83,7 @@ public Action Event_PlayerSpawn(Event event, const char[] name, bool dontBroadca
}
}
public void OnConfigsExecuted()
public void OnAllPluginsLoaded()
{
RegisterItem();
}
@@ -161,7 +161,7 @@ public Action Event_PlayerSpawn(Event event, const char[] name, bool dontBroadca
}
}
public void OnConfigsExecuted()
public void OnAllPluginsLoaded()
{
RegisterItem();
}
@@ -122,7 +122,7 @@ public Action Event_PlayerSpawn(Event event, const char[] name, bool dontBroadca
}
}
public void OnConfigsExecuted()
public void OnAllPluginsLoaded()
{
RegisterItem();
}
@@ -134,7 +134,7 @@ public void OnLibraryRemoved(const char[] name)
}
}
public void OnConfigsExecuted()
public void OnAllPluginsLoaded()
{
RegisterItem();
}
@@ -76,7 +76,7 @@ public void OnClientDisconnect(int client)
g_bHasMartydom[client] = false;
}
public void OnConfigsExecuted()
public void OnAllPluginsLoaded()
{
RegisterItem();
}
@@ -45,7 +45,7 @@ public void OnPluginStart()
HookEvent("player_death", Event_PlayerDeath);
}
public void OnConfigsExecuted()
public void OnAllPluginsLoaded()
{
RegisterItem();
}
@@ -54,10 +54,7 @@ public void OnAllPluginsLoaded()
SetFailState("You must have this plugin as base plugin for this item: https://forums.alliedmods.net/showthread.php?p=2534158");
return;
}
}
public void OnConfigsExecuted()
{
RegisterItem();
}
@@ -57,7 +57,7 @@ public void OnPluginStart()
HookEvent("smokegrenade_expired", Event_SmokeExpired);
}
public void OnConfigsExecuted()
public void OnAllPluginsLoaded()
{
RegisterItem();
}
@@ -92,7 +92,10 @@ public void OnConfigsExecuted()
g_cPluginTag = FindConVar("ttt_plugin_tag");
g_cPluginTag.AddChangeHook(OnConVarChanged);
g_cPluginTag.GetString(g_sPluginTag, sizeof(g_sPluginTag));
}
public void OnAllPluginsLoaded()
{
RegisterItem();
}
Oops, something went wrong.

6 comments on commit 89b62c7

@DocReni

This comment has been minimized.

DocReni replied May 18, 2018

Menu won't load now. No errors in console like before either.

@Bara

This comment has been minimized.

Owner

Bara replied May 18, 2018

Try latest commit, it works fine with the same metamod and sourcemod version:
ttt_shop_18-05-18.log

@DocReni

This comment has been minimized.

DocReni replied May 18, 2018

Which versions of Meta and Source are you using?

I'm using:
Metamod:Source version 1.10.7-dev
SourceMod Version: 1.8.0.6040

@Bara

This comment has been minimized.

Owner

Bara replied May 18, 2018

I've tested it with the same version.

@DocReni

This comment has been minimized.

DocReni replied May 18, 2018

Got it working. Only issue now is that the shop menu show's default configs for items and their prices until next round loads up. This happens on both a restart of server as well as starting after it was completely stopped.

@Bara

This comment has been minimized.

Owner

Bara replied May 18, 2018

Okay, try build id 1649 if it's done with building.

Please sign in to comment.