RSSy MYGO.pl Opublikowano Grudzień 28, 2022 o 23:23 RSSy Udostępnij Opublikowano Grudzień 28, 2022 o 23:23 Nuclear Dawn Commander Build Structure InterceptDescription 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(client, eNDStructures structure, float x, float y, float z) { if (blockConditions) { return Plugin_Stop; } return Plugin_Continue; } Sepcial ThanksAddie - 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 requiredServer 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 nd_commander_build.inc (1.2 KB) Get Plugin or Get Source (nd_structure_intercept.sp - 3.9 KB) build-structure.games.txt (1.3 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi