Raised This Month: $12 Target: $400
 3% 

[CSGO] Fake Duck


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exhile
New Member
Join Date: Apr 2021
Old 04-08-2021 , 22:41   [CSGO] Fake Duck
Reply With Quote #1

I am making a HvH server and I don't know how to allow people to fake duck on the server. Is there a plugin to fix this or what?
Exhile is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-09-2021 , 08:38   Re: [CSGO] Fake Duck
Reply With Quote #2

Do you mean like that?
PHP Code:
public Action OnPlayerRunCmd(int clientintbuttonsintimpulsefloat vel[3], float angles[3], intweaponintsubtypeintcmdnuminttickcountintseedint mouse[2])
{
    if( 
client // e.t.c. - other checks todo
    
{
        
buttons |= IN_DUCK;
        return 
Plugin_Changed;
    }
    return 
Plugin_Continue;

__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
oqyh
Senior Member
Join Date: May 2019
Location: United Arab Emirates
Old 04-09-2021 , 09:24   Re: [CSGO] Fake Duck
Reply With Quote #3

Quote:
Originally Posted by Exhile View Post
I am making a HvH server and I don't know how to allow people to fake duck on the server. Is there a plugin to fix this or what?
by default people can fake duck

but if you what to disable fake duck you can use

Code:
#include <sdktools>
 
public Plugin:myinfo =
{
    name = "Anti Fake-Duck",
    description = "bruh",
    author = "DucaRii",
    version = "1.0",
    url = "<->"
};
 
public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon)
{
	if( buttons & IN_BULLRUSH )
    {
        buttons &= ~IN_BULLRUSH;
    }
 
	return Plugin_Continue;
}
__________________
.:[ >> My Plugins << ]:.

My discord : oqyh
oqyh is offline
Exhile
New Member
Join Date: Apr 2021
Old 04-09-2021 , 12:10   Re: [CSGO] Fake Duck
Reply With Quote #4

Quote:
Originally Posted by oqyh View Post
by default people can fake duck

but if you what to disable fake duck you can use

Code:
#include <sdktools>
 
public Plugin:myinfo =
{
    name = "Anti Fake-Duck",
    description = "bruh",
    author = "DucaRii",
    version = "1.0",
    url = "<->"
};
 
public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon)
{
	if( buttons & IN_BULLRUSH )
    {
        buttons &= ~IN_BULLRUSH;
    }
 
	return Plugin_Continue;
}
Well I am hosting my server with host havoc and I just set it up and fake ducking isn't something you can do with OTC v3 or V4 you can only use mm fd. So is it an issue with my hosting then since it is "Enabled by default"
Exhile is offline
oqyh
Senior Member
Join Date: May 2019
Location: United Arab Emirates
Old 04-09-2021 , 15:43   Re: [CSGO] Fake Duck
Reply With Quote #5

Quote:
Originally Posted by Exhile View Post
Well I am hosting my server with host havoc and I just set it up and fake ducking isn't something you can do with OTC v3 or V4 you can only use mm fd. So is it an issue with my hosting then since it is "Enabled by default"
all i know hvh servers need this plugin

Code:
#include <sourcemod>

public Plugin myinfo = 
{ 
	name = "ViewAngle Fix", 
	author = "Alvy Piper / sapphyrus", 
	description = "Normalizes out of bounds viewangles", 
	version = "0.2", 
	url = "github.com/sapphyrus/" 
};

public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3], float angles[3], int& weapon, int& subtype, int& cmdnum, int& tickcount, int& seed, int mouse[2])
{
	if (!IsPlayerAlive(client)) {
		return Plugin_Continue;
	}

	// clamp pitch
	if (angles[0] > 89.0) {
		angles[0] = 89.0;
	} else if (angles[0] < -89.0) {
		angles[0] = -89.0;
	}

	// normalize yaw
	if (angles[1] > 180.0 || angles[1] < -180.0) {
		float flRevolutions = angles[1] / 360.0;

		if (flRevolutions < 0.0) {
			flRevolutions = -flRevolutions;
		}

		int iRevolutions = RoundToFloor(flRevolutions);

		if (angles[1] > 0.0) {
			angles[1] -= iRevolutions * 360.0;
		} else {
			angles[1] += iRevolutions * 360.0;
		}
	}

	// clamp roll
	if (angles[2] > 50.0) {
		angles[2] = 50.0;
	} else if (angles[2] < -50.0) {
		angles[2] = -50.0;
	}

	return Plugin_Changed;
}
+


