AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CSGO] Fake Duck (https://forums.alliedmods.net/showthread.php?t=331822)

Exhile 04-08-2021 22:41

[CSGO] Fake Duck
 
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?

Dragokas 04-09-2021 08:38

Re: [CSGO] Fake Duck
 
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;



oqyh 04-09-2021 09:24

Re: [CSGO] Fake Duck
 
Quote:

Originally Posted by Exhile (Post 2743482)
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;
}


Exhile 04-09-2021 12:10

Re: [CSGO] Fake Duck
 
Quote:

Originally Posted by oqyh (Post 2743531)
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"

oqyh 04-09-2021 15:43

Re: [CSGO] Fake Duck
 
Quote:

Originally Posted by Exhile (Post 2743572)
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"
//////////////////////////////////////////////////////////////


Bacardi 04-09-2021 18:37

Re: [CSGO] Fake Duck
 
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


PurpX 08-08-2022 18:22

Re: [CSGO] Fake Duck
 
Quote:

Originally Posted by oqyh (Post 2743597)
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 :D


All times are GMT -4. The time now is 04:25.

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