Permalink
Browse files

Use CheckPlayerID stock

  • Loading branch information...
Bara committed Oct 25, 2018
1 parent 0d11665 commit 09d16d6d4ba4fc5b2cbd47bec877d76c453c4572
@@ -76,14 +76,7 @@ public void OnPluginStart()
public void OnConfigsExecuted()
{
ConVar cvar = FindConVar("mp_playerid");
if (cvar.IntValue != 2)
{
LogError("Fake Name and Invisible Name requires \"mp_playerid 2\". Both items has been unloaded!");
TTT_RemoveCustomItem(SHORT_NAME);
TTT_RemoveCustomItem(SHORT_NAME_INVI);
}
CheckPlayerID();
g_cPluginTag = FindConVar("ttt_plugin_tag");
g_cPluginTag.AddChangeHook(OnConVarChanged);
@@ -281,6 +274,11 @@ bool CheckPlayerID()
{
ConVar cvar = FindConVar("mp_playerid");
if (cvar == null)
{
return false;
}
if (cvar.IntValue == 2)
{
return true;
@@ -532,7 +532,7 @@ public void MissileThink(const char[] output, int caller, int activator, float d
CreateExplosion(caller);
}
/*Handle hTrace = TR_TraceRayFilterEx(fNadePos, fEnemyPos, MASK_PLAYERSOLID, RayType_Infinite, TR_DontHitSelf, caller);
/* Handle hTrace = TR_TraceRayFilterEx(fNadePos, fEnemyPos, MASK_PLAYERSOLID, RayType_Infinite, TR_DontHitSelf, caller);
int iTarget = -1;
if (TR_DidHit(hTrace))

0 comments on commit 09d16d6

Please sign in to comment.