Jump to content

Vsays


makavelii

Recommended Posts

  • Management

Yes it's possible. It's done the same way like for other mods.

 

In order to do this you have to create a pk3 file with the following structure:

 

zzz_my_srv_souds.pk3

- scripts

  - wm_allies_chat.voice

  - wm_axis_chat.voice

- ui

  - wm_quickmessageAlt.menu

- sound

  - bye

  - greeting

  - misc

  - funny

 

The *.voice files define the sounds definitions.

Directories inside sound directory are just for your own convenience to group the files by kind, you might not have any of the as well.

Inside the sound categories direcotries place your .wav files and map them in the .voice files.

Then in the wm_quickmessageAlt.menu you define your vsay menu.

 

Example:

 

wm_allies_chat.voice

hello1
{
    sound/ksl/hi/hello1.wav "^4Hello!"
}

wm_quickmessageAlt.menu with hello1

QM_MENU_START( "wm_quickhibye_alt" )
    
    QM_MENU_ITEM( "^71. Dzien dobry",    exec "VoiceChat dziendobry";close wm_quickhibye_alt, "1", 0 )
    QM_MENU_ITEM( "^72. Hello 1!",        exec "VoiceChat hello1";     close wm_quickhibye_alt, "2", 1 )
    QM_MENU_ITEM( "^73. Hello 2!",        exec "VoiceChat hello2";     close wm_quickhibye_alt, "3", 2 )
    QM_MENU_ITEM( "^74. Hello 3!",        exec "VoiceChat hello3";     close wm_quickhibye_alt, "4", 3 )
    QM_MENU_ITEM( "^75. Hello 4!",        exec "VoiceChat hello4";     close wm_quickhibye_alt, "5", 4 )
    QM_MENU_ITEM( "^76. Hello 5!",        exec "VoiceChat hello5";     close wm_quickhibye_alt, "6", 5 )
    QM_MENU_ITEM( "^77. Hello 6!",        exec "VoiceChat hello6";     close wm_quickhibye_alt, "7", 6 )
    QM_MENU_ITEM( "^78. Hi!",            exec "VoiceChat kslhi";     close wm_quickhibye_alt, "8", 7 )
    QM_MENU_ITEM( "^D9. More...",        close wm_quickhibye_alt;    open wm_quickhibye2_alt, "9", 8 )
    
QM_MENU_END

If you don't know how to do it despite the example above, please check the pk3 files from some server and check how it is done there, you will quickly grasp the idea.

Link to comment
Share on other sites

I've a problem... The menu works fine, but the sounds don't work at all from my new packs i"ve updated..
 

////////////////////////////////
//           cool        //
////////////////////////////////

whiteamerica
{
	sound/cool/WhiteAmerica.wav	"^oWhite Americaaaaaaa!"
}

scatman
{
	sound/cool/scatm.wav	"^oIm a Scatmaaaaaaaaaaan!"
}

batman
{	
	sound/cool/batman.wav "^3Batmaaaaaan! ^rNanananan!"
}

blur
{
	sound/cool/blur.wav	"^4Wooooooohooooo!"
}

pussy
{
	sound/cool/duke3.wav "^1WHAT A PUSSY!"
}

crybb
{
	sound/cool/crybb.wav "^7I want my mommy!"
}

fart
{
	sound/cool/farted.wav "^5Who the fuck farted!"
}

fyou
{
	sound/cool/fyou.wav "^3Fuck you! Fuck you!"
}

gbye
{
	sound/cool/gbye.wav "^3Gooodbyeeee My lover!"
}

ilesbian
{
	sound/cool/ilesbian.wav	"^3Im soo lesbian right now.."
}

lag
{
	sound/cool/lag.wav "^rLag lag lag lag.."
}

loveyou
{
	sound/cool/loveyou.wav "^1I love youuuuuuu"
}

nani
{
	sound/cool/nani.wav "^3Nothiiing at alll!"
}

orgasma
{
	sound/cool/orgasma.wav "^rUhhhhhhh!"
}

orgasmb
{
	sound/cool/orgasmb.wav "^1Ohhhh.."
}

qsera
{
	sound/cool/qsera.wav "^rQue Sera sera sera.."
}

thunder
{
	sound/cool/thunder.wav "^3Thu nder!"
}

whosaid
{
	sound/cool/whosaid.wav "^rWho the fuck said that!"
}

whoyou
{
	sound/cool/whoyou.wav "^3Cmon now! Who do you think you areee.."
}

And then the quickmessageall

 

QM_MENU_START( "wm_cool_alt" )

	QM_MENU_ITEM( "1. ^oWhite Americaaaaaaa!",			exec "voiceChat whiteamerica";	close wm_cool_alt,			"1", 0 )
	QM_MENU_ITEM( "2. ^rScatman!",		exec "voiceChat scatman";	close wm_cool_alt,			"2", 1 )
	QM_MENU_ITEM( "3. ^rBatman",			exec "voiceChat batman";	close wm_cool_alt,			"3", 2 )
	QM_MENU_ITEM( "4. ^3Blur",			exec "voiceChat blur";	close wm_cool_alt,			"4", 3 )
	QM_MENU_ITEM( "5. ^rWhat a pussy!",			exec "voiceChat pussy";	close wm_cool_alt,			"5", 4 )
	QM_MENU_ITEM( "6. ^3Crybb",			exec "voiceChat crybb";	close wm_cool_alt,			"6", 5 )
	QM_MENU_ITEM( "7. ^ofart",			exec "voiceChat fart";	close wm_cool_alt,			"7", 6 )
	QM_MENU_ITEM( "8. ^3Cool2",					close wm_cool_alt;		open wm_cool2_alt,		"8", 7 )
	
