Garry's Mod Wiki

FiredBullet

Description

The table structure used for bullets that have already been fired.

See GM:PostEntityFireBullets for more information.

Members

string AmmoType
The type of ammo that was fired.

Should be one of the values from the game.GetAmmoTypes table.

Default: "<Empty String>"

Entity Attacker
The Entity that fired the bullet.

This is usually the Player that is holding the Weapon.

number Damage
The amount of damage dealt by the bullet.

When set to 0, damage should be determined based on the values set in the AmmoData structure of the bullet's Ammo Type.

number Force
The physics impact force of the bullet.
number Tracer
A whole integer number that controls the frequency of visible bullet tracers.

A tracer will be fired once after this many non-tracer bullets have been fired.

Set to 1 to always fire a tracer.

table Trace
The TraceResult structure from the Trace that determined where and what the bullet hit.