FireBullets()

From Valve Developer Community
Revision as of 15:12, 12 February 2010 by R1zeeK (talk | contribs)
Jump to navigation Jump to search

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

info

Name given to the FireBulletsInfo struct that is passed into method.

pAmmoDef

Stores the ammo definition in a pointer.

flActualDamage

Used to define the damage to be done to entity.

iPlayerDamage

If it's deemed we are damaging a player, this is used instead of flActualDamage