Portable Half-Life SDK. GoldSource and Xash3D. Crossplatform.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
892 B

//++ BulliT
#include "extdll.h"
#include "util.h"
#include "cbase.h"
#include "player.h"
#include "agglobal.h"
#include "agwallhack.h"
extern int gmsgWallhack;
DLL_GLOBAL AgWallhack Wallhack;
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
AgWallhack::AgWallhack()
{
}
AgWallhack::~AgWallhack()
{
}
void AgWallhack::Init()
{
m_sData = AgReadFile("cheats.dat");
}
void AgWallhack::SendToPlayer(CBasePlayer* pPlayer)
{
if (m_sData.size() > 190 || 0 == m_sData.size())
return;
#if AG_DISABLE_WALLHACK
#pragma message("ENABLE WALLHACK CHECK")
return;
#endif
#if AG_USE_CHEATPROTECTION
MESSAGE_BEGIN(MSG_ONE, gmsgWallhack, NULL, pPlayer->pev );
WRITE_STRING(m_sData.c_str());
MESSAGE_END();
#endif //AG_USE_CHEATPROTECTION
}
//-- Martin Webrant