Editing weapon.cfg


(Meyerinchains) #1

So I made new animations for a weapon and they don’t match the lengths of the weapon it replaces. That’s what weapon.cfg is for, correct? My RAISE animation is longer than the original and also the RELOAD animation is shorter than the original. I edit the weapon.cfg file to match my animations and I reference the the weapon.cfg correctly in the associated .weap file. The problem is that my animations aren’t working like they should. It appears as if they are using the stock weapon.cfg. As my RAISE animation is cut short and also RELOAD is longer than it should be. I’ve even tried renaming the files to soemthing else, such as newgun.cfg and referencing that name correctly in the associated .weap file. Still nothing. What am I doing wrong?

One more question too. The muzzle flash is appearing at the origin of my weapon rather than attaching to the tag_flash. Any reason as to why this occurs?


(No1_sonuk) #2

The running times for the animations are in the code, not any of the .weap or .cfg files. If you want to change them, you’ll have to do it in the game source I’m afraid.

The only thing you can do to get all your animation played without modding the code is to increase the FPS in the weapon.cfg files so that what you have plays faster, and within the coded time.

WRT the muzzle flash, I think you need tag_flash in one or more of the attached weapon parts, not just the _hand model (the animated tags).