Revision Difference
Structures/FiredBullet#565412
<structure>
<realm>Shared</realm>
<description>
The table structure used for bullets that have already been fired.
See <page>GM:PostEntityFireBullets</page> for more information.
</description>
<fields>
<item name="AmmoType" type="string" default="<Empty String>">
The type of ammo that was fired.
Should be one of the values from the <page>game.GetAmmoTypes</page> table.
</item>
<item name="Attacker" type="Entity">
The <page>Entity</page> that fired the bullet.
This is usually the <page>Player</page> that is holding the <page>Weapon</page>.
</item>
<item name="Damage" type="number">
The amount of damage dealt by the bullet.
When set to `0`, damage should be determined based on the values set in the <page>Structures/AmmoData</page> of the bullet's Ammo Type.
</item>
<item name="Force" type="number">
The physics impact force of the bullet.
</item>
<item name="Tracer" type="number">
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.
</item>
<item name="Trace" type="table">⤶
<item name="Trace" type="table{TraceResult}">⤶
The <page>Structures/TraceResult</page> from the <page text="Trace">util.TraceLine</page> that determined where and what the bullet hit.
</item>
</fields>
</structure>