Adding weapons Created 16 years ago2007-08-06 23:32:02 UTC by kc8kjp kc8kjp

Created 16 years ago2007-08-06 23:32:02 UTC by kc8kjp kc8kjp

Posted 16 years ago2007-08-06 23:32:02 UTC Post #231475
Ok, i know how to do quite a bit in HL coding, and i sort of know how to add a new weapon but i need a little help to make sure i do it right. What i want to do is add a second MP5 weapon to the HL code
Posted 16 years ago2007-08-06 23:37:54 UTC Post #231476
Try copying the the Mp5.cpp rename it to Mp5_2.cpp, or whatever you want to, adjust only the entity name the hud position and shit... And you'll need to add the new weapon class in some of the .cpp file on the HL dll and in the Client dll. I forget what .cpp file you should edit.
Posted 16 years ago2007-08-06 23:51:35 UTC Post #231478
I wish it was that simple. You can't do it just like that, you need to rename function names, create event links, register the weapon and all sorts of other crap. Go to wavelength, there is a tutorial there somewhere about what needs to be done to make a new weapon work.
Here's a link to that tutorial.
http://articles.thewavelength.net/183/
Posted 16 years ago2007-08-07 11:18:14 UTC Post #231491
Adding a new weapon is easy if you're following a good tutorial. There was one very detailed tut, covering almost every aspect of adding a new weapon at VERC.. Can't remember the name, though it should be easy to find. :)
Daubster DaubsterVault Dweller
You must be logged in to post a response.