Raised This Month: $ Target: $400
 0% 

[CS:GO] Duck Spamming Fix .


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Xutax_Kamay
Member
Join Date: Feb 2016
Plugin ID:
5425
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Crouch spamming fix.
    Old 11-25-2016 , 01:30   [CS:GO] Duck Spamming Fix .
    Reply With Quote #1

    This fixes crouch spamming, could be useful for some people.
    Well, when I was doing my xdream surf server on cs:go (wich I rarely play), I noticed that there was some duck restriction..
    So after doing cl_pdump for dumping netvars and see what happened, I saw m_flDuckSpeed being close to 0.
    What could be done was pretty obvious (for coders), do the following:

    Code:
    public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon)
    {
    	if (!IsInGame(client)) 
    	{
    		return Plugin_Continue;
    	}
    
    	new Float:DuckSpeed = GetEntPropFloat(client, Prop_Data, "m_flDuckSpeed");
    	
    	if (DuckSpeed < 7.0)
    	{
    		SetEntPropFloat(client, Prop_Send, "m_flDuckSpeed", 7.0, 0);
    	}
    	
    	return Plugin_Continue;
    }
    I've posted the compiled plugin, maybe some people want it.. Or not. c:

    Don't forgot that sv_timebetweenducks needs to be set at 0!
    Attached Files
    File Type: sp Get Plugin or Get Source (duckfix.sp - 2981 views - 586 Bytes)
    Blocked Attachments
    File Type: smx duckfix.smx

    Last edited by Xutax_Kamay; 11-25-2016 at 03:24. Reason: posting .sp
    Xutax_Kamay is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 11-25-2016 , 01:43   Re: [CS:GO] Duck Spamming Fix .
    Reply With Quote #2

    When posting the compiled plugin you need to attach the source code also.
    Mitchell is offline
    Neuro Toxin
    Veteran Member
    Join Date: Oct 2013
    Location: { closing the void; }
    Old 11-25-2016 , 03:11   Re: [CS:GO] Duck Spamming Fix .
    Reply With Quote #3

    Wasn't there a cvar added to go back to the old behaviour?
    __________________
    Neuro Toxin is offline
    Xutax_Kamay
    Member
    Join Date: Feb 2016
    Old 11-25-2016 , 03:23   Re: [CS:GO] Duck Spamming Fix .
    Reply With Quote #4

    Quote:
    Originally Posted by Mitchell View Post
    When posting the compiled plugin you need to attach the source code also.
    Oh I thought the code that was there was enough, I'll try to edit my post.

    Quote:
    Originally Posted by Neuro Toxin View Post
    Wasn't there a cvar added to go back to the old behaviour?
    I've been searching for it but I didn't find it. Sadly.
    Xutax_Kamay is offline
    Neuro Toxin
    Veteran Member
    Join Date: Oct 2013
    Location: { closing the void; }
    Old 11-25-2016 , 03:55   Re: [CS:GO] Duck Spamming Fix .
    Reply With Quote #5

    – Added a 0.4 second cooldown to the crouch button to reduce the visual noise from spamming crouch in the air.
    — This is tunable via the convar sv_timebetweenducks.

    Edit:

    I believe setting this to 0.1 restores normal behaviour
    __________________

    Last edited by Neuro Toxin; 11-25-2016 at 03:59.
    Neuro Toxin is offline
    Xutax_Kamay
    Member
    Join Date: Feb 2016
    Old 11-25-2016 , 04:12   Re: [CS:GO] Duck Spamming Fix .
    Reply With Quote #6

    Quote:
    Originally Posted by Neuro Toxin View Post
    – Added a 0.4 second cooldown to the crouch button to reduce the visual noise from spamming crouch in the air.
    — This is tunable via the convar sv_timebetweenducks.

    Edit:

    I believe setting this to 0.1 restores normal behaviour
    Hm nop.
    This doesn't "fix" the crouch allowing to get spammed on ground, but for in air, didn't check yet

    Last edited by Xutax_Kamay; 11-25-2016 at 04:45. Reason: mistake maybe from me
    Xutax_Kamay is offline
    BustedRider
    Senior Member
    Join Date: Dec 2008
    Location: Canada/QC
    Old 11-27-2016 , 10:25   Re: [CS:GO] Duck Spamming Fix .
    Reply With Quote #7

    it doesnt work with mousewheel i wish it would bring back 1.6 gstrafe
    __________________
    BustedRider is offline
    brooks
    Junior Member
    Join Date: Oct 2020
    Location: United States
    Old 09-15-2022 , 16:37   Re: [CS:GO] Duck Spamming Fix .
    Reply With Quote #8

    Change to 8.0 instead of 7.0.
    Attached Files
    File Type: sp Get Plugin or Get Source (duckfix.sp - 214 views - 784 Bytes)
    brooks is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 22:00.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode