native

rg_emit_texture_sound

Syntax

native rg_emit_texture_sound(const ptr, Float:vecSrc[3], Float:vecEnd[3], Bullet:iBulletType);

Description

Emits a sound based on a traceresult simulating a bullet hit (metal, wood, concrete, etc.).

Parameters

ptr Traceresult pointer, use Fakemeta's create_tr2 to instantiate one
vecSrc Start position
vecEnd End position, must match ptr's vecEndPos member
iBulletType Bullet type, see BULLET_* constants in cssdk_const.inc

Note

Used mostly on trace attacks (bullets, knife).

Return

This function has no return value.