[Pogamut-list] Ammo/Shot tracking

michal.bida pogamut-forum at diana.ms.mff.cuni.cz
Wed Jan 23 10:22:49 CET 2013


 Re: Ammo/Shot tracking

Author: michal.bida

Hi!

First thing how to solve this was already mentioned by you - keep track of SELF message + take into account picking up new items.

Second thing how to solve this could be to store how long you were using the weapon - how much time has passed between startShooting and stopShooting commands. Each weapon has fixed refire rate. I guess it is even exported for most (all?) weapons in WeaponDescriptors. By comparing the time you were shooting with refire rate you would get rather precise estimate of how many shots were actually fired. 

Apart from this GameBots right now do not track ammo spent. 

best,
michal

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




More information about the Pogamut-list mailing list