[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:- 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.
- Gets property value for a given Entity Index
-- This gets the CURRENT value for any property for a given entity index.
- Sets property value for a given Entity Index
-- This sets the CURRENT value for any property for a given entity index.
- 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:
Installation:- 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.