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

[L4D & L4D2] Left 4 DHooks Direct (1.0) [24-Feb-2020]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
About:

Originally two Extensions [L4D1] Left 4 Downtown and [L4D2] Left 4 Downtown 2 created by Downtown and maintained by various others, this is an all-in-one port to DHooks with many additions.

This also merges natives from L4D2_Direct by "ProdigySim" and L4D_Direct port by "raziEiL".

I done this to learn some stuff, add missing natives and forwards to L4D1 and add more features. Also because the extensions are often broken with SourceMod updates and confusing to find the latest gamedata or working version.

Thanks to Lux and a conversation we had: using the plugin iterator and GetFunctionByName to detect which forwards are being used by plugins. This will only detour functions being used by other plugins. Plugins are rescanned on map change.



Features:
  • Many new forwards and natives in L4D1.
  • Some new natives and forwards in L4D2.
  • Additional features not present in the Extension versions.
  • Addons Disabler (L4D2) included.
  • Dynamic detouring - only detours forwards required by other plugins. Rescans on map change.
  • Animation hooks to modify player animations.
  • View the \addons\sourcemod\data\ folder for activity names and sequence numbers.
  • Demo plugin demonstrating animation hooks + all forwards and natives capabilities.



Bugs:
  • Player slots is unsupported. Use the L4DToolZ Metamod plugin to increase player slots and unreserve your server.
  • The native L4D_LobbyUnreserve is unsupported because SourceMod SDKCalls are unable to use uint64_t sized integers.
  • Forwards L4D2_OnSendInRescueVehicle and L4D2_OnUseHealingItems are blocked in Linux L4D1/L4D2 to prevent crashes. Waiting for DHooks update to support object returns.
  • Conflicts with Left4Downtown, remove the extension to run.

Demo Plugin:
  • There are multiple warnings when compiling, this is intentional to test everything.
  • I've tried to test every native and forward on Windows and Linux in both games. Everything appears to be working but I might have missed something.



Thanks:
  • Lux - Lots of technical support and ideas + figuring out why some detours were broken.
  • Peace-Maker - For the DHooks Dynamic Detour extension and various help.
  • Dragokas - Server and support testing in Linux for both games.
  • Spirit_12 - Various ideas and support.
  • xZk - Support testing.
  • Thanks to the following individuals for their contribution to the Extensions.
  • This plugin was made using source code from the following plugins:
Spoiler



Admin Commands: (requires "z" flag)
PHP Code:

// Reloads the detour hooks, enabling or disabling depending if they're required by other plugins.
// When adding or removing plugins that use any detours during gameplay. To optimize forwards by disabling unused or enabling required functions that were previously unused.
sm_l4dhooks_reload 



CVars:
PHP Code:

l4d2_addons_eclipse "-1" // Addons Manager (-1: use addonconfig; 0/1: override addonconfig.
left4dhooks_version // Left 4 Dhooks Direct plugin version. 




All Forwards and Natives:
  • Assume everything is L4D1 and L4D2 compatible unless otherwise stated.
  • View the include file for detailed descriptions.

Forwards: (L4D1 = 31 & L4D2 = 42)
Spoiler


Natives: (L4D1 = 17 + 21 [direct] & L4D2 = 54 + 39 [direct])
Spoiler



Changes:
Code:

1.0 (24-Feb-2020)
    - Initial release.



Requirements:
  • DHooks (Experimental Dynamic Detour support) extension.
  • Requires SourceMod 1.10 due to various methodmaps. Done this to force servers to update. Can work on SM 1.9 but requires reverting methodmaps code and variable types. Instead you should just upgrade SM to benfit from fixes, improvements, and new features.
  • Conflicts with Left4Downtown, remove the extension to run.


Installation:
  1. Download the .zip and extract the files to their respective folders in your servers \addons\sourcemod\ folder.

Attached Files
File Type: zip left4dhooks.zip (125.3 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

×
×
  • Dodaj nową pozycję...