FireBullets()
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
FireBulletsInfostruct 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