PDA

View Full Version : NoScope



STR
27-08-07, 05:07
void cMat::NoScope()
{
IMaterial* scopearc = HalFLife2.m_pMaterialSystem->FindMaterial( "sprites\\scope_arc","ClientEffect textures");
IMaterial* scopelens = HalFLife2.m_pMaterialSystem->FindMaterial( "overlays\\scope_lens","ClientEffect textures");
scopearc->SetMaterialVarFlag( MATERIAL_VAR_NO_DRAW, true );
scopelens->SetMaterialVarFlag( MATERIAL_VAR_NO_DRAW, true );

}

v3n0m4
12-09-07, 09:33
and what about.



ConVar* cl_drawhud = Main.m_pCvar->FindVar( "cl_drawhud" );
if ( Main.m_pCheatCvars->vis_removals.GetBool() )
{
if (Main.m_pMyPlayer->GetLocalFov() == 40 ||
Main.m_pMyPlayer->GetLocalFov() == 15 ||
Main.m_pMyPlayer->GetLocalFov() == 10 )
{
if(cl_drawhud->GetBool())
cl_drawhud->SetValue(0);
}
else
{
if(!cl_drawhud->GetBool())
cl_drawhud->SetValue(1);
}
}
else
{
if(!cl_drawhud->GetBool())
cl_drawhud->SetValue(1);
}


:confused:

JAvEX
13-09-07, 05:22
Nice @if (Main.m_pMyPlayer->GetLocalFov() == 40... I guess I wasn't smart enough to think of that. I've been using the same method as fum1n since forcing cl_drawhud 0 with without GetLocalFov would give me no hud at all, LOL. Nice because a consistency bypass isn't needed. o_O

STR
13-09-07, 06:22
and what about.



ConVar* cl_drawhud = Main.m_pCvar->FindVar( "cl_drawhud" );
if ( Main.m_pCheatCvars->vis_removals.GetBool() )
{
if (Main.m_pMyPlayer->GetLocalFov() == 40 ||
Main.m_pMyPlayer->GetLocalFov() == 15 ||
Main.m_pMyPlayer->GetLocalFov() == 10 )
{
if(cl_drawhud->GetBool())
cl_drawhud->SetValue(0);
}
else
{
if(!cl_drawhud->GetBool())
cl_drawhud->SetValue(1);
}
}
else
{
if(!cl_drawhud->GetBool())
cl_drawhud->SetValue(1);
}
:confused:DISABLE YOUR LEETNESS or ill hack yuor interwebz