Raised This Month: $70 Target: $400
 17% 

Surf Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
Lopol2010
New Member
Join Date: Aug 2015
Location: Russia
Old 10-14-2020 , 06:59   Surf Fix
Reply With Quote #1

Description:
This plugin prevents surf bug.
What's surf bug? When player sliding or surfing and instantly unintentionally stops.
This plugin is very useful for bhop, jump and surf servers.
Good to know:
If you have high ping, you may experience small 'stucks' or 'stuttering' movement.
Frequency of this depends on amount of your fps. More fps means more surf bugs.


Changelog:
Code:
version 1.3
    fix: trace height from 0.5 to 0.01 - Player get speed that he had before teleport onto slope. 
            Since after teleport for one frame he have 0 speed, its detected as surf bug and fixed.
version 1.4
    fix: surf bug not detected on ramps with trigger_push on them. 
            Because trigger_push changes velocity even if player not move visually.
version 1.5
    optimization: first check if speed is 0.0 and then if player is on slope. 
            Because second check is expensive since it uses trace_hull.
version 1.6
    rename: from 'surffix' to 'Surf Fix'	
    optimization: removed expensive calculations like vector_length
version 1.8
    Now surf bug detected during one frame with CmdStart and CmdEnd.
    Previously using only CmdStart was allow 1 frame of player speed=0 (im not sure if its true, but by theory should be)
Attached Files
File Type: sma Get Plugin or Get Source (surffix.sma - 44 views - 4.3 KB)

Last edited by Lopol2010; 10-14-2020 at 17:55.
Lopol2010 is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 10-15-2020 , 19:35   Re: Surf Fix
Reply With Quote #2

interesting, gj
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...)
JocAnis is offline
Smilex_Gamer
Senior Member
Join Date: Apr 2017
Location: Portugal
Old 10-16-2020 , 17:05   Re: Surf Fix
Reply With Quote #3

Great plugin. Huge help for surf/bhop/speedrun servers!
Smilex_Gamer is offline
Reply


Thread Tools
Display Modes

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 16:41.


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