Talking Noises

Author Topic: Talking Noises  (Read 5031 times)

A Server Sided Add-on that makes cute little noises when people talk.
From S&R

Download!

Code: [Select]
%sound = getRandom(1,5);
echo("Random num " @ %sound);
if(%sound == 1)
%client.play2D(Jabber1);
if(%sound == 2)
%client.play2D(Jabber2);
if(%sound == 3)
%client.play2D(Jabber3);
if(%sound == 4)
%client.play2D(Jabber4);
if(%sound == 5)
%client.play2D(jabber5);

This could be shortened to %client.play2D("jabber" @ getRandom(1,5));

also why are you doing play2D on the client? you should play it from the player

Code: [Select]
%sound = getRandom(1,5);
echo("Random num " @ %sound);
if(%sound == 1)
%client.play2D(Jabber1);
if(%sound == 2)
%client.play2D(Jabber2);
if(%sound == 3)
%client.play2D(Jabber3);
if(%sound == 4)
%client.play2D(Jabber4);
if(%sound == 5)
%client.play2D(jabber5);

This could be shortened to %client.play2D("jabber" @ getRandom(1,5));

also why are you doing play2D on the client? you should play it from the player
Revising, thanks for the input. I wasnt aware you could play2D on the player. Is it %playerobject.play2D() ?
« Last Edit: June 24, 2014, 07:15:17 PM by RarwMuffinz »

Revising, thanks for the input. I wasnt aware you could play2D on the player. Is it %playerobject.play2D() ?
No. You can either serverPlay3D at the player's position or use some player function (i think it's something like playAudio)

this is one of the best mods

Make them high pitched :c

Make them high pitched :c
they're p high-pitched already lol


No. You can either serverPlay3D at the player's position or use some player function (i think it's something like playAudio)
Ill do a player dump and find it, one sec.

Edit:
Player::PlayAudio( int Slot, datablock Audioprofile)

Also a question for you coders out there, what "description"s are valid for AudioProfiles
« Last Edit: June 24, 2014, 07:55:50 PM by RarwMuffinz »


Also a question for you coders out there, what "description"s are valid for AudioProfiles
uhm any AudioDescription datablock

what do you mean

uhm any AudioDescription datablock

what do you mean
I meant what are all the audioDescription datablocks and what do each of them do

I meant what are all the audioDescription datablocks and what do each of them do
they just control volume and stuff

listAllDatablocks();

lol it's a neat idea

i feel like it would get annoying real fast though

What if your server has a lot of people and they are all talking, will it lag the server with the sounds?