Posts: 26
Threads: 0
Joined: May 2011
Reputation:
0
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
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.
Posts: 474
Threads: 67
Joined: May 2011
Reputation:
11
06-24-2011, 22:23
(This post was last modified: 06-24-2011, 22:31 by koil.)
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?
Posts: 438
Threads: 4
Joined: May 2011
Reputation:
23
06-24-2011, 22:45
(This post was last modified: 06-24-2011, 22:46 by XeroK.)
(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.
Posts: 1,830
Threads: 104
Joined: Jan 2011
Reputation:
46
06-24-2011, 22:50
(This post was last modified: 06-24-2011, 22:51 by iAegle.)
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?
Posts: 438
Threads: 4
Joined: May 2011
Reputation:
23
(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 ?
Posts: 1,830
Threads: 104
Joined: Jan 2011
Reputation:
46
(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).
Posts: 438
Threads: 4
Joined: May 2011
Reputation:
23
(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.
Posts: 1,830
Threads: 104
Joined: Jan 2011
Reputation:
46
(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
Posts: 2
Threads: 0
Joined: Jun 2011
Reputation:
0
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?
Posts: 474
Threads: 67
Joined: May 2011
Reputation:
11
06-25-2011, 01:42
(This post was last modified: 06-25-2011, 02:00 by koil.)
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(; in the on spawned section to work from what i remember in my last mod
|