namechange stuff + FIX aimbot zoomed bug
This commit is contained in:
parent
d75a2da2b8
commit
563062140b
@ -496,7 +496,7 @@ bool ShouldAim(CUserCmd* cmd) {
|
|||||||
if (g_pLocalPlayer->weapon()->m_iClassID == g_pClassID->CTFSniperRifle ||
|
if (g_pLocalPlayer->weapon()->m_iClassID == g_pClassID->CTFSniperRifle ||
|
||||||
g_pLocalPlayer->weapon()->m_iClassID == g_pClassID->CTFSniperRifleDecap) {
|
g_pLocalPlayer->weapon()->m_iClassID == g_pClassID->CTFSniperRifleDecap) {
|
||||||
// confused_nigga.jpg
|
// confused_nigga.jpg
|
||||||
return g_pLocalPlayer->bZoomed;
|
if (!g_pLocalPlayer->bZoomed) return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (only_can_shoot) {
|
if (only_can_shoot) {
|
||||||
|
@ -185,8 +185,9 @@ void FrameStageNotify_hook(void* thisptr, int stage) {
|
|||||||
}
|
}
|
||||||
if (stage == FRAME_NET_UPDATE_START) {
|
if (stage == FRAME_NET_UPDATE_START) {
|
||||||
static int next_name_change = 0;
|
static int next_name_change = 0;
|
||||||
if (next_name_change == 0) {
|
if (next_name_change <= 0 || need_name_change) {
|
||||||
need_name_change = true;
|
need_name_change = true;
|
||||||
|
next_name_change = 0;
|
||||||
} else next_name_change--;
|
} else next_name_change--;
|
||||||
if (force_name.convar->m_StringLength > 2 && need_name_change) {
|
if (force_name.convar->m_StringLength > 2 && need_name_change) {
|
||||||
INetChannel* ch = (INetChannel*)g_IEngine->GetNetChannelInfo();
|
INetChannel* ch = (INetChannel*)g_IEngine->GetNetChannelInfo();
|
||||||
@ -355,6 +356,7 @@ void LevelShutdown_hook(void* thisptr) {
|
|||||||
hacks::shared::aimbot::Reset();
|
hacks::shared::aimbot::Reset();
|
||||||
chat_stack::Reset();
|
chat_stack::Reset();
|
||||||
hacks::shared::spam::Reset();
|
hacks::shared::spam::Reset();
|
||||||
|
need_name_change = true;
|
||||||
if (force_name.convar->m_StringLength > 2) {
|
if (force_name.convar->m_StringLength > 2) {
|
||||||
//static ConVar* name_cv = g_ICvar->FindVar("name");
|
//static ConVar* name_cv = g_ICvar->FindVar("name");
|
||||||
INetChannel* ch = (INetChannel*)g_IEngine->GetNetChannelInfo();
|
INetChannel* ch = (INetChannel*)g_IEngine->GetNetChannelInfo();
|
||||||
|
Reference in New Issue
Block a user