Bullet
Description
Tables used for bullets see Entity:FireBullets and GM:EntityFireBullets.
Members
Entity Attacker
The entity that should be reported as attacker eg. a player
By default this would be set to the entity Entity:FireBullets is called on.
Default: self
Entity Inflictor
The entity that should be reported as inflictor eg. a weapon or something similar
Also defines CTakeDamageInfo:GetWeapon for Weapon.
Default: NULL
function Callback
Function to be called after the bullet was fired but before the damage is applied (the callback is called even if no damage is applied).
Function argument(s):
1 Entity attacker - No description given.
3 CTakeDamageInfo dmgInfo - No description given.
Function return value(s):
Default: nil
number Damage
The damage dealt by the bullet.
If set to 0, it means the damage should be calculated from the ammo type's ConVars if the ammo type has AMMO_INTERPRET_PLRDAMAGE_AS_DAMAGE_TO_PLAYER flag set.
See AmmoData structure.
Default: 1
Garry's Mod
Rust
Steamworks
Wiki Help