Raised This Month: $ Target: $400
 0% 

Get id's of entities


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Caldeum
Senior Member
Join Date: Jul 2010
Location: United Kingdom
Old 07-16-2012 , 12:33   Get id's of entities
Reply With Quote #1

Can anyone give me id's of this entities or where/how can i get id's of this entities?

__________________
Of all the things I lost, I miss my brain the most.
Caldeum is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-16-2012 , 12:53   Re: Get id's of entities
Reply With Quote #2

Entity ID 0 is the world entity.
Entity IDs 1 through MaxClients are client entities.
Entity IDs MaxClients+1 through 4096 are other entities.

Or did you mean Entity Classnames or Entity Names?

Entity Classnames appear when you dump the games NetProps or DataMaps using sm_dumpnetprops netprops.txt or sm_dumpdatamaps datamaps.txt

(you can use different filenames if you choose)

Entity Names are just an entity property (m_iName as I recall) and can be set by map makers. Their value is retrieved using GetEntPropString on an entity index.

SDK Hooks also has OnEntityCreated that can be used to look for certain entities being created.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-16-2012 at 12:55.
Powerlord is offline
Caldeum
Senior Member
Join Date: Jul 2010
Location: United Kingdom
Old 07-16-2012 , 14:45   Re: Get id's of entities
Reply With Quote #3

Maybe you know where can i get this model names (in models directory)?
__________________
Of all the things I lost, I miss my brain the most.
Caldeum is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 07-16-2012 , 14:58   Re: Get id's of entities
Reply With Quote #4

Dump the map with Stripper: Source to see everything that goes into it, prop_statics included.
__________________
thetwistedpanda is offline
miniman
Senior Member
Join Date: Aug 2009
Location: Israel
Old 07-17-2012 , 12:00   Re: Get id's of entities
Reply With Quote #5

there is a built in command that starts with the ent_ (I think) that allows you to render info about this entity including the model name.
miniman is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-17-2012 , 12:16   Re: Get id's of entities
Reply With Quote #6

I don't have the tools with me, but netprops should include the field name for models, likely something like m_iModelName.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 07-17-2012 , 19:38   Re: Get id's of entities
Reply With Quote #7

'ent_show_response_criteria '
sv_cheats has to be on.
Mitchell is offline
Reply



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 01:05.


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