AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Emitting a sound (https://forums.alliedmods.net/showthread.php?t=207814)

Jelle 02-07-2013 04:53

Emitting a sound
 
I haven't coded for a long time now, so I am getting rusty as hell.

I want to emit a sound from a player, and I want other players to hear it, like it decays over the distance between the player who emitted the sound and the one hearing it, just like the guy actually says the sound.

Since the funcwiki got lost there isn't much to learn on there, it only shows the syntax.

I am guessing I need to use the channel voice. I am using this:

PHP Code:

emit_sound(idCHAN_VOICEgDukeStart1.0ATTN_NORM0PITCH_NORM

I can't test it for quite some time, so it would be nice to know.

naven 02-07-2013 07:35

Re: Emitting a sound
 
Quote:

I can't test it for quite some time, so it would be nice to know.
Actually if you can't test, you can't code.

Jelle 02-08-2013 04:28

Re: Emitting a sound
 
Quote:

Originally Posted by naven (Post 1889067)
Actually if you can't test, you can't code.

I have written almost the whole thing, all I need is this emit sound thing.

i can test, just not for some time since I won't be able to be at a computer which has a server and a client installed.

P1raten 02-08-2013 05:20

Re: Re: Emitting a sound
 
Quote:

Originally Posted by naven (Post 1889067)
Actually if you can't test, you can't code.

What...?


All times are GMT -4. The time now is 11:11.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.