Raised This Month: $ Target: $400
 0% 

[Any] Dynamic Selectors


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DZHEX
Junior Member
Join Date: Mar 2015
Plugin ID:
8016
Plugin Version:
23w41a
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Dynamic Target Selectors with Arguments like in Minecraft but for SourceMod
    Old 09-27-2023 , 18:34   Re: [Any] Dynamic Selectors
    Reply With Quote #1

    Nice, I wanted something like this for a local TF2 DS I'm messing around with (maybe I'll host an actual server one day lol).
    There seem to be a few problems though:
    The targets work with the chat triggers and in-game console, but not with the DS console - sm_slay @r or sm_slay @a = no matching client was found when executed on the server console. I believe this means I cannot exec any configs/scripts that include these targets.
    Also, @r seemed to always target the same player(bot) every time. The server console dumps a bunch of "shuffle x and y" messages, but every time the list is identical.
    Lastly, when I tried to compile from source (get source on this post), I got an error on line 573: "error 100: function prototypes do not match".

    Last edited by DZHEX; 09-27-2023 at 18:45.
    DZHEX is offline
    reBane
    Senior Member
    Join Date: May 2020
    Old 10-15-2023 , 11:42   Re: [Any] Dynamic Selectors
    Reply With Quote #2

    I have not had any issues with random targets, but i removed the spammy output and used a different way shuffling. About the error you get on compile, that was some SourcePawn change that messed with the Function type, i dont know if they intend to fix/change that in the future, but I can work around that (should no longer complain)
    As for console, that's not triggering OnClientCommand, so yea... I don't like hooking every command, but I made it opt in, so you can just uncomment #define ALT_HOOK_METHOD and recompile
    __________________
    Plugins & LibrariesListingGitHubDosMikeTools ▶ ToDo
    reBane is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 06:54.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode