FireBullets(): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
'''<code>FireBullets()<code>''' is a method which handles damage for any [[hitscan]] weapon. It is passed [[FireBulletsInfo_t]] as it's required parameter, which describes the bullet in question.
'''<code>FireBullets()</code>''' is a method which handles damage for any [[hitscan]] weapon. It is passed [[FireBulletsInfo_t]] as it's required parameter, which describes the bullet in question.


== Workings ==
== Workings ==


'''<code>pAmmoDef</code>''' stores the ammo definition in a pointer.
'''<code>pAmmoDef</code>''' stores the ammo definition in a pointer.

Revision as of 16:06, 12 February 2010

FireBullets() is a method which handles damage for any hitscan weapon. It is passed FireBulletsInfo_t as it's required parameter, which describes the bullet in question.

Workings

pAmmoDef stores the ammo definition in a pointer.