Thread: Amxbot
View Single Post
Re: Amxbot
Old
  (#12)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Amxbot - 07-12-2004

What I mean, is that if you call GetEntityIllum() on a player edict, it works. BUT, if you call GetEntityIllum() on a bot edict, it returns 0. This is why bot coders have to be cautious around this issue. If they want to retrieve a bot's illumination value, they must call GetEntityIllum() on another edict than the bot's own edict. This is why we make dummy entities follow bots around when they walk (since calling GetEntityIllum() on these entities do work).

Anyway, it was an old bug of the HL engine, but perhaps it's been fixed now by the Valve guys. I haven't checked. Can you confirm the behaviour I'm saying here, or does it work differently ?



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote