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

[TF2] Shortstop "Shove" Animation Enabler


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy

Shortstop "Shove" Animation Enabler
Yeah, the Shortstop has a shove if you alt-fire (+attack2). It's the equivalent of using sm_slap on someone and adds a little flame particle at the shoved player's feet (almost like what that one sm_bring plugin does).

But there's an unused world animation that would allow other players to see that you're shoving. Problem is, Valve is Valve, and the animation wasn't set up to play for one reason or another (perhaps they're saving this fix as a "trump card" when someone calls them out for not fixing things so they can say "ha, we fixed the shortstop not having shove animations"?)

This thing enables the animations. There's a way to do this that doesn't require signatures and offsets that can/will break on updates, and isn't entirely a pain in the cun-ning linguals. If anyone wants to attempt to make it, here's the hint Pelipoika gave me: tf_player.cpp#L121 and tf_player.cpp#L1227 (both relate to the TE_PlayerAnimEvent tempent and the code is from the 2007 source dev repo leak for TF2)


Required Extensions:

Convars:
  • tf2_shortstopshove_version - Standard version convar. Do not touch!

Installation Instructions:
  1. Download the plugin (available via Github)
  2. Extract the plugin to your server.
  3. rcon sm plugins load tf2_shortstopshovefix
  4. ???
  5. Profit!

Known Bugs:
If you use a thirdperson plugin, you'll notice sometimes that you don't do the shove animation. That's clientside. Serverside, other players will see the animation play every time you shove.

IIRC, I forget exactly what Peli said the cause of it was but I believe it was something along the lines of a quirk in how the animation system works.


Version History:
Version History



Credits:
Pelipoika - Beat me to the punch when I was working on my own version of this and created the original snippet. He also helped me learn how to get offsets and signatures so I can attempt to keep the signatures for this updated (for Linux at least, I may need help getting the Windows signatures. I can get the Linux/Windows offsets from Asherkin's VTables dumper, and I have IDA to get the Linux signature).


Problems? Suggestions?
There shouldn't be any errors or bugs in this plugin, but if you do happen to find any, please let me know on this thread and I'll try my best to correct the issues! And as well, if you have any suggestions for ways to rework my code, or suggestions of new things to add, let me know!


button_downloadongithub.png

Attached Files
File Type: sp Get Plugin or Get Source (tf2_shortstopshovefix.sp - 2.7 KB)
File Type: smx tf2_shortstopshovefix.smx (5.5 KB)
File Type: txt tf2.shortstopshove.txt (527 Bytes)

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ę...