Forum

> > CS2D > Scripts > sound
Forums overviewCS2D overview Scripts overviewLog in to reply

English sound

6 replies
To the start Previous 1 Next To the start

old sound

Marcell
Super User Off Offline

Quote
Hi help please!:(
i want to make that in crysis 2d mod
if i click to maximum speed.play sound

i created but not works
1
2
3
addhook("say","cry.sayfunction")
if msg("[Crysis]Maximum Speed!") then
parse("sv_sound \"crysis/nanosuit_speed.wav\""); end

old Re: sound

DannyDeth
User Off Offline

Quote
where is the function crysis.sayfunction?
You need this to make it work:
1
2
3
4
5
6
addhook("say","crysis.sayfunction")
function crysis.sayfunction(id,txt)
	if txt=="[Crysis]Maximum Speed!" then
		parse('sv_sound "crysis.nanosuit_speed.wav"')
	end
end

old Re: sound

DannyDeth
User Off Offline

Quote
That is because the array crysis doesn't exist or the sound doesn't exist. Go learn something before you ask shit.

old Re: sound

Marcell
Super User Off Offline

Quote
not shit-.-
have sound file,right place
but not play sound
and have crysis mod-.-

old Re: sound

DannyDeth
User Off Offline

Quote
Well then you are not saying "[Crysis]Maximum Speed!", because that is how it works, Good bye and I hope you figure out your problem.

old Re: sound

Yasday
User Off Offline

Quote
1
2
3
4
5
6
7
8
_msg = msg

function msg(txt)
if txt == "[Crysis]Maximum Speed!" then
parse("sv_sound \"crysis/nanosuit_speed.wav\"")
end
_msg(txt)
end

I think this is what he meant, not tabbed because I'm on iPod.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview