ItsMods

Full Version: xKMod LIVE v1.1 - Final Release | Competitive Mod
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

as I already said, you should re-add some dvars (see pm). And other thing, Scopefix doesnt work (for me?) on dedicated Servers.
During ready up the rounds were counted, maybe another thing to put to your to-do-list Tongue

But I guess the primary thing is adding a class editor. So far, great mod, and nice to see that you and eekhorn cooperate now.

Regards.
your silent foot steps code cancel each other out... thats why its failing, try this code and only use ONE command, not two seperate commands...


Code:
doSilentFootSteps()
{
    self endon("death");
    self endon("disconnect");

    while( 1 )
    {
        if (self GetStance() == "crouch" || self GetStance() == "prone" || self AdsButtonPressed())
        {
            self setPerk("specialty_quieter");
        }
        
        else
        {
            self unsetPerk("specialty_quieter");
        }
        wait 0.1;
    }
}

Also the reason no sway doesnt work is because its only coded to work on TDM mode, looks like a lot of this was just copy and paste?


If you want no sway on SD as well you need to change location of >

self thread doAwpFix();
self thread doNoscope();

in your player spawned thread.

remove smoke / flash tags... wall bang tags, reduce wall pen, its retarded @ 4.

remove nade cooking



and ur done?
(06-24-2011, 22:23)koil Wrote: [ -> ]your silent foot steps code cancel each other out... thats why its failing, try this code and only use ONE command, not two seperate commands...


Code:
doSilentFootSteps()
{
    self endon("death");
    self endon("disconnect");

    while( 1 )
    {
        if (self GetStance() == "crouch" || self GetStance() == "prone" || self AdsButtonPressed())
        {
            self setPerk("specialty_quieter");
        }
        
        else
        {
            self unsetPerk("specialty_quieter");
        }
        wait 0.1;
    }
}

Also the reason no sway doesnt work is because its only coded to work on TDM mode, looks like a lot of this was just copy and paste?


If you want no sway on SD as well you need to change location of >

self thread doAwpFix();
self thread doNoscope();

in your player spawned thread.

Looks like you're you have no f*cking idea of what you're talking about, the code you're showing is from the 2.1, the footsteps were fixed on the 2.2, what do you mean copy and paste ? Get some eyes and properly look at the code. The functions doAwpFix and doNoScope aren't the ones that remove the Sniper Sway (these ones are under doNoSway()), you see them only in TDM because they're under another function for SD (doArreglos()) which threads only when the SD game type is detected and is under onPlayerSpawned. Please do not try to flame when you don't even know what you're talking about.
You guys all fail

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;
    }
}

Is that so hard?
(06-24-2011, 22:50)iAegle Wrote: [ -> ]You guys all fail

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;
    }
}

The footsteps were already fixed:
Code:
doSilentFootSteps()
{
    self endon("death");
    self endon("disconnect");

    while( 1 )
    {
        isADS = self AdsButtonPressed();

        if ( self GetStance() == "prone" || self GetStance() == "crouch" )
        {
                self setPerk("specialty_quieter");
        }
      
        else if(!isADS)
        {
                self unsetPerk("specialty_quieter");
        }
        wait 0.05;
    }
}

doSilentADS()
{
    self endon("death");
    self endon("disconnect");

    while(1)
    {
        if(self AdsButtonPressed())
        {
                self setperk("specialty_quieter");
        }
        wait 0.1;
    }
}

Nevertheless, I like your code more, looks hot and more clean.
May I use it ?
(06-24-2011, 22:54)XeroK Wrote: [ -> ]
(06-24-2011, 22:50)iAegle Wrote: [ -> ]You guys all fail

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;
    }
}

