Forums have been upgraded to the latest PHPBB3 version. Forum style recovery is pending.

Sound 'sprays'

Discussion about anything related to Team Fortress 2.
User avatar
FlaminSarge
•cC• Member
•cC• Member
Posts: 424
Joined: 08 Aug 2009, 12:30
Steam ID: STEAM_0:1:19100391
Contact:

Sound 'sprays'

Unread post by FlaminSarge »

No, it's not a mod, no, it's not a server variable.

As per http://developer.valvesoftware.com/wiki/Impulse, impulse 202 is the 'sound spray', a custom wav file that you can play to nearby players (assuming they've opted in).
To opt in, set cl_customsounds 1 in console (this tends to reset so to make it permanent set it in autoexec.cfg).
To set your 'spray', cl_soundfile "path relative to tf/". To play your 'spray', 'impulse 202'.
Contrary to the page, the maximum size for TF2 is 512KB, just like actual sprays. In addition, the sound uses the same cooldown as normal sprays, so you can only do one or the other every X seconds.

I was messing around with another dude with this, and this is what we came up with:
http://www.youtube.com/watch?v=5mQlOulDRLE

Fun stuff.

A bit of technical info here http://www.reddit.com/r/tf2/comments/xtb0j, such as the file requirements.
TF2Backpack
I make various SourceMod Plugins for TF2.
Also I fix things. And break things. No complaints.
User avatar
squishy
•cC• Member
•cC• Member
Posts: 138
Joined: 06 Jan 2010, 03:08
Steam ID: STEAM_0:0:27384194
Location: Yes

Re: Sound 'sprays'

Unread post by squishy »

Oh man. OH WOW.
I have a folder full of about 2000 sounds from Atomic Bomberman, many of which are pure gold quotes from Charlie Adler and Billy West. And almost all of them are under 512 KB.

This is going to be fun.
Indeed.
Haunwulf
•cC• Member
•cC• Member
Posts: 1026
Joined: 23 Dec 2009, 06:10
Steam ID: STEAM_0:0:999999999

Re: Sound 'sprays'

Unread post by Haunwulf »

If the sound exceeds the limit, will the sound be cutoff, or will it just not work?
User avatar
FlaminSarge
•cC• Member
•cC• Member
Posts: 424
Joined: 08 Aug 2009, 12:30
Steam ID: STEAM_0:1:19100391
Contact:

Re: Sound 'sprays'

Unread post by FlaminSarge »

It shows you that it's too large and won't work at all.
It'll only show you on mapchange/retry.
TF2Backpack
I make various SourceMod Plugins for TF2.
Also I fix things. And break things. No complaints.
Post Reply