Raised This Month: $32 Target: $400
 8% 

[ANY?] Entity Inputs & Outputs (Forwards and Natives)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Plugin ID:
8029
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Forwards and Natives for entity inputs and outputs.
    Old 04-14-2022 , 08:27   [ANY?] Entity Inputs & Outputs (Forwards and Natives)
    Reply With Quote #1

    Description: Forwards and Natives for entity inputs and outputs. Only tested in CSGO (windows and linux) and CSS (windows). Might work in TF2, L4D2, DOD.

    Credits to: MsDysphie

    Dependencies: dhooks

    GitHub: https://github.com/Ilusion9/entityIO-sm
    __________________

    Last edited by Ilusion9; 04-20-2022 at 14:34.
    Ilusion9 is offline
    Ilusion9
    Veteran Member
    Join Date: Jun 2018
    Location: Romania
    Old 04-17-2022 , 17:08   Re: [CS:GO|ANY?] Entity Inputs & Outputs (Forwards and Natives)
    Reply With Quote #2

    Added natives to get all entity inputs or outputs, to find an output offset by name or to add an output action. Only tested in CS:GO, soon support for more games.
    __________________

    Last edited by Ilusion9; 04-17-2022 at 17:08.
    Ilusion9 is offline
    Ryan2
    Senior Member
    Join Date: Jul 2020
    Old 04-17-2022 , 18:19   Re: [CS:GO|ANY?] Entity Inputs & Outputs (Forwards and Natives)
    Reply With Quote #3

    As someone who is sort of new to running CSGO servers can you give an example of what this is exactly used for? "Hook or get informations about entity inputs and outputs" is like another language to me.
    Ryan2 is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 04-17-2022 , 21:37   Re: [CS:GO|ANY?] Entity Inputs & Outputs (Forwards and Natives)
    Reply With Quote #4

    Quote:
    Originally Posted by Ryan2 View Post
    As someone who is sort of new to running CSGO servers can you give an example of what this is exactly used for? "Hook or get informations about entity inputs and outputs" is like another language to me.
    Test plugin: entityIO-test.smx output of my example map, with func_button.
    Code:
    (func_button) Found "OnPressed" output for func_button.
    (func_button) Output offset for OnPressed: 1136.
    (func_button) Get all actions of OnPressed.
    (func_button) Action: cam:Shatter:1:0.000000:-1 (Id: 176).
    (func_button) Action: toggletexture:SetTextureIndex:1:0.000000:-1 (Id: 174).
    (func_button) Action: clientcommand:Command:say asdsad:1.000000:-1 (Id: 173).
    (func_button) Get all inputs.
    (func_button) Input: Lock.
    (func_button) Input: Unlock.
    (func_button) Input: Press.
    (func_button) Input: PressIn.
    (func_button) Input: PressOut.
    (func_button) Input: TeamNum.
    (func_button) Input: SetTeam.
    (func_button) Input: fademindist.
    (func_button) Input: fademaxdist.
    (func_button) Input: Kill.
    (func_button) Input: KillHierarchy.
    (func_button) Input: Use.
    (func_button) Input: Alpha.
    (func_button) Input: AlternativeSorting.
    (func_button) Input: Color.
    (func_button) Input: SetParent.
    (func_button) Input: SetParentAttachment.
    (func_button) Input: SetParentAttachmentMaintainOffset.
    (func_button) Input: ClearParent.
    (func_button) Input: SetLocalOrigin.
    (func_button) Input: SetLocalAngles.
    (func_button) Input: SetDamageFilter.
    (func_button) Input: EnableDamageForces.
    (func_button) Input: DisableDamageForces.
    (func_button) Input: DispatchResponse.
    (func_button) Input: AddContext.
    (func_button) Input: RemoveContext.
    (func_button) Input: ClearContext.
    (func_button) Input: DisableShadow.
    (func_button) Input: EnableShadow.
    (func_button) Input: DisableDraw.
    (func_button) Input: EnableDraw.
    (func_button) Input: DisableReceivingFlashlight.
    (func_button) Input: EnableReceivingFlashlight.
    (func_button) Input: DisableDrawInFastReflection.
    (func_button) Input: EnableDrawInFastReflection.
    (func_button) Input: AddOutput.
    (func_button) Input: FireUser1.
    (func_button) Input: FireUser2.
    (func_button) Input: FireUser3.
    (func_button) Input: FireUser4.
    (func_button) Input: RunScriptFile.
    (func_button) Input: RunScriptCode.
    (func_button) Input: CallScriptFunction.
    (func_button) Get all outputs.
    (func_button) Output: OnDamaged (Offset: 1112).
    (func_button) Output: OnPressed (Offset: 1136).
    (func_button) Output: OnUseLocked (Offset: 1160).
    (func_button) Output: OnIn (Offset: 1184).
    (func_button) Output: OnOut (Offset: 1208).
    (func_button) Output: OnUser1 (Offset: 592).
    (func_button) Output: OnUser2 (Offset: 616).
    (func_button) Output: OnUser3 (Offset: 640).
    (func_button) Output: OnUser4 (Offset: 664).

    Maps can have a triggers, buttons, logics, etc. etc. which do some actions.
    Those who want to know better how map works for example, could uncompile map and look through Hammer Editor.

    But this plugin "extension" gives you opportunity to look entity information during game.

    You create another plugin, using this plugin beside. Then you can deside what to do with those information or add/change entity output actions.


    Those who want just play game then this is not for you.
    __________________
    Do not Private Message @me
    Bacardi is offline
    Ilusion9
    Veteran Member
    Join Date: Jun 2018
    Location: Romania
    Old 04-20-2022 , 14:36   Re: [ANY?] Entity Inputs & Outputs (Forwards and Natives)
    Reply With Quote #5

    Inputs can now be changed or stopped in EntityIO_OnEntityInput forward. Added EntityIO_OnEntityInput_Post forward.

    To use return Plugin_Changed in EntityIO_OnEntityInput you must have SM 1.11 build 6871 or higher.
    __________________
    Ilusion9 is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 04-20-2022 , 17:55   Re: [ANY?] Entity Inputs & Outputs (Forwards and Natives)
    Reply With Quote #6

    Cool
    Bacardi is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 04-21-2022 , 10:14   Re: [ANY?] Entity Inputs & Outputs (Forwards and Natives)
    Reply With Quote #7

    Ilusion9, MsDysphie, very cool!
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Ilusion9
    Veteran Member
    Join Date: Jun 2018
    Location: Romania
    Old 05-29-2022 , 12:44   Re: [ANY?] Entity Inputs & Outputs (Forwards and Natives)
    Reply With Quote #8

    - The natives that finds an input/output will stop looking in CBaseEntity map (150 rows) every time they are called. The inputs/outputs which can be retrieved from this map will be stored globally by the plugin.
    - Replaced Address with Handle in all natives.
    - Added natives to change entity output's actions.
    __________________
    Ilusion9 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:46.


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