cs_set_weapon_burst

Синтаксис

native cs_set_weapon_burst(index, burstmode = 1);

Употреба

index
Weapon entity index
burstmode
If nonzero the weapon will be put into burstmode,
otherwise the burst mode will be removed

Описание

Sets the weapon's burst mode.

Забележка

Only the Glock and Famas can be set to burst fire mode as they are the
only guns in the game that provide such a mode.

Забележка

This native does not verify that the provided entity is a weapon
entity. It will result in undefined behavior if used on non-weapon
entities.

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

1 if burst mode set successfully, 0 if entity is not
an applicable weapon

Грешка

If an invalid entity index or a client index is
provided, an error will be thrown.