Raised This Month: $ Target: $400
 0% 

[Any] EntHax - 0.08 - 2016/12/1


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
cheddar
Member
Join Date: Sep 2015
Plugin ID:
5432
Plugin Version:
0.08
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Gets/Sets Entity Properties in Game
    Old 11-30-2016 , 01:55   [Any] EntHax - 0.08 - 2016/12/1
    Reply With Quote #1


    [Any] EntHax
    Version 0.08

    Description:
    Small plugin designed for server admins and developers that want to peek into what a maps entities are and change their values in game. Get/Set Float/Int property values for entities from your console.
    Features:
    1. Gets Entity Indices based on Classname
      -- If you want to find the entity index for a player, func_physbox, or a func_tanktrain this will find it.
    2. Gets property value for a given Entity Index
      -- This gets the CURRENT value for any property for a given entity index.
    3. Sets property value for a given Entity Index
      -- This sets the CURRENT value for any property for a given entity index.
    4. Respawns Entities
      -- This is sometimes needed for the set values to take effect.

    Commands:
    • getentindex <classname> | Gets ALL Entity Indexes based on Classname | Example: getentindex player
    • entpropint <index> <property> | GETS int VALUE of PROPERTY for given ENTITY INDEX | Example: entpropint 1 m_iHealth
    • entpropint <index> <property> <int> | SETS int VALUE of PROPERTY for given ENTITY INDEX | Example: entpropint 1 m_iHealth 3000
    • entpropfloat <index> <property> | GETS float VALUE of PROPERTY for given ENTITY INDEX | Example: entpropfloat 1 m_flModelScale
    • entpropfloat <index> <property> <float> | SETS float VALUE of PROPERTY for given ENTITY INDEX | Example: entpropfloat 1 m_flModelScale 0.3
    • entpropstring <index> <property> | SETS string VALUE of PROPERTY for given ENTITY INDEX | Example: entpropstring 1 m_iName
    • entpropstring <index> <property> <string> | GETS string VALUE of PROPERTY for given ENTITY INDEX | Example: entpropstring 1 m_iName "This is a new targetname"
    • entrespawn <index> | Respawns Entity at given Index | Example: entrespawn 1
    • sv_clear | Clears the console

    Changelog:
    Spoiler


    Installation:
    1. Just place EntHax.smx into /tf/addonds/sourcemod/plugins folder
      Need SM1.8_stable to compile

    Final Thoughts:
    I'm not really sure if others are going to use this. It's a very advanced / developer oriented plugin. But I did the work to create it so thought I'd share it.
    Attached Files
    File Type: sp Get Plugin or Get Source (EntHax.sp - 176 views - 6.4 KB)
    File Type: smx EntHax.smx (6.7 KB, 254 views)

    Last edited by cheddar; 12-01-2016 at 01:37.
    cheddar is offline
     



    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 02:37.


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