[Pogamut-list] Secondary shoots
michal.bida
pogamut-forum at diana.ms.mff.cuni.cz
Tue Sep 27 18:21:22 CEST 2011
Re: Secondary shoots
Author: michal.bida
This works similar to how human players shoot secondary ammo from assualt rifle. You need to press and hold right mouse button - assault rifle grenade starts charging and then release the button to fire the grenade.
So for the bot - you need to cal body.getShooting().shootSecondary(enemy); - this will start charging the grenade and afterwards you need to call stopShooting() to release and fire the grenade.
Alternatively you can use methods from AdvancedShooting module that supports these more complex shooting modes natively.
Best,
Michal
--
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=828&post_reply=1#form>
More information about the Pogamut-list
mailing list