Permalink
Browse files

Rename TurretCore to turret_core (fix loading issue)

  • Loading branch information...
Bara committed May 18, 2018
1 parent 5635527 commit b56600105a9543f6503d210ded5ba70c66ba4955
Showing with 5 additions and 5 deletions.
  1. +1 −1 addons/sourcemod/scripting/ttt/ttt_turret.sp
  2. +4 −4 addons/sourcemod/scripting/turret_core.sp
@@ -67,7 +67,7 @@ public void TTT_OnItemsReset()
void RegisterItem()
{
if(!LibraryExists("TurretCore"))
if(!LibraryExists("turret_core"))
{
TTT_RemoveCustomItem(SHORT_NAME);
SetFailState("Can't find turret_core.smx! This file will be provided with TTT.");
@@ -36,7 +36,6 @@ ConVar g_cRate = null;
ConVar g_cCheckTeam = null;
ConVar g_cDistance = null;
public void OnPluginStart()
{
//ConVar
@@ -53,8 +52,6 @@ public void OnPluginStart()
HookEvent("round_start", Event_RoundStart);
RegAdminCmd("testturret", CreateTurrettest,ADMFLAG_ROOT);
g_hOnDead = CreateGlobalForward("Turret_OnTurretDead", ET_Event, Param_Cell, Param_Cell);
}
@@ -510,8 +507,11 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
CreateNative("CreateTurret", Native_CreateTurret);
CreateNative("RemoveTurret", Native_RemovePlayerTurret);
CreateNative("SetTurretCanAttackClient", Native_SetTurretCanAttackClient);
g_hOnDead = CreateGlobalForward("Turret_OnTurretDead", ET_Event, Param_Cell, Param_Cell);
RegPluginLibrary("TurretCore");
RegPluginLibrary("turret_core");
return APLRes_Success;
}

0 comments on commit b566001

Please sign in to comment.