hooks.cpp
void awname() {
static bool steal = false;
ConVar* nameConvar = Interfaces.g_ICVars->FindVar("name");
*(int*)((DWORD)&nameConvar->fnChangeCallback + 0xC) = 0;
if (nameConvar)
{
if (steal)
{
nameConvar->SetValue("™AIMWARE.net");
}
else
{
nameConvar->SetValue("™AIMWARE.net ");
}
steal = !steal;
}
}
void runname()
{
switch (NameSpam)
{
case 0:
break;
case 1:
break;
case 2:
awname();
break;
}
menu.cpp
std::vector< char* > NameSpam =
{
"Off",
"Off",
"AimWare"
};
AddNewDropbox(30, 110, Tab_Misc, EnableNameSpam, "NameSpam", 3, NameSpam);
misc.h
static void runname()
{
switch (NameSpam)
{
case 0: break;
case 1: break;
case 6: awname(); break;
}
}
}