Raised This Month: $ Target: $400
 0% 

CS:GO AWP Scoped Speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RealEdan
Member
Join Date: Dec 2016
Location: United States
Old 01-20-2018 , 19:06   CS:GO AWP Scoped Speed
Reply With Quote #1

I was wondering if i could get a plugin developed that would make the CS:GO AWP Velocity different while scoped. (More like the old scope speed in 2013 CS:GO)

The current normal AWP scoped-in speed is 100.
The old AWP scoped-in speed is 150.

I'm hoping i can get this done, just need the scoped speed changed from 100 to 150 velocity.

Thank You!
__________________
RealEdan is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 01-22-2018 , 14:13   Re: CS:GO AWP Scoped Speed
Reply With Quote #2

Try this:
PHP Code:
#include <sourcemod>
#include <sdktools>

#pragma semicolon 1
#pragma newdecls required

#define PLUGIN_NAME           "SlowScope"
#define PLUGIN_VERSION        "1.0"

public Plugin myinfo =
{
    
name PLUGIN_NAME,
    
author "Hexah",
    
description "",
    
version PLUGIN_VERSION,
    
url ""
};

bool bIsScoping[MAXPLAYERS+1];

public 
void OnPluginStart()
{
    
HookEvent("weapon_zoom"Event_PlayerZoom);
    
HookEvent("player_death"Event_PlayerStopScope);
    
HookEvent("item_equip"Event_PlayerStopScope);
}

public 
void Event_PlayerZoom(Event event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(event.GetInt("userid"));
    
    
bIsScoping[client] = true;
    
    
SetEntPropFloat(clientProp_Send"m_flLaggedMovementValue"1.5);
}

public 
void Event_PlayerStopScope(Event event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(event.GetInt("userid"));

    if (
bIsScoping[client])
    {
        
bIsScoping[client] = false;
        
SetEntPropFloat(clientProp_Send"m_flLaggedMovementValue"1.0);
    }
}

public 
Action OnPlayerRunCmd(int clientint &buttonsint &impulsefloat vel[3], float angles[3], int &weapon)
{
    if (
bIsScoping[client])
    {
        
bIsScoping[client] = false;
        
SetEntPropFloat(clientProp_Send"m_flLaggedMovementValue"1.0);
    }

Not tested.
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!
Papero is offline
RealEdan
Member
Join Date: Dec 2016
Location: United States
Old 01-24-2018 , 18:39   Re: CS:GO AWP Scoped Speed
Reply With Quote #3

Quote:
Originally Posted by Papero View Post
Try this:
PHP Code:
#include <sourcemod>
#include <sdktools>

#pragma semicolon 1
#pragma newdecls required

#define PLUGIN_NAME           "SlowScope"
#define PLUGIN_VERSION        "1.0"

public Plugin myinfo =
{
    
name PLUGIN_NAME,
    
author "Hexah",
    
description "",
    
version PLUGIN_VERSION,
    
url ""
};

bool bIsScoping[MAXPLAYERS+1];

public 
void OnPluginStart()
{
    
HookEvent("weapon_zoom"Event_PlayerZoom);
    
HookEvent("player_death"Event_PlayerStopScope);
    
HookEvent("item_equip"Event_PlayerStopScope);
}

public 
void Event_PlayerZoom(Event event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(event.GetInt("userid"));
    
    
bIsScoping[client] = true;
    
    
SetEntPropFloat(clientProp_Send"m_flLaggedMovementValue"1.5);
}

public 
void Event_PlayerStopScope(Event event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(event.GetInt("userid"));

    if (
bIsScoping[client])
    {
        
bIsScoping[client] = false;
        
SetEntPropFloat(clientProp_Send"m_flLaggedMovementValue"1.0);
    }
}

public 
Action OnPlayerRunCmd(int clientint &buttonsint &impulsefloat vel[3], float angles[3], int &weapon)
{
    if (
bIsScoping[client])
    {
        
bIsScoping[client] = false;
        
SetEntPropFloat(clientProp_Send"m_flLaggedMovementValue"1.0);
    }

Not tested.
Yeah for some reason it isn't working? Compiled just fine, no errors at all. Loads just fine too. My AWP Speed while scoped is still the same :/ (100) it should be set to (150) which is a faster speed.
__________________
RealEdan is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-24-2018 , 23:53   Re: CS:GO AWP Scoped Speed
Reply With Quote #4

Something with "m_flVelocityModifier" or dhooks+GetPlayerMaxSpeed should do the task.

More info: https://forums.alliedmods.net/showthread.php?p=2426523
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
RealEdan
Member
Join Date: Dec 2016
Location: United States
Old 01-30-2018 , 18:27   Re: CS:GO AWP Scoped Speed
Reply With Quote #5

Still need this very badly
__________________
RealEdan 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 00:42.


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