rg_fire_bullets

Signature
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);
Description

Fires bullets from entity.

Notes
  • This native doesn't create a decal effect
  • Decal creation is handled by PlaybackEvent, including shot animation and shot sound
Parameters
  • 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
No return value
Назад
Верх