View Single Post
Re: code to get the illumination at any point on the map
Old
  (#42)
Immortal_BLG
Member
 
Status: Offline
Posts: 171
Join Date: Nov 2007
Location: Russian Federation
Default Re: code to get the illumination at any point on the map - 23-03-2012

I'm sorry, I seem to have deceived you, the function "RunPlayerMove" does not change the value of the variable "entvars_t::light_level", moreover, this value seems to be that NEVER changes for the bot!
I set some nonzero value and killed a bot, did round restart - value didn't change. I even kick a bot, and then connect new bot, which occupied entity of kicked bot, and so, the new bot used value of this variable, from the kicked bot!!!

So that method with setting this value in a function "StartFrame" in the loop for all clients, which have flag FL_FAKECLIENT - probably the most correct....

I would also like to recommend to reset the value of this variable when creating a new bot, how you do it, for example for the variable entvars_t::frags.

Quote:
Originally Posted by KWo
I'm not sure if CZERO bots have the FAKECLIENT flag set. I need to do more tests then.
no doubt on account of this - CSBot sets this flag on each spawn....
  
Reply With Quote