EV_GLOBAL_CLIENT_SOUND

Discussions about ET modding (sdk code, player/weapon modeling)

Moderators: Forum moderators, developers

Post Reply
noclue

EV_GLOBAL_CLIENT_SOUND

Post by noclue »

Hi,

I am asking a simple tip how to make a sound just for the client.
I have noticed that there are two fuctions EV_GENERAL_SOUND and EV_GLOBAL_CLIENT_SOUND. If I have understood correctly, EV_GLOBAL_CLIENT_SOUND should play a sound for the client only (and not announce it also for other players like GENERAL_SOUND does).

However,

G_AddEvent( attacker, EV_GLOBAL_CLIENT_SOUND, G_SoundIndex( "sound/menu/referee.wav" )); does not work out, but if I replace EV_GLOBAL_etc with EV_GENERAL_SOUND it will play this referee whistle. Do I need to give some other variables for EV_GLOBAL_CLIENT_SOUND?
User avatar
bani
Site Admin
Posts: 2780
Joined: Sun Jul 21, 2002 3:58 am
Contact:

Post by bani »

some events only work as tempentities, EV_GLOBAL_CLIENT_SOUND is one of them because it requires more than 1 parameter.

use of this event has basically been phased out of ET (it was used in rtcw). you can see the commented out code in the sdk for examples of its use.
Post Reply