#include "CVars.h"
#include "Trigger.h"
void CTrigger::Main(CUserCmd* cmd)
{
IClientEntity* m_pLokal = (IClientEntity*)Interfacez.EntList->GetClientEntiti(Interfacez.Engine->GetLocalPlayer());
if (GetAsyncKeyState(Snyd.CVarz->Trigger_ActivationKey))
{
int cross = m_pLokal->InCross();
if (cross > 0 && cross <= 64)
{
IClientEntity* target = (IClientEntity*)Interfacez.EntList->GetClientEntiti(cross);
if (!target->IsDormant() && target->GetTeamNum() != m_pLokal->GetTeamNum())
{
cmd->buttons |= IN_ATTACK;
}
}
}
};
#include "SDK.h"
class CSpiller;
class CTrigger
{
public:
void Main(CUserCmd* cmd);
private:
CUserCmd* cmd;
CSpiller* m_pLokal;
};
#include "CVars.h"
#include "Trigger.h"
void CTrigger::Main(CUserCmd* cmd)
{
IClientEntity* m_pLokal = (IClientEntity*)Interfacez.EntList->GetClientEntiti(Interfacez.Engine->GetLocalPlayer());
if (GetAsyncKeyState(Snyd.CVarz->Trigger_ActivationKey))
{
int cross = m_pLokal->InCross();
if (cross > 0 && cross <= 64)
{
IClientEntity* target = (IClientEntity*)Interfacez.EntList->GetClientEntiti(cross);
if (!target->IsDormant() && target->GetTeamNum() != m_pLokal->GetTeamNum())
{
cmd->buttons |= IN_ATTACK;
}
}
}
};