Working on a plugin so when you're scoped with a AWP in CS:GO you move at 200 units/s instead of 100 units/s.
m_flLaggedMovementValue feels like a client host_timescale and causes jumping to go at 2x speed.
I've tried m_flMaxspeed and nothing seemed to work but maybe i shouldn't try to code at 4 am
Code:
public void OnPluginStart()
{
HookEvent("weapon_zoom", Event_PlayerZoom, EventHookMode_Pre);
}
public Action Event_PlayerZoom(Event event, const char[] name, bool dontBroadcast)
{
int userID = event.GetInt("userid");
PrintToChatAll("%i",userID);
int clientID = GetClientOfUserId(2);
PrintToChatAll("%i", clientID);
SetEntPropFloat(clientID, Prop_Send, "m_flLaggedMovementValue", 2.0);
return Plugin_Continue;
}