RE: [hlcoders] UTIL_FindEntityBy problems

2005-05-03 Thread Jay Stelly
> Josh Matthews wrote: > > Actually, I'm still confused about how the classname method won't > > work. When it reaches the light entity, it'll trigger > correctly and > > do its thing. Then it moves on, can't find any more entities so it > > skips to searching for light_spot. In this case, pEnt

Re: [hlcoders] UTIL_FindEntityBy problems

2005-05-03 Thread Jeffrey \"botman\" Broome
Josh Matthews wrote: Actually, I'm still confused about how the classname method won't work. When it reaches the light entity, it'll trigger correctly and do its thing. Then it moves on, can't find any more entities so it skips to searching for light_spot. In this case, pEnt will be NULL so it'l

Re: [hlcoders] UTIL_FindEntityBy problems

2005-05-03 Thread Josh Matthews
Actually, I'm still confused about how the classname method won't work. When it reaches the light entity, it'll trigger correctly and do its thing. Then it moves on, can't find any more entities so it skips to searching for light_spot. In this case, pEnt will be NULL so it'll be starting from th

Re: [hlcoders] UTIL_FindEntityBy problems

2005-05-03 Thread Josh Matthews
See, the problem is that it doesn't find any entities using the string method, when I have checked and all the values are correct. On 5/4/05, Jeffrey botman Broome <[EMAIL PROTECTED]> wrote: > Josh Matthews wrote: > > Two points, one, I don't see how my second method will skip over > > entities.

Re: [hlcoders] UTIL_FindEntityBy problems

2005-05-03 Thread Jeffrey \"botman\" Broome
Josh Matthews wrote: Two points, one, I don't see how my second method will skip over entities. It keeps searching until it doesn't find one class, then goes on to the next. Let's say you only have 4 entities in the world, in this order... worldspawn ---> light_spot ---> light_environment ---> lig

Re: [hlcoders] UTIL_FindEntityBy problems

2005-05-03 Thread Josh Matthews
Two points, one, I don't see how my second method will skip over entities. It keeps searching until it doesn't find one class, then goes on to the next. The other, I don't understand what you mean about "m_iPowerzone will only be meaningful in the context of the class this code is being called in

Re: [hlcoders] UTIL_FindEntityBy problems

2005-05-03 Thread Jeffrey \"botman\" Broome
Josh Matthews wrote: Rightm the UTIL_FindEntityBy* functions have been giving me some problems with the work I'm doing for HL1. I'm trying to find all light entities with a certain property that I've added to group certain lights together, there's a new variable in the fgd base light class, and it

[hlcoders] UTIL_FindEntityBy problems

2005-05-02 Thread Josh Matthews
Rightm the UTIL_FindEntityBy* functions have been giving me some problems with the work I'm doing for HL1. I'm trying to find all light entities with a certain property that I've added to group certain lights together, there's a new variable in the fgd base light class, and it's in the correspondi