View Single Post
Re: code to get the illumination at any point on the map
Old
  (#41)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: code to get the illumination at any point on the map - 22-03-2012

OK. The podbot_mm_i386.so file loads on my linux virtual PC correctly and bots are using flashlights correctly now (so it means they know where is a dark area and Your code works also on linux)!

Now back to the second problem - about running Your function on other bots (CZERO bots and metamod bots). If the function pfnRunPlayerMove (called i.e. for other bots) function resets their pEdict->v.light_level, I believe - if we are setting their v.light_level in StartFrame function, everything should work. Except one thing. There are some plugins (written in PAWN - C similar language) they are using fake bots to prevent i.e. the round to be ended (if all players and "normal" bots are dead). I'm not sure if AMXMOD X creating such type of bots is adding the flag FAKECLIENT. I'm also not sure if calling that function for such type fake bots doesn't do any side-effects. Another thing - I'm not sure if CZERO bots have the FAKECLIENT flag set. I need to do more tests then.
  
Reply With Quote