[Pogamut-list] observed player: how to retrieve number of visible players

mpkorstanje pogamut-forum at diana.ms.mff.cuni.cz
Fri Nov 2 11:21:59 CET 2012


Re: observed player: how to retrieve number of visible players

Author: mpkorstanje

One way would be to store the agents in two maps of . One map containing all agents and the other all visible agents. When an agent becomes visible, you add it to the visible list, when it becomes invisible, you remove it. Have a look in the code for the Players module to see how it is done there. 

But if you want to do it properly, you could have a look at the Players module and see if you can change it to work with UT2004Observed bots. It should not be too difficult, all components needed are there as far as I can see.

-- 
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=1042&post_reply=1#form>




More information about the Pogamut-list mailing list