View Single Post
Re: Hi, thanks and help!
Old
  (#9)
Akz
Creator of GrogBot
 
Akz's Avatar
 
Status: Offline
Posts: 91
Join Date: Jan 2004
Default Re: Hi, thanks and help! - 01-07-2005

Comparing pEdict->v.button and pEdict->v.oldbutton could be used to detect when the attack button was pressed, but it doesn't quarantee that the weapon was fired. Checking the weapon animation should be ok for that purpose though. The variable you're looking for is pEdict->v.weaponanim.

In DMC, the value should be either 0 (idle) or 1 (shooting), because AFAIK there are only 2 animations for each weapon.


GrogBot - A bot for Pirates, Vikings and Knights HL modification.

http://grogbot.bots-united.com
  
Reply With Quote