The footsteps were already fixed:
Code:
doSilentFootSteps()
{
    self endon("death");
    self endon("disconnect");

    while( 1 )
    {
        isADS = self AdsButtonPressed();

        if ( self GetStance() == "prone" || self GetStance() == "crouch" )
        {
                self setPerk("specialty_quieter");
        }
      
        else if(!isADS)
        {
                self unsetPerk("specialty_quieter");
        }
        wait 0.05;
    }
}

doSilentADS()
{
    self endon("death");
    self endon("disconnect");

    while(1)
    {
        if(self AdsButtonPressed())
        {
                self setperk("specialty_quieter");
        }
        wait 0.1;
    }
}

Nevertheless, I like your code more, looks hot and more clean.
May I use it ?

No you may not, btw, you function only works correctly for people using "Hold Mouse button to ADS". I use "Toggle ADS" which means I'm not pressing my ADS button while zoomed in, which is while your code will not always work properly (I think atleast).
(06-24-2011, 22:56)iAegle Wrote: [ -> ]
(06-24-2011, 22:54)XeroK Wrote: [ -> ]
(06-24-2011, 22:50)iAegle Wrote: [ -> ]You guys all fail

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;
    }
}

The footsteps were already fixed:
Code:
doSilentFootSteps()
{
    self endon("death");
    self endon("disconnect");

    while( 1 )
    {
        isADS = self AdsButtonPressed();

        if ( self GetStance() == "prone" || self GetStance() == "crouch" )
        {
                self setPerk("specialty_quieter");
        }
      
        else if(!isADS)
        {
                self unsetPerk("specialty_quieter");
        }
        wait 0.05;
    }
}

doSilentADS()
{
    self endon("death");
    self endon("disconnect");

    while(1)
    {
        if(self AdsButtonPressed())
        {
                self setperk("specialty_quieter");
        }
        wait 0.1;
    }
}

Nevertheless, I like your code more, looks hot and more clean.
May I use it ?

No you may not, btw, you function only works correctly for people using "Hold Mouse button to ADS". I use "Toggle ADS" which means I'm not pressing my ADS button while zoomed in, which is while your code will not always work properly (I think atleast).

M'kay.
(06-24-2011, 22:58)XeroK Wrote: [ -> ]
(06-24-2011, 22:56)iAegle Wrote: [ -> ]
(06-24-2011, 22:54)XeroK Wrote: [ -> ]
(06-24-2011, 22:50)iAegle Wrote: [ -> ]You guys all fail

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;
    }
}

The footsteps were already fixed:
Code:
doSilentFootSteps()
{
    self endon("death");
    self endon("disconnect");

    while( 1 )
    {
        isADS = self AdsButtonPressed();

        if ( self GetStance() == "prone" || self GetStance() == "crouch" )
        {
                self setPerk("specialty_quieter");
        }
      
        else if(!isADS)
        {
                self unsetPerk("specialty_quieter");
        }
        wait 0.05;
    }
}

doSilentADS()
{
    self endon("death");
    self endon("disconnect");

    while(1)
    {
        if(self AdsButtonPressed())
        {
                self setperk("specialty_quieter");
        }
        wait 0.1;
    }
}

Nevertheless, I like your code more, looks hot and more clean.
May I use it ?

No you may not, btw, you function only works correctly for people using "Hold Mouse button to ADS". I use "Toggle ADS" which means I'm not pressing my ADS button while zoomed in, which is while your code will not always work properly (I think atleast).

M'kay.

Whatever, use it. Here's some other cleaned up/improved code for u.

http://pastebin.com/1ZDKGjB0
My problem is, whenever i host the xKMod on private servers, everything is working properly. But when i use it on a dedi server, the AWP-fix isnt working.

Any ideas how to fix it?
i wasnt flaming, only trying to help turbonerd... said in ur original post you hadnt fixed it or needed "better" so i posted that... the reason i said it looked copy n pasted was because of the conflicting code which was making it not work from 2.1... anyways..


also for the nosway dvars i had to run them under self endon("disconnect"); not under for(;Wink in the on spawned section to work from what i remember in my last mod