Raised This Month: $12 Target: $400
 3% 

[ H3LP ] Get All entity keyvalues


Post New Thread Reply   
 
Thread Tools Display Modes
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-04-2018 , 12:04   Re: [ H3LP ] Get All entity keyvalues
Reply With Quote #11

Quote:
Originally Posted by nosoop View Post
My plugin assumes entities have a Hammer ID that can be accessed (to associate them with the entity lump data); if you can dump your map's entities with, say, Stripper:Source I could verify whether or not Fortress Forever fits those assumptions.

Otherwise you can just grab the OnLevelInit forward and ParseEntityList functions and iterate the resulting KeyValues structure yourself. Unless you have some unique key per entity, you may have some trouble getting the key/value pairs associated with actual entities.

You could probably jump into C++ and iterate over entities' external names; nothing comparable in SourceMod at this time though, and out of my scope of development.
Aw. Anyways, some values are set on FF directly from lua files I guess usually info_ff_script entities. But with lua code u can change anything on level init so it might be a bit more complicated to get the exact valeus of entities as they spawn on the map.
DarthMan 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 12:56.


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