[Pogamut-list] Selecting a better weapon
rowan
pogamut-forum at diana.ms.mff.cuni.cz
Mon Mar 21 14:35:27 CET 2011
Selecting a better weapon
Author: rowan
Hi,
I have been using the weapon descriptor's getPriDamage() function to determine how good my bot's current weapon is, and whether it should switch to a better one. However, I noticed that I kept getting 0 as primary damage value, so included a few calls to retrieve the getPriDamage() results for a number of weapons... as it turns out, only a few of them have a value other than 0.
These are the results I got back:
Assault Rifle damage: 0.0
Minigun damage: 0.0
Bio Rifle damage: 19.0
Flak Cannon damage: 13.0
Link Gun damage: 30.0
Shock Rifle damage: 0.0
Lighting Gun damage: 0.0
Is this correct, and if so, is there another value I could use to get my bot to switch to a better weapon?
--
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_parentId=593#form>
More information about the Pogamut-list
mailing list