rg_fire_bullets3
native Float:[3] rg_fire_bullets3(const inflictor, const attacker, Float:vecSrc[3], Float:vecDirShooting[3], const Float:vecSpread, const Float:flDistance, const iPenetration, const Bullet:iBulletType, const iDamage, const Float:flRangeModifier, const bool:bPistol, const shared_rand);
| Parameter |
Description |
| 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) |
| vecSrc | The source position of the barrel |
| vecDirShooting | Shooting direction |
| vecSpread | Spread |
| flDistance | Max shot distance |
| iPenetration | The amount of penetration |
| iBulletType | Bullet type, look at the enum with name Bullet in cssdk_const.inc |
| iDamage | Damage amount |
| flRangeModifier | Damage range modifier |
| bPistol | Pistol shot |
| shared_rand | Use player's random seed, get circular gaussian spread |
Fires bullets from player's weapon.
: This native doesn't create a decal effect
: Decal creation is handled by PlaybackEvent, including shot animation and shot sound
Float:[3] The spread result