te_create_multi_gunshot

Синтаксис

stock te_create_multi_gunshot(position[3], direction[3], decal = 105, count = 1, noise_x = 0, noise_y = 0, receiver = 0, bool:reliable = true)

Употреба

position
Gunshot position
direction
Gunshot direction
decal
Bullethole decal texture index (0 - 255)
count
Number of bulletholes to generate (0 - 255)
noise_x
X noise multiplied by 100
noise_y
Y noise multiplied by 100
receiver
Client index that will be able to see the Gunshot
or 0 for all clients
reliable
If true, the message will be sent via the reliable
channel, otherwise it will use the unreliable one

Описание

Much more compact shotgun shot stock.

Забележка

This stock is used to make a client approximate a 'spray' of gunfire.
Any weapon that fires more than one bullet per frame and fires in a bit
of a spread is a good candidate for MULTIGUNSHOT use. (shotguns)

Забележка

This effect makes the client do traces for each bullet, these client
traces ignore entities that have studio models. Traces are 4096 long.

Забележка

Video preview of this and all other te_ stocks can be found here:
https://youtu.be/szW-bSMPuyQ?t=11m27s

Връщаща стойност

0 if "receiver" is non-zero and the client isn't connected,
1 otherwise