Here's my understanding, and please correct me where I went wrong.
[quote]I open up a '.mdl' file using XVI32, in this case an already hexed model named 'v_rif_mk18.mdl', and find the sound names in there. These sound names are named "Weapon_M4A1.BoltPull", or something similar. To use a custom sound, we'd have to replace "Weapon_M4A1.BoltPull" with a different name, such as "Weapon_MK18.BoltPull".
[img_thumb]http://filesmelt.com/dl/XVI32.jpg[/img_thumb]
Now, to get the weapon to load that sound, we'd have to create a new sound script, a '.txt' file located in 'scripts/weapons', and use the different directory for it.
So
[code]"Weapon_M4A1.BoltPull"
{
"channel" "CHAN_ITEM"
"volume" "1.0"
"CompatibilityAttenuation" "1.0"
"pitch" "95,105"
"wave" "weapons\m4a1\boltpull.wav"[/code]
Would become:
[code]"Weapon_MK18.BoltPull"
{
"channel" "CHAN_ITEM"
"volume" "1.0"
"CompatibilityAttenuation" "1.0"
"pitch" "95,105"
"wave" "weapons\mk18\boltpull.wav"[/code]
And I'd put that into a new '.txt' titled 'Mk18.txt'.[/quote]
Where'd I go wrong? The above are the steps that I used, pretty much exactly, and it doesn't seem to work in-game.
Anyone?
Maybe you're not pasting all of it, but you are forgetting to close the { at the beginning with an } at the end. By the way that's not lua scripting.
Nah, it's closed off at the end.
But yeah, this is for a SWEP, so I thought that maybe other people who tried to make a SWEP had the same problem.
Sorry, you need to Log In to post a reply to this thread.