NormalSHook TypeSet

This type has no description.

function Action(int clients[], int &numClients, char sample[], int &entity, int &channel, float &volume, int &level, int &pitch, int &flags, char soundEntry[], int &seed)

Called when a sound is going to be emitted to one or more clients. NOTICE: all params can be overwritten to modify the default behavior.

Parameters

clients

Array of client indexes.

numClients

Number of clients in the array (modify this value if you add/remove elements from the client array).

sample

Sound file name relative to the "sounds" folder.

entity

Entity emitting the sound.

channel

Channel emitting the sound.

volume

Sound volume.

level

Sound level.

pitch

Sound pitch.

flags

Sound flags.

soundEntry

Game sound entry name. (Used in engines newer than Portal 2)

seed

Sound seed. (Used in engines newer than Portal 2)

return

Plugin_Continue to allow the sound to be played, Plugin_Stop to block it, Plugin_Changed when any parameter has been modified.

function Action(int clients[64], int &numClients, char sample[], int &entity, int &channel, float &volume, int &level, int &pitch, int &flags, char soundEntry[], int &seed)

Deprecated. Use other prototype.

Parameters

function Action(int clients[64], int &numClients, char sample[], int &entity, int &channel, float &volume, int &level, int &pitch, int &flags)

Deprecated. Use other prototype.

Parameters