PDA

View Full Version : Consistency Bypass[c++]



STR
27-08-07, 05:09
void cMat::svConsistencyBypass()
{
ConCommandBase* Cvar = HalFLife2.m_pCvar->FindVar("sv_consistency" );


if(Cvar)
{
if(Cvar->IsBitSet(FCVAR_CHEAT))
Cvar->m_nFlags &= ~FCVAR_CHEAT;

if(Cvar->IsBitSet(FCVAR_REPLICATED))
Cvar->m_nFlags &= ~FCVAR_REPLICATED;

if(Cvar->IsBitSet(FCVAR_PROTECTED))
Cvar->m_nFlags &= ~FCVAR_PROTECTED;

if(Cvar->IsBitSet(FCVAR_SPONLY))
Cvar->m_nFlags &= ~FCVAR_SPONLY;
}

}

void cMat::ConsistencyBP( )
{
ConVar *consistency = HalFLife2.m_pCvar->FindVar( "sv_consistency" );
consistency->SetValue(0);
}

Megamorph
19-10-07, 11:56
Hey gys,

i really cant get an idea what does this function do.

Is it something to bypass VAC or is it just NoSmoke (cause of cMat)?
...or something very different?

Megamorph

HELLO:)
20-10-07, 09:53
Hey gys,

i really cant get an idea what does this function do.

Is it something to bypass VAC or is it just NoSmoke (cause of cMat)?
...or something very different?

Megamorph
It's something to bypass constistency, some crap that valve made to prevent us from modifing models files
btw, u don't really need to use thus Cvars->IsBitSet to get it to work.. it works fine without ;D

Megamorph
20-10-07, 06:18
ok nice, thx

prda
21-10-07, 12:40
how do you use this command?

HELLO:)
21-10-07, 08:00
how do you use this command?
u mean the sv_constistency or the source code?
for the command, 0 is off and 1 is on (mfg im so 1337)