[Pogamut-list] Getting List of Player Weapons

jakub.gemrot pogamut-forum at diana.ms.mff.cuni.cz
Tue Mar 13 08:08:34 CET 2012


Re: Getting List of Player Weapons

Author: jakub.gemrot

Hi Chris!

Which connection are you using? If you are using BotConnection (port 3000) than you cannot get list of weapons for OTHER players (that would be considered as cheating,
you as a player does not have that information as well), list of weapons for YOUR bot can be obtain through "weaponry" field of bot's controller.

I don't think this is also possible with ServerConnection (port 3001), but you could try to adapt Weaponry class to work with UT2004Observer (ObserverConnection port 3002).

Another possibility is to hack GameBots2004 unreal script code directly, but that would require broader expertise with Pogamut code base, which is not design
to be modularly extensible (e.g. it is hard to write plugin on the GameBots protocol level of code).

Last thing that I can come up with is to execute all your bots within the same JVM and have your Guide bot to look through other's bots "weaponry" instance to see which 
weapons they truly have. It depends on the way how you want to model your GuideBot (if you're creating proof-of-concept then I would consider this kind of "cheating"
as perfectly OK).

Cheers!
Jakub

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





More information about the Pogamut-list mailing list