AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSGO] Ramp slope fix (from Momentum Mod) (https://forums.alliedmods.net/showthread.php?t=301075)

Peace-Maker 09-07-2017 10:22

[CSGO] Ramp slope fix (from Momentum Mod)
 
3 Attachment(s)
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::PlayerRoughLandingEffects. 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!

Cruze 09-07-2017 10:30

Re: [CSGO] Ramp slope fix (from Momentum Mod)
 
128 tick random surf stops? if yes Good Job man!!

sneaK 09-07-2017 11:21

Re: [CSGO] Ramp slope fix (from Momentum Mod)
 
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! :bacon!:

throwaway 09-08-2017 12:27

Re: [CSGO] Ramp slope fix (from Momentum Mod)
 
Great plugin! Any hope for CS:S support?

darthelmo1 09-09-2017 20:36

Re: [CSGO] Ramp slope fix (from Momentum Mod)
 
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.

sneaK 10-27-2017 15:39

Re: [CSGO] Ramp slope fix (from Momentum Mod)
 
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

extremeg 02-25-2018 02:29

Re: [CSGO] Ramp slope fix (from Momentum Mod)
 
used with fluffys surftimer and dont works

cra88y 10-05-2018 18:05

Re: [CSGO] Ramp slope fix (from Momentum Mod)
 
Are the addresses out of date? Puts my windows test server in a crash loop.

Peace-Maker 10-09-2018 11:42

Re: [CSGO] Ramp slope fix (from Momentum Mod)
 
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?

cra88y 10-09-2018 17:16

Re: [CSGO] Ramp slope fix (from Momentum Mod)
 
Quote:

Originally Posted by Peace-Maker (Post 2619017)
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 :)


All times are GMT -4. The time now is 04:09.

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