-
Автор темы
- #1
Supremacy has a problem with OnRenderStart, pasters seem to have no clue how to fix the crashing if scoped and in warmup so here is a fix.
C++:
void Hooks::OnRenderStart() {
g_hooks.m_view_render.GetOldMethod<OnRenderStart_t>(CViewRender::ONRENDERSTART)(this);
if (g_menu.main.visuals.fov.get()) {
if (g_cl.m_local && g_cl.m_local->m_bIsScoped()) {
if (g_menu.main.visuals.fov_scoped.get()) {
Weapon* activeWeapon = g_cl.m_local->GetActiveWeapon();
if (activeWeapon) {
int zoomLevel = activeWeapon->m_zoomLevel();
if (zoomLevel != 2) {
g_csgo.m_view_render->m_view.m_fov = g_menu.main.visuals.fov_amt.get();
}
else {
g_csgo.m_view_render->m_view.m_fov += 45.f;
}
}
}
}
else {
g_csgo.m_view_render->m_view.m_fov = g_menu.main.visuals.fov_amt.get();
}
}
if (g_menu.main.visuals.viewmodel_fov.get()) {
g_csgo.m_view_render->m_view.m_viewmodel_fov = g_menu.main.visuals.viewmodel_fov_amt.get();
}
}