add this in server.cfg

Code:
/////////////////////Other//////////////////////////////////
sv_lan 0
sv_cheats 0
sv_pure 0
sv_kick_players_with_cooldown 0
sm_cvar sv_kick_players_with_cooldown 0
/////////////////////64 tick//////////////////////////////////
fps_max 0
sm_cvar fps_max 0
sv_maxrate 0
sv_minrate 196608
sm_cvar sv_maxcmdrate "64"
sv_mincmdrate "64"
sv_minupdaterate "64"
sm_cvar sv_maxupdaterate "64"
//////////////////////////////////////////////////////////////
__________________
.:[ >> My Plugins << ]:.

My discord : oqyh

Last edited by oqyh; 04-09-2021 at 15:52.
oqyh is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-09-2021 , 18:37   Re: [CSGO] Fake Duck
Reply With Quote #6

Some cvars
Code:
"sv_ledge_mantle_helper" = "1"
FCVAR_GAMEDLL FCVAR_REPLICATED FCVAR_RELEASE 
- 1=Only improves success of jump+ducks to windows or vents (jump+duck to duck), 2=Improves success of all jump+ducks to ledges, 3=if you can get your eyes above it, you'll pull yourself up

"sv_timebetweenducks" = "0.4" min. 0.000000 max. 2.000000
FCVAR_GAMEDLL FCVAR_REPLICATED FCVAR_RELEASE 
- Minimum time before recognizing consecutive duck key
Bacardi is offline
PurpX
Junior Member
Join Date: Jul 2022
Old 08-08-2022 , 18:22   Re: [CSGO] Fake Duck
Reply With Quote #7

Quote:
Originally Posted by oqyh View Post
all i know hvh servers need this plugin

Code:
#include <sourcemod>

public Plugin myinfo = 
{ 
	name = "ViewAngle Fix", 
	author = "Alvy Piper / sapphyrus", 
	description = "Normalizes out of bounds viewangles", 
	version = "0.2", 
	url = "github.com/sapphyrus/" 
};

public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3], float angles[3], int& weapon, int& subtype, int& cmdnum, int& tickcount, int& seed, int mouse[2])
{
	if (!IsPlayerAlive(client)) {
		return Plugin_Continue;
	}

	// clamp pitch
	if (angles[0] > 89.0) {
		angles[0] = 89.0;
	} else if (angles[0] < -89.0) {
		angles[0] = -89.0;
	}

	// normalize yaw
	if (angles[1] > 180.0 || angles[1] < -180.0) {
		float flRevolutions = angles[1] / 360.0;

		if (flRevolutions < 0.0) {
			flRevolutions = -flRevolutions;
		}

		int iRevolutions = RoundToFloor(flRevolutions);

		if (angles[1] > 0.0) {
			angles[1] -= iRevolutions * 360.0;
		} else {
			angles[1] += iRevolutions * 360.0;
		}
	}

	// clamp roll
	if (angles[2] > 50.0) {
		angles[2] = 50.0;
	} else if (angles[2] < -50.0) {
		angles[2] = -50.0;
	}

	return Plugin_Changed;
}
+


add this in server.cfg

Code:
/////////////////////Other//////////////////////////////////
sv_lan 0
sv_cheats 0
sv_pure 0
sv_kick_players_with_cooldown 0
sm_cvar sv_kick_players_with_cooldown 0
/////////////////////64 tick//////////////////////////////////
fps_max 0
sm_cvar fps_max 0
sv_maxrate 0
sv_minrate 196608
sm_cvar sv_maxcmdrate "64"
sv_mincmdrate "64"
sv_minupdaterate "64"
sm_cvar sv_maxupdaterate "64"
//////////////////////////////////////////////////////////////
Thank you this was really helpful
PurpX is offline
Reply


Thread Tools
Display Modes

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 15:32.


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