[Pogamut-list] Feedback, Things that don't work properly and things that should be included

aisa87 pogamut-forum at diana.ms.mff.cuni.cz
Sun Apr 24 17:08:53 CEST 2011


Re: Feedback, Things that don't work properly and things that should be included

Author: aisa87

The method that tells how much ammo you have from a certain weapon, is not working for the Shield Gun in the following situation.

If you check how much ammo the shield gun has like this: weaponry.getAmmo(ItemType.SHIELD_GUN); it should say from the beginning it has 100 (sometimes it always says it has 0 :S)

After checking the ammo, if you change the weapon you are holding, lets say you switch to the Assault Rifle ( weaponry.changeWeapon(ItemType.ASSAULT_RIFLE); )  and now you check back the ammo of the Shield Gun it gets stuck, it does not recharge the ammo it had.

I noticed this, because I'm telling the bot to use the shield (secondary fire) to run from the user if he is hit; Whenever he runs out of ammo, he switches to the best combat weapon and waits for the shield to have at least 50 ammo. But when I switch to the best combat weapon, it says that the shield gun has 0 ammo all the time, and unless he gest killed, it doesn't go back to 100.

Hope you can help me. (:

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





More information about the Pogamut-list mailing list