Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified addons/sourcemod/plugins/optional/caster_assister.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/optional/caster_system.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/optional/readyup.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/optional/specrates.smx
Binary file not shown.
14 changes: 8 additions & 6 deletions addons/sourcemod/scripting/caster_assister.sp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

#include <sourcemod>
#include <sdktools>

#undef REQUIRE_PLUGIN
#include <caster_system>
#define MAX_SPEED 2
#define REQUIRE_PLUGIN

bool readyUpIsAvailable;
#define MAX_SPEED 2
bool g_cvCasterSystem;

public Plugin myinfo =
{
Expand Down Expand Up @@ -35,28 +37,28 @@ public void OnPluginStart()

public void OnAllPluginsLoaded()
{
readyUpIsAvailable = LibraryExists("caster_system");
g_cvCasterSystem = LibraryExists("caster_system");
}

public void OnLibraryRemoved(const char[] name)
{
if (StrEqual(name, "caster_system"))
{
readyUpIsAvailable = false;
g_cvCasterSystem = false;
}
}

public void OnLibraryAdded(const char[] name)
{
if (StrEqual(name, "caster_system"))
{
readyUpIsAvailable = true;
g_cvCasterSystem = true;
}
}

public void OnClientPutInServer(int client)
{
if (readyUpIsAvailable && IsClientCaster(client))
if (g_cvCasterSystem && bCaster(kClient, kGet, client))
{
FakeClientCommand(client, "sm_spechud");
}
Expand Down
Loading