View Single Post
Author Message
honorcode23
BANNED
Join Date: Mar 2010
Location: Chile
Old 09-03-2010 , 20:10   [ANY] Entity and properties Tool
Reply With Quote #1

Easy to use, will allow you to create, edit and spawn an entity and also you will be able to test any property from your CBaseEntity network class.

Usefull to check an entity behaviour (It's really anoying to keep recompiling codes to just check for one keyvalue or if a property will work or not, so thats why i made this for myself, but decided to share it today ) or if a client property actually works.

Should work on any Source game, but it was tested on Left 4 dead 2 only.

Entity Tool:

-sm_entcreate Will create the entity (CreateEntityByName)

-sm_entkey Will dispatch a key value to the entity <key> <value> (DispatchKeyValue)

-sm_entspawn Will spawn and teleport the entity to your position (DispatchSpawn | TeleportEntity)

-sm_entcancel Will drop and delete the current entity, so you can continue with another one.

-sm_entdone Will drop the entity, but will not delete it.

-sm_entinput Sends an input (AcceptEntityInput)


Property Collector:

As the name says, you can type any property, and the code will retrieve or set the property data into yourself.

-sm_prop Retrieve a property info

Code:
sm_prop [float | int | string | bool]    [send | data]    [prop name]
-sm_setprop Set a property into yourself

Code:
sm_setprop [float | int | string | bool]  [send | data]    [prop name]    [value]
send = Prop_Send
data = Prop_Data

Hope it helps!
Attached Files
File Type: sp Get Plugin or Get Source (property_collector.sp - 688 views - 2.9 KB)
File Type: sp Get Plugin or Get Source (entity_tool.sp - 714 views - 2.9 KB)
honorcode23 is offline