Raised This Month: $ Target: $400
 0% 

Slowing Down Players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 08-11-2019 , 10:19   Re: Slowing Down Players
Reply With Quote #1

Not really, only players with high fps can do that.
@OP you may try this https://forums.alliedmods.net/showthread.php?t=54964
__________________









Last edited by CrazY.; 08-11-2019 at 10:23.
CrazY. is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-11-2019 , 11:21   Re: Slowing Down Players
Reply With Quote #2

Quote:
Originally Posted by CrazY. View Post
Not really, only players with high fps can do that.
Quote:
Originally Posted by edon1337 View Post
I'm sure players with FPS lower than 100 can do that too, FPS only matters visually, not physically.
Unless you prove me otherwise.
__________________
edon1337 is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 08-12-2019 , 07:31   Re: Slowing Down Players
Reply With Quote #3

Code:
#include <amxmodx>
#include <fakemeta>
#include <xs>

const ButtonBits = ( IN_DUCK );

new anti_strafes;

public plugin_init() 
{
    anti_strafes = register_cvar( "amx_strafe_speed", "0.120" );

    register_forward( FM_CmdStart , "fw_FMCmdStart" );
}

public fw_FMCmdStart( id , handle , seed )
{
    if ( get_uc( handle , UC_Buttons ) & ButtonBits )
    {
        static Float:Velocity[3]
	
        pev(id, pev_velocity, Velocity)

        if (Velocity[0] > 250.0 || Velocity[1] > 250.0 || Velocity[2] > 250.0)  
        {
	    xs_vec_mul_scalar( Velocity, get_pcvar_float(anti_strafes), Velocity)
	    set_pev(id, pev_velocity, Velocity)
        }
    }
    return FMRES_IGNORED
}

Last edited by raizo11; 08-12-2019 at 07:42.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
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 17:17.


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