[Pogamut-list] Opponent Weapon Info

michal.bida pogamut-forum at diana.ms.mff.cuni.cz
Sat Jun 26 18:35:40 CEST 2010


Re: Opponent Weapon Info

Author: michal.bida

Hi!

This is not implemented yet, but its a good suggestion.

What you need to do now is to parse the string to get the weapon type. String obtained by getWeapon() is unique weapon id, however if the weapon will be a flak cannon, substring "FlakCannon" can be found in this id, for rocket launcher "RocketLauncher" etc. When you have the item type you should be able to obtain additional info etiher from ItemCategory messages or maybe from the Weapon module (not sure about this).

Best,
Michal

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





More information about the Pogamut-list mailing list