GM:EntityFireBullets
Description
Called every time a bullet is about to be fired from an entity, which allows to completely modify the bullet structure before the bullet is actually fired.
See GM:PostEntityFireBullets if you wish to hook the final bullet values, such as the aim direction post spread calculations.
This hook is called directly from Entity:FireBullets. Due to this, you cannot call Entity:FireBullets inside this hook or an infinite loop will occur crashing the game.
Arguments
Returns
1 boolean
- Return
true
to apply all changes done to the bullet table. - Return
false
to suppress the bullet.