rg_fire_bullets

Syntax

native rg_fire_bullets(const inflictor, const attacker, const shots, Float:vecSrc[3], Float:vecDirShooting[3], Float:vecSpread[3], const Float:flDistance, const Bullet:iBulletType, const iTracerFreq, const iDamage);

Usage

inflictor
Inflictor is the entity that caused the damage (such as a gun)
attacker
Attacker is the entity that triggered the damage (such as the gun's owner)
shots
The number of shots
vecSrc
The source position of the barrel
vecDirShooting
Shooting direction
vecSpread
Spread
flDistance
Max shot distance
iBulletType
Bullet type, look at the enum with name Bullet in cssdk_const.inc
iTracerFreq
Tracer frequency
iDamage
Damage amount

Description

Fires bullets from entity.

Note

: This native doesn't create a decal effect

Note

: Decal creation is handled by PlaybackEvent, including shot animation and shot sound

Return

This function has no return value.