Raised This Month: $51 Target: $400
 12% 

[CS:S/CS:GO/TF2] shavit's bhoptimer (v2.5.5a 08/August/2019)


Post New Thread Reply   
 
Thread Tools Display Modes
Technoblazed
Senior Member
Join Date: May 2016
Location: United Kingdom
Old 05-25-2016 , 14:52   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #481

Quote:
Originally Posted by dz. View Post
what settings/tickrate are best for bhop server? Now im using:



what should i change for better bhop in CS:GO?
I would recommend the below settings as its what people like to play with, and compares to the professional bhopping servers.

102.4 Tick
sv_accelerate "5.5"
sv_wateraccelerate "150"
sv_airaccelerate "1000"
sv_maxvelocity "4000"
sv_enablebunnyhopping "1"
sv_staminamax "1000"
sv_staminajumpcost "0"
sv_staminalandcost "0"
sv_staminarecoveryrate "55"
Technoblazed is offline
dz.
Junior Member
Join Date: May 2016
Old 05-25-2016 , 14:58   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #482

Quote:
Originally Posted by Technoblazed View Post
I would recommend the below settings as its what people like to play with, and compares to the professional bhopping servers.

102.4 Tick
sv_accelerate "5.5"
sv_wateraccelerate "150"
sv_airaccelerate "1000"
sv_maxvelocity "4000"
sv_enablebunnyhopping "1"
sv_staminamax "1000"
sv_staminajumpcost "0"
sv_staminalandcost "0"
sv_staminarecoveryrate "55"
big thank you, I'll take note!

P.S Just noticed that sv_wateraccelerate cvar nope in CS:GO and the max value of sv_staminamax = 100:

Quote:
"sv_staminamax" = "100.000000" ( def. "80" ) min. 0.000000 max. 100.000000 game replicated - Maximum stamina penalty

Last edited by dz.; 05-25-2016 at 15:32.
dz. is offline
Technoblazed
Senior Member
Join Date: May 2016
Location: United Kingdom
Old 05-25-2016 , 18:14   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #483

Quote:
Originally Posted by dz. View Post
big thank you, I'll take note!

P.S Just noticed that sv_wateraccelerate cvar nope in CS:GO and the max value of sv_staminamax = 100:
My values should all have sm_cvar inserted infront, most of these are hidden values
Technoblazed is offline
dz.
Junior Member
Join Date: May 2016
Old 05-25-2016 , 18:59   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #484

Quote:
Originally Posted by Technoblazed View Post
most of these are hidden values
hm, I didn't know about it. Thank you anyway
dz. is offline
XTN
Junior Member
Join Date: May 2016
Location: Germany/Cologne
Old 05-26-2016 , 09:21   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #485

If someone wants to know how to add HSW-Style.

shavit.inc
(change code to this)
Code:
#define MAX_STYLES 8
#define MAX_ZONES 7

// game types
enum ServerGame(+=1)
{
	Game_CSS = 0,
	Game_CSGO,
	Game_Unknown
};

// bhop styles
// enum - for easier customization of settings
enum BhopStyle(+=1)
{
	Style_Forwards = 0,
	Style_Sideways,
	Style_WOnly,
	Style_Scroll,
	Style_400Velocity,
	Style_AOnly,
	Style_DOnly,
	Style_HSW
};

#if defined USES_STYLE_PROPERTIES
#define STYLE_NONE				(0)
#define STYLE_AUTOBHOP			(1 << 0)
#define STYLE_BLOCK_W			(1 << 1)
#define STYLE_BLOCK_A			(1 << 2)
#define STYLE_BLOCK_S			(1 << 3)
#define STYLE_BLOCK_D			(1 << 4)
#define STYLE_EASYBHOP			(1 << 5)
#define STYLE_VEL_LIMIT			(1 << 6)
#define STYLE_HSW_ONLY			(1 << 7)

int gI_StyleProperties[MAX_STYLES] =
{
	STYLE_AUTOBHOP|STYLE_EASYBHOP, // Forwards
	STYLE_AUTOBHOP|STYLE_EASYBHOP|STYLE_BLOCK_A|STYLE_BLOCK_D, // Sideways
	STYLE_AUTOBHOP|STYLE_EASYBHOP|STYLE_BLOCK_A|STYLE_BLOCK_D|STYLE_BLOCK_S, // W-Only
	STYLE_EASYBHOP, // Scroll
	STYLE_VEL_LIMIT, // 400 Velocity
	STYLE_AUTOBHOP|STYLE_EASYBHOP|STYLE_BLOCK_W|STYLE_BLOCK_D|STYLE_BLOCK_S, // A-Only
	STYLE_AUTOBHOP|STYLE_EASYBHOP|STYLE_BLOCK_W|STYLE_BLOCK_A|STYLE_BLOCK_S, // D-Only
	STYLE_AUTOBHOP|STYLE_EASYBHOP|STYLE_BLOCK_S|STYLE_HSW_ONLY // HSW
};

#define VELOCITY_UNLIMITED 0.0

