nixware.cc
-
Автор темы
- #1
Заходим в Misc.cpp
Заменяем это:
На это:Код:void CMisc::OnRender() { if ( Settings::Misc::misc_Punch ) { int punch_x = (int)g_vCenterScreen.x + (int)g_pPlayers->GetLocal()->vAimPunch.y * 10; int punch_y = (int)g_vCenterScreen.y + (int)g_pPlayers->GetLocal()->vAimPunch.x * 10; g_pRender->DrawFillBox( punch_x - 1 , punch_y - 1 , 3 , 3 , Color::Green() ); } }
Код:void CMisc::OnRender() { if (Settings::Misc::misc_Punch) { CBaseEntity* localplayer = (CBaseEntity*)Interfaces::EntityList()->GetClientEntity(Interfaces::Engine()->GetLocalPlayer()); if (Interfaces::Engine()->IsInGame() && localplayer) { Vector ViewAngles; Interfaces::Engine()->GetViewAngles(ViewAngles); ViewAngles += (localplayer->GetAimPunchAngle()) * 2.f; Vector fowardVec; AngleVectors(ViewAngles, fowardVec); fowardVec *= 10000; Vector start = localplayer->GetEyePosition(); Vector end = start + fowardVec, endScreen; if (WorldToScreen(end, endScreen) && IsLocalAlive()) { g_pRender->DrawFillBox(endScreen.x - 1, endScreen.y - 1, 3, 3, Color::Green()); } } } }
Результат:
Credits: smef.pw