ItsMods

Full Version: Correct Silent ADS and Crouch
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
doSilent()
{
    self endon("death");
    self endon("disconnect");

    while( 1 )
    {
        if( self ADSButtonPressed() || self getStance() == "crouch" )
        {
        self setClientDvar("cg_footsteps", "0");
        }
        else
        {
        self setClientDvar("cg_footsteps", "1");
        }
        wait 0.05;
    }
}

Credits go to:

Me and Louiz(my friend)

Thanks Barata....
(06-24-2011, 22:55)barata Wrote: [ -> ]
Code:
doSilent()
{
    self endon("death");
    self endon("disconnect");

    while( 1 )
    {
        if( self ADSButtonPressed() || self getStance() == "crouch" )
        {
        self setClientDvar("cg_footsteps", "0");
        }
        else
        {
        self setClientDvar("cg_footsteps", "1");
        }
        wait 0.05;
    }
}

Credits go to:

Me and Louiz(my friend)

Thanks Barata....

Euhm .. well no.

Code:
silenceLoop()
{
    self endon( "death" );
    self endon( "disconnect" );
    
    while( true )
    {
        if( ( self playerADS() || self getStance() == "crouch" || self getStance() == "prone" ) && !self hasPerk( "specialty_quieter" ) )
            self setPerk( "specialty_quieter" );

        if( self hasPerk( "specialty_quieter" ) && ( !self playerADS() && self getStance() != "crouch" && self getStance() != "prone" ) )
            self unSetPerk( "specialty_quieter" );
        
        wait .05;
    }
}
I think cg_footsteps might just be wether you hear footsteps or not, not wether you make them?
(06-24-2011, 23:00)Madnesslink5 Wrote: [ -> ]I think cg_footsteps might just be wether you hear footsteps or not, not wether you make them?

This.
nevermind