// only applies if STYLE_VEL_LIMIT is defined for a style
// use VELOCITY_UNLIMITED to ignore
float gF_VelocityLimit[MAX_STYLES] =
{
	VELOCITY_UNLIMITED, // Forwards
	VELOCITY_UNLIMITED, // Sideways
	VELOCITY_UNLIMITED, // W-Only
	VELOCITY_UNLIMITED, // Scroll
	400.00, // 400 Velocity
	VELOCITY_UNLIMITED, // A-Only
	VELOCITY_UNLIMITED, // D-Only
	VELOCITY_UNLIMITED // HSW
};
#endif

#if defined USES_STYLE_NAMES
// style names
char gS_BhopStyles[MAX_STYLES][] =
{
	"Autobhop",
	"Sideways",
	"W-Only",
	"Scroll",
	"400 Velocity",
	"A-Only",
	"D-Only",
	"Half-Sideways"
};
#endif

#if defined USES_STYLE_HTML_COLORS
// style HTML colors, for CS:GO HUD
char gS_StyleHTMLColors[MAX_STYLES][] =
{
	"797FD4",
	"B54CB3",
	"9A59F0",
	"279BC2",
	"C9BB8B",
	"00FF40",
	"00FF40",
	"B54CBB"
};
#endif

#if defined USES_SHORT_STYLE_NAMES
// short names - up to 4 characters please
char gS_ShortBhopStyles[MAX_STYLES][] =
{
	"AUTO",
	"SW",
	"W",
	"LEGIT",
	"400VEL",
	"A-ONLY",
	"D-ONLY",
	"HSW"
};
#endif
shavit-core.sp
add this code in line 806 after the STYLE_BLOCK's

Code:
// HSW
if(gI_StyleProperties[gBS_Style[client]] & STYLE_HSW_ONLY && !bOnLadder)
{
	if(vel[0] == 0)
	{
		bEdit = true;
		vel[1] = 0.0;
		buttons &= ~IN_MOVELEFT;
		vel[1] = 0.0;
		buttons &= ~IN_MOVERIGHT;
	}
}
btw. ^ this removes the bug/exploit that players hold W and S and can strafe normally like on Forward Style.

@shavit
Add this please
XTN is offline
ofir753
Senior Member
Join Date: Aug 2012
Old 05-26-2016 , 09:36   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #486

Quote:
Originally Posted by XTN View Post
If someone wants to know how to add HSW-Style.

shavit.inc

btw. ^ this removes the bug/exploit that players hold W and S and can strafe normally like on Forward Style.

@shavit
Add this please
This is a better HSW validation, its more reliable and feel more smoother at higher ping, btw I already pushed the comit for some reason shavit didnt get it:
PHP Code:
if(gI_StyleProperties[gBS_Style[client]] & STYLE_HSW && !((vel[0] > || buttons IN_FORWARD) && ((vel[1] < || buttons IN_MOVELEFT) || (vel[1] > || buttons IN_MOVERIGHT))))
        {
            
bEdit true;
            
vel[0] = 0.0;
            
vel[1] = 0.0;
        } 
ofir753 is offline
XTN
Junior Member
Join Date: May 2016
Location: Germany/Cologne
Old 05-26-2016 , 11:08   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #487

Quote:
Originally Posted by ofir753 View Post
This is a better HSW validation, its more reliable and feel more smoother at higher ping, btw I already pushed the comit for some reason shavit didnt get it:
PHP Code:
if(gI_StyleProperties[gBS_Style[client]] & STYLE_HSW && !((vel[0] > || buttons IN_FORWARD) && ((vel[1] < || buttons IN_MOVELEFT) || (vel[1] > || buttons IN_MOVERIGHT))))
        {
            
bEdit true;
            
vel[0] = 0.0;
            
vel[1] = 0.0;
        } 
Yes thank you this is good! But you still have to add the condition vel[0] == 0 else it will not fix the bug/exploit
XTN is offline
ofir753
Senior Member
Join Date: Aug 2012
Old 05-26-2016 , 11:30   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #488

Quote:
Originally Posted by XTN View Post
Yes thank you this is good! But you still have to add the condition vel[0] == 0 else it will not fix the bug/exploit
This condition wont let you strafe unless you press w+a or w+d which means w or s without a or d wouldnt do a thing for the player velocity
ofir753 is offline
XTN
Junior Member
Join Date: May 2016
Location: Germany/Cologne
Old 05-26-2016 , 11:32   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #489

Quote:
Originally Posted by ofir753 View Post
This condition wont let you strafe unless you press w+a or w+d which means w or s without a or d wouldnt do a thing for the player velocity
Well then I guess you don't know the exploit. Read what I wrote above ;) I tested yours on my server. Exploit still there. Added my condition = Perfect HSW Style
Try it yourself.
XTN is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 05-26-2016 , 14:09   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #490

Quote:
Originally Posted by ofir753 View Post
btw I already pushed the comit for some reason shavit didnt get it
you need to send a pull request for me to get it

anyways, I've implemented both solutions

thanks Technoblazed, XTN and ofir
__________________
retired
shavit 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 14:46.


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