Well, I finally got what I wanted. Well, sort of. Thanks, Invisigoth, and thanks ShaDoOoW.
What I actually ended up with was a complete custom replacement of the Heavy Crossbow (I gave my players BACK the heavy crossbow - sort of - by replacing some of the light crossbow icons and models with heavy crossbow icons and models, then giving the item a free property that gives them some extra piercing damage; not perfect, but it works).
As to the sound, I discovered that this is dependent on the replacement weapon pointing to the custom ammo in the Ranged Weapon column of the baseitems.2da. Both the weapon AND the ammo (why? I don't know) have to have the right reference line in the Ammo Type column of the baseitems2da. This, of course, has to have a custom entry in the ammunitiontypes.2da to point to.
But if you do all this, then the custom weapon sound fires if the right ammo is used. Interestingly, it can still use any bolt related ammunition, and in fact, the game will automatically try to automatically reload with such ammunition if it is available in the PC's inventory once the equipped custom ammo runs out. I'll have to script around that little problem.
Anyhow, this solved the problem to MY requirements. Not sure how helpful it is to you though, Invisigoth, as you wanted to preserve ALL the weapons intact. You are probably right about that being impossible.
Oh, and an interesting note during developing this, the reason I had to make a completely custom weapon (using "wbwzh" as the type instead of "wbwxh" for crossbow) is that if I just overwrite the heavy crossbow models and icons with replacements, the icons only work in the Toolset. When the icon is viewed in the game, it inexplicably shows the original crossbow icon. This was very wierd, and I can only assume that the game engine was not looking for the TGA files in the hak first, as it should, but instead went directly to the official game resources. However, if you create a completely custom set of models and icons, it works fine. This really isn't as difficult as it sounds, since it's mostly just a matter of renaming files.
Anyhow, thanks again for all your help. This forum (sorry, "social networking site") has the best crew of people around.
'>
Modifié par Michael_Patty, 03 septembre 2010 - 05:34 .