Raised This Month: $442 Target: $400
 110% 

[CSGO] Ramp slope fix (from Momentum Mod)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Plugin ID:
5814
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Prevent players stopping dead on ramps.
    Old 09-07-2017 , 10:22   [CSGO] Ramp slope fix (from Momentum Mod)
    Reply With Quote #1

    Ramp slope fix
    Prevent players from stopping dead on (most?) ramps.

    Slope movement
    The Momentum Mod team claims to have fixed players having their velocity reset on slopes like surf ramps. User fatalis opened an issue on their GitHub repository describing his testings which would eventually be merged into the game.

    SM9 asked for ways to port it to CSGO in IRC the other day, so here we go.

    The plugin does exactly the same as the sv_ramp_fix ConVar in Momentum Mod, removing the code to reset player velocity when the game thinks they're inside a wall or suddently move in the opposite direction.
    PHP Code:
    VectorCopy(vec3_originmv->m_vecVelocity); 
    The only significant difference in CSGO is client prediction. The patch is only performed on the server, so clients will still predict getting stuck but continue on when they notice the server has a different opinion.

    View punch
    The CGameMovement::TryPlayerMove function checks if the player was slowed down significantly and simulates slamming into a wall with some effects on the client - including a huge view punch shaking the camera.

    The plugin optionally is using DHooks to hook and block CGameMovement:layerRoughLandingEffects. The problem in CSGO is again that the view punch code is in the client as well, so it'll predict a view punch again, but reset shortly after. (Momentum Mod added a convar and moved it all to the server side)

    Installation
    • Upload ramp_slope_fix.games.txt into your gamedata folder.
    • Upload ramp_slope_fix.smx into your plugins folder.
    • Optionally install DHooks for the view punch hook.

    It seems there are still issues on high tickrate servers, but others confirmed it working. Please see if this works for you and post your findings!
    Attached Files
    File Type: txt ramp_slope_fix.games.txt (2.4 KB, 943 views)
    File Type: sp Get Plugin or Get Source (ramp_slope_fix.sp - 636 views - 4.6 KB)
    File Type: smx ramp_slope_fix.smx (6.4 KB, 808 views)
    __________________
    Peace-Maker is offline
    Cruze
    Veteran Member
    Join Date: May 2017
    Old 09-07-2017 , 10:30   Re: [CSGO] Ramp slope fix (from Momentum Mod)
    Reply With Quote #2

    128 tick random surf stops? if yes Good Job man!!
    __________________
    Taking paid private requests! Add me on steam/discord!

    AlliedModders Releases | Github | Private Plugins | PayPal | Steam | Discord: Cruze#4947

    Last edited by Cruze; 09-07-2017 at 10:39.
    Cruze is offline
    sneaK
    SourceMod Moderator
    Join Date: Feb 2015
    Location: USA
    Old 09-07-2017 , 11:21   Re: [CSGO] Ramp slope fix (from Momentum Mod)
    Reply With Quote #3

    I've been running the test version that you put in IRC this past weekend, and it's definitely created a noticeable difference on 85t surf. Visual glitches are few and far between, but this obviously is no replacement for bad ramps, which several maps have.

    Nice release!
    __________________
    sneaK is offline
    throwaway
    New Member
    Join Date: Sep 2017
    Old 09-08-2017 , 12:27   Re: [CSGO] Ramp slope fix (from Momentum Mod)
    Reply With Quote #4

    Great plugin! Any hope for CS:S support?
    throwaway is offline
    darthelmo1
    Junior Member
    Join Date: Nov 2016
    Old 09-09-2017 , 20:36   Re: [CSGO] Ramp slope fix (from Momentum Mod)
    Reply With Quote #5

    Thanks for this! - clearly a much more intelligent way of fixing things than previous ramp-bug-fix plugin attempts. I'll give it a try :^)

    Well done.
    darthelmo1 is offline
    sneaK
    SourceMod Moderator
    Join Date: Feb 2015
    Location: USA
    Old 10-27-2017 , 15:39   Re: [CSGO] Ramp slope fix (from Momentum Mod)
    Reply With Quote #6

    Just a heads up, this is exploitable in its current state. See: https://www.youtube.com/watch?v=tYbvGT4P_Yg

    You can essentially get yourself 'stuck' on a vertical surface and gain a massive speed boost, the longer you stay there.

    This was prior to the Momentum update that fixed this: https://github.com/momentum-mod/game...69bcfeaa933ff1
    __________________
    sneaK is offline
    extremeg
    Senior Member
    Join Date: Dec 2012
    Location: Germany
    Old 02-25-2018 , 02:29   Re: [CSGO] Ramp slope fix (from Momentum Mod)
    Reply With Quote #7

    used with fluffys surftimer and dont works
    __________________
    C#/Java/MySQL/SourcePawn/PHP/Perl/Phyton Developer - [CSGO Surf/Bhop since 2013]
    extremeg is offline
    cra88y
    AlliedModders Donor
    Join Date: Dec 2016
    Old 10-05-2018 , 18:05   Re: [CSGO] Ramp slope fix (from Momentum Mod)
    Reply With Quote #8

    Are the addresses out of date? Puts my windows test server in a crash loop.
    cra88y is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 10-09-2018 , 11:42   Re: [CSGO] Ramp slope fix (from Momentum Mod)
    Reply With Quote #9

    As sneaK pointed out, this fix is flawed and allows players to gain incredible speed, so I'm not sure it's as useful as I thought it would be.
    Regardless, I've checked the windows gamedata and it appears to be just fine. Are you sure it's this plugin crashing your server?
    __________________
    Peace-Maker is offline
    cra88y
    AlliedModders Donor
    Join Date: Dec 2016
    Old 10-09-2018 , 17:16   Re: [CSGO] Ramp slope fix (from Momentum Mod)
    Reply With Quote #10

    Quote:
    Originally Posted by Peace-Maker View Post
    As sneaK pointed out, this fix is flawed and allows players to gain incredible speed, so I'm not sure it's as useful as I thought it would be.
    Regardless, I've checked the windows gamedata and it appears to be just fine. Are you sure it's this plugin crashing your server?
    Yeah, when I add this plugin and restart, it crashes over and over again. Removing it stops the crashes. And I want to use it for combat surf, so the speed gaining isn't really an issue for me. If it's too bad I could probably make a ghetto good enough fix for it
    __________________
    cra88y#6386 for paid requests | Support
    cra88y 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 10:07.


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