SourceMod FindEntityByClassname / SetEntProp extension equivalents?
Hi guys,
I was wondering if there was an easy way in a SourceMod extension to find an entity by its classname and adjust its properties. This would be quite easy to do in a plugin, but unfortunately, the rest of my logic is already in an extension. Incidentally, the entity class is vote_controller, and the properties I want to adjust are: Code:
-Member: m_iActiveIssueIndex (offset 796) (type integer) (bits 32) |
Re: SourceMod FindEntityByClassname / SetEntProp extension equivalents?
Quote:
http://hg.alliedmods.net/sourcemod-c...tives.cpp#l638 For finding datadesc property offsets and values, use GetDataMap and FindInDataMap on IGameHelpers. PHP Code:
|
Re: SourceMod FindEntityByClassname / SetEntProp extension equivalents?
Quote:
|
Re: SourceMod FindEntityByClassname / SetEntProp extension equivalents?
Quote:
Netprops, specifically for integers are a little trickier due to the varying bit counts. Look at SM's core/smn_entities.cpp and GetEntProp for an example. |
Re: SourceMod FindEntityByClassname / SetEntProp extension equivalents?
Hey, sorry to bump this since I'm trying to do the same thing
can you tell me why this doesnt work ? PHP Code:
PHP Code:
|
All times are GMT -4. The time now is 05:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.