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

RSS[ND] Build Structure Intercept


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Nuclear Dawn Commander Build Structure Intercept

Description

This plugin exposes a detour of CNDPlayer::Commander_BuildStructure to enable other SourceMod plugins to gracefully block buildings by structure type or by the position of the building.

Development Usage

Use the following format in other plugins to block structures from being built:
PHP Code:

 <nd_commander_build>

public 
Action ND_OnCommanderBuildStructure(clienteNDStructures structurefloat xfloat yfloat z)
{
    if (
blockConditions)
    {
        return 
Plugin_Stop;
    }
    return 
Plugin_Continue;


Sepcial Thanks
  • Addie - Double-checking my Ghidra work with IDA and debugging intuition that kept me from going astray
  • psychonic - Providing ND function prototypes as I was exploring what to detour in Ghidra
  • Vertex - Providing a test server environment

Requirements

DHooks and the custom gamedata is required

Server Installation

Place the build-structure.games.txt file in the addons/sourcemod/gamedata/ directory on the server.
Compile and place the nd_structure_intercept.smx file in the addons/sourcemod/plugins directory on the server.

Changelog

1.0 Initial public release

Attached Files
File Type: inc nd_commander_build.inc (1.2 KB)
File Type: sp Get Plugin or Get Source (nd_structure_intercept.sp - 3.9 KB)
File Type: txt build-structure.games.txt (1.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

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

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