Raised This Month: $12 Target: $400
 3% 

[L4D2/TF2] VScript


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FortyTwo
New Member
Join Date: Dec 2020
Plugin ID:
8504
Plugin Version:
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    24 
    Plugin Description:
    Exposes many VScript features into SourceMod
    Old 06-25-2023 , 08:30   [L4D2/TF2] VScript
    Reply With Quote #1

    Description
    SourceMod plugin that exposes many VScript features to make use of it.
    Currently supports L4D2 and TF2. More game support can be added to gamedata if requested.

    Features
    You can read all features plugin has at vscript.inc, but some noticeable features include:
    • Creating SDKCall and DynamicDetour handle from native function, with parameter and return infos auto filled. Do not need gamedata signature for address of function.
    • Creating new native function for vscript to use.
    • Managing with HSCRIPT objects.
    • Compiling and Executing a vscript code with parameters and returns passed.

    You can find some code examples in readme.

    ConVars
    • vscript_version: Current version, no touchie.

    Dependencies
    Source Code
    All build package for download

    Last edited by FortyTwo; 03-19-2024 at 16:23.
    FortyTwo is offline
    feedays
    New Member
    Join Date: Nov 2018
    Old 06-26-2023 , 15:19   Re: [CS:GO/L4D2/TF2] VScript
    Reply With Quote #2

    NOOB question: Any chance this could be made to work in HL2DM?

    thank you in advance.
    feedays is offline
    FortyTwo
    New Member
    Join Date: Dec 2020
    Old 06-26-2023 , 17:38   Re: [CS:GO/L4D2/TF2] VScript
    Reply With Quote #3

    Quote:
    Originally Posted by feedays View Post
    NOOB question: Any chance this could be made to work in HL2DM?

    thank you in advance.
    HL2DM game does not have vscript built in, so no it's not possible to do so.
    FortyTwo is offline
    Gazyi
    Junior Member
    Join Date: Apr 2016
    Old 01-04-2024 , 10:10   Re: [CS:GO/L4D2/TF2] VScript
    Reply With Quote #4

    Thanks, it's very useful.
    But I don't get how to bind plugin function to VScriptFunction. All examples are about setting empty function and then detouring/hooking it. Is that the only way to do that? Maybe it's possible to call plugin function directly?
    Gazyi is offline
    FortyTwo
    New Member
    Join Date: Dec 2020
    Old 03-19-2024 , 16:32   Re: [CS:GO/L4D2/TF2] VScript
    Reply With Quote #5

    Quote:
    Originally Posted by Gazyi View Post
    Thanks, it's very useful.
    But I don't get how to bind plugin function to VScriptFunction. All examples are about setting empty function and then detouring/hooking it. Is that the only way to do that? Maybe it's possible to call plugin function directly?
    Whoops I rarely read posts here, sorry for late reply.

    But yes, you are correct that detouring is the only way to have vscript able to directly call a plugin function. I'm not sure exactly what you're suggesting to have, when detouring has all of the possibilities you can do with it.
    FortyTwo is offline
    Reply


    Thread Tools
    Display Modes

    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 03:21.


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