Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[CSGO] Ramp slope fix (from Momentum Mod)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
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!

Attached Files
File Type: txt ramp_slope_fix.games.txt (2.4 KB)
File Type: sp Get Plugin or Get Source (ramp_slope_fix.sp - 4.6 KB)
File Type: smx ramp_slope_fix.smx (6.4 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...