Getting that phono in Merderet to play tu et partout?


Kiff
09-21-2003, 02:03 AM
In 3.1 the phono on Merderet played that song from Saving Private Ryan. Is there a way to make the model of the phonograph play that song!?

I've decompiled the mdl file and it looks like this.

$modelname "C:\dodstuff\Models Stuff\Phonos\1.0\phono.mdl"
$cd "\dodstuff\Models Stuff\Phonos\1.0\"
$cdtexture "\dodstuff\Models Stuff\Phonos\1.0\"
$cliptotextures

$scale 1.0

// 0 attachments

// 0 bone controllers

// 2 hit boxes
$hbox 0 "arm" -9.280000 -32.720001 -15.830000 39.020000 16.780001 42.360001
$hbox 0 "arm01" -1.870000 -1.400000 -1.480000 23.010000 1.400000 0.000000

$bodygroup studio
{
studio "phono-ref"
}

// 4 sequences
$sequence play "play" loop fps 18 ACT_IDLE 1
$sequence start "start" fps 18 ACT_IDLE 1
$sequence stop "stop" fps 18 ACT_IDLE 1
$sequence off "off" fps 18 ACT_IDLE 1
I don't really understand this QC stuff, but is it possible to add a line to the play sequence { "mapsounds/tu_et_partout.wav"} So when you're near the model you hear the song?

Smack me down if i'm just talking gibberish.

Fiblah
09-21-2003, 04:46 AM
Im pretty sure its the maps settings. I dont think what your saying is possible.

MaRzY
09-21-2003, 09:05 AM
You could add the sound to the model, but you will probably have to adjust the FPS the anim plays at or maybe even add more frames to the anim so the tune loops properly. The only draw back with this, would be you would here the sound at the same level of volume within a certain area around the model. Just like the reload sounds, that someone added to the crouch anim's we used in 3.1. Or at least i think you will, not inless this sound problem was fixed in the new halflife patch.

Cheeto
09-21-2003, 11:04 AM
It's a map entity called ambient_generic that you're hearing. That's what plays all the sounds you hear in a game that aren't player controlled (gunfire and footsteps).

MaRzY
09-21-2003, 12:02 PM
Yes thats right Cheeto, the original sound would of been added to the map using a ambient_generic entity, but he can't edit the maps bsp file or it wont let him connect to a server. So the only other way is to try and add the sound to the model.

strider_d_3000
09-21-2003, 12:11 PM
how do u add sound to an exsisting model?

Cheeto
09-21-2003, 12:30 PM
Replace the sound file.

strider_d_3000
09-21-2003, 12:50 PM
i mean like how do you add a line to the qc to tell the model to play a certain mp3 or what ever after a certin animation sequence.
IE.While reloading the garand it plays a mp3 saying lock and loaded or something like that..and i dont mean copy and paste and voice after the reload garand sound...

Podunkian
09-21-2003, 03:03 PM
It's an event for the .qc. As for making the phonograph play tu es partout (or whatever it's called), you could also use Stripper2 to add it in, but it'd only work if you were the server, but it'd work for every player who connected to your server (granted they have the wave file). Pretty easy stuff if you list the entities of DOD_RAMELLE and copy and paste the entity into the Stripper file.

Relax-Zoring
09-22-2003, 04:15 AM
Or can you have it linked to play any of a bunch of MP3's randomly?

Cheeto
09-22-2003, 04:27 PM
You can't play MP3's, only WAV files, and since those have to be under 1MB, you're not going to be able to fit a very good quality song in there.

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.