QM_MENU_END

QM_MENU_START( "wm_cool2_alt" )

	QM_MENU_ITEM( "1. ^oFuck You",			exec "voiceChat fyou";	close wm_cool2_alt,			"1", 0 )
	QM_MENU_ITEM( "2. ^rGoodBye",		exec "voiceChat gbye";	close wm_cool2_alt,			"2", 1 )
	QM_MENU_ITEM( "3. ^rLesbian",			exec "voiceChat ilesbian";	close wm_cool2_alt,			"3", 2 )
	QM_MENU_ITEM( "4. ^3Lag",			exec "voiceChat lag";	close wm_cool2_alt,			"4", 3 )
	QM_MENU_ITEM( "5. ^rLove",			exec "voiceChat loveyou";	close wm_cool2_alt,			"5", 4 )
	QM_MENU_ITEM( "6. ^3Orgasm1",			exec "voiceChat orgasma";	close wm_cool2_alt,			"6", 5 )
	QM_MENU_ITEM( "7. ^oOrgasm2",			exec "voiceChat orgasmb";	close wm_cool2_alt,			"7", 6 )
	QM_MENU_ITEM( "8. ^3Cool3",					close wm_cool2_alt;		open wm_cool3_alt,		"8", 7 )
	
QM_MENU_END

QM_MENU_START( "wm_cool3_alt" )

	QM_MENU_ITEM( "1. ^oQue Sera!",			exec "voiceChat qsera";	close wm_cool3_alt,			"1", 0 )
	QM_MENU_ITEM( "2. ^rThunder!",		exec "voiceChat thunder";	close wm_cool3_alt,			"2", 1 )
	QM_MENU_ITEM( "3. ^rWho said",			exec "voiceChat whosaid";	close wm_cool3_alt,			"3", 2 )
	QM_MENU_ITEM( "4. ^3Who You?",			exec "voiceChat who you";	close wm_cool3_alt,			"4", 3 )

QM_MENU_END	

QM_MENU_START( "wm_tweak_alt" )

	QM_MENU_ITEM( "1. ^3Voice Chat ^2On",			exec "cg_noVoiceChats 0"; 			close wm_tweak_alt, "1", 0 )
	QM_MENU_ITEM( "2. ^3Voice Chat ^1Off",			exec "cg_noVoiceChats 1"; 			close wm_tweak_alt, "2", 1 )
	QM_MENU_ITEM( "3. ^3Display FPS Counter",	exec "cg_drawFPS 1"; 			close wm_tweak_alt, "3", 2 )
	QM_MENU_ITEM( "4. ^3Hide FPS Counter",		exec "cg_drawFPS 0"; 			close wm_tweak_alt, "4", 3 )
	QM_MENU_ITEM( "5. ^3Display Lagometer",		exec "cg_lagometer 1"; 			close wm_tweak_alt, "5", 4 )
	QM_MENU_ITEM( "6. ^3Disable Lagometer",		exec "cg_lagometer 0";			close wm_tweak_alt, "6", 5 )
	QM_MENU_ITEM( "7. ^3Simple SKY ^2ON",		exec "r_fastsky 1"; 			close wm_tweak_alt, "7", 6 )
	
QM_MENU_END	
	

The tweaks work fine, but the sounds dont..


 

Link to comment
Share on other sites

  • 3 months later...

I have a question about soundpack, are there any limits for files: wm_allies_chat.voice,  wm_axis_chat.voice or wm_quickmessageAlt.menu ? Because if I put too many links in wm_allies(axis)_chat.voice the others sound didn't work. When I delete few links everything working fine. Any solution for this issue? 

Link to comment
Share on other sites

  • Management

If I remember correctly, the limit is not dictated by some special reason, so the number could be increased probably. Today's computers don't have the memory limits as it used to be in the times of the game creation. The memory eaten by the sound definitions is eaten out of the hunkmegs, so the voice chat number increase would influence that. We will take a look into it. However, if the engine limits it somehow, there is nothing we can do in that matter.

Link to comment
Share on other sites

The one thing that can cause a limit, if I remember right, is ET has a limit on quick chat menus and you can only have a maximum number of sub menus.

But saying that if they are not quick chat then I don't think there is a limit just how long people are prepared to wait for the initial custom pk3 file to download.

Link to comment
Share on other sites

  • 6 months later...

Hello,

 

Since I started out my own server recently, I ve been planning on adding my customized voice chat sounds. The tutorial above looks quite good, but one thing bothers me, i.e,

 

how do I initialize and get the server to send out and execute the pk3 file? 

do i need to do some modification to my server config?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...