|
Senior Member
Join Date: May 2019
Location: United Arab Emirates
|
04-09-2021
, 15:43
Re: [CSGO] Fake Duck
|
#5
|
Quote:
Originally Posted by Exhile
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"
//////////////////////////////////////////////////////////////
__________________
Last edited by oqyh; 04-09-2021 at 15:52.
|
|
|
|