I was wondering if its possible to change which sound plays when something is done. For instance changing the sound effect of the mp40 shooting into a different sound. Or maybe inserting a new sound into a certain vsay. If anyone knows I would appreciate the help. Thanks.
Is it possible to use different sounds for stuff in ET?
Although it is possible by editing the game’s .pk3 files, it’s impractical because either the server would need to be unpure (good luck finding one, and you’d be the only one to hear the different sounds anyway!) or the server would need to run the same edited .pk3’s as you, as would all the other players on the server.
What if I didnt care about other people hearing me? For instance, I want a different sound for the allied thompson, I dont care if other people hear it or not but I dont like the current one. Is it possible to change it and still join pure servers?
Are you sure? Can’t you rename a .wav file to mirror that of the original Mp40 sound file, and then replace the Mp40 sound file?
… a pure server will only allow clients with files that are the same as the ones on the server …
If you edit your pk3’s a server with sv_pure 1 must have exactly the same pk3’s. If not you cant join the server. If you try you will get disconnected from the pure server.
In short…no you can’t.
How can it tell whether the sound is the same or different? Is there some other way to tell than filename and filesize?
I think that’s scary. O.O
At runtime for the server and on connect for the client, the pk3 files are read and a CRC is calculated. When a client connects, the server compares its local CRC with the client’s CRC to make sure they are the same. Changing a sound file in the pk3 then repacking it will change the pk3’s CRC value and therefore mark it as different. It might be possible to make such a small change that the CRC value comes out the same as the original. But this would probably be detected by PB as a game integrity violation and you’d be banned.
In short, there’s no way for the server to determine if you altered the Axis Soldier model to make it look “cooler” or if you made it ultra-bright and spiked so you can see it around corners. So instead of coding some highly complicated and processer intensive function to determine if your modifications were acceptable or hacks, it just assumes that if you’re changing game assets you’re doing something wrong.
So while I’m stuck with a knife that looks kinda dopey and lacks cool jagged edges and blood stains, I can take comfort knowing everyone else is stuck with it too. =)
RK