View Single Post
PurpX
Junior Member
Join Date: Jul 2022
Old 08-08-2022 , 18:22   Re: [CSGO] Fake Duck
Reply With Quote #7

Quote:
Originally Posted by oqyh View Post
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
PurpX is offline