Ah thanks - very helpful. Just need to find where this is in the Orange Box
code now...
On 8 October 2016 at 02:31, Sam Vanheer wrote:
> Server plugins get an interface that lets them enumerate entities, take
> a look at the entityinfomanager global. It's in the server
Server plugins get an interface that lets them enumerate entities, take
a look at the entityinfomanager global. It's in the server plugin
sample, located in src\utils\serverplugin_sample.
FindEntityByClassname is the function you'll probably want to use.
Op 7/10/2016 om 13:29 schreef Tom
Okay I've had a quite look and I think I've figured out how it all works -
my next question is how do I find an entity with a given classname or id or
whatever? I've had a bit of a look through the server code but can't quite
figure it and I've looked where I thought it might be based on my
Many thanks - I'll look into the AcceptInput method (there are no Linux
binaries for what I'm working on but hopefully I can find it in the vtable).
On 6 October 2016 at 23:41, Sam Vanheer wrote:
> I looked around a bit and found nothing that can be used to trigger
>
Hm, looks like this isn't exposed through the Orange Box code - it looks
like the FindEntityByX functions that I can find operate on some sort of
global entity list rather than through some exposed interface - is that
right?
On 8 October 2016 at 06:41, Tom Schumann wrote:
That interface appears to be new with the 2013 version of the SDK.
You could try using the engine global's PEntityOfEntIndex to get each
entity and then manually convert to CBaseEntity using
edict_t::GetUnknown, and then calling GetBaseEntity.
You'll have to manually check the classname, which
Yeah okay, I was thinking that looping through each entity might end up
being the way to go. I guess class name isn't exposed though edict_t, and
it might be hard to find the entity id but I'm sure it's there somewhere.
On 8 October 2016 at 07:36, Sam Vanheer wrote:
> That
7 matches
Mail list logo