Adding custom weapons without replacing Created 15 years ago2009-06-05 12:05:37 UTC by BSTB BSTB

Created 15 years ago2009-06-05 12:05:37 UTC by BSTB BSTB

Posted 15 years ago2009-06-05 12:05:37 UTC Post #267981
Hello people. I have looked all over various websites but have had no luck. I have been making maps and mini-mods in Half Life for nearly 2 years now. I am working on a mod and everything is going great except for one thing. How do I add custom weapons to my mod without replacing any of the existing ones? For example, how do I add another melee weapon such as a knife while still keeping the original crowbar so that both weapons can be used in-game. Any help will be greatly appreciated. Thanks.
Posted 15 years ago2009-06-05 12:19:05 UTC Post #267983
What if you switch to Opposing force and replace the wrench with a crowbar?
Plus you'll get a whole slew of new enemies
Tetsu0 Tetsu0Positive Chaos
Posted 15 years ago2009-06-05 15:45:18 UTC Post #267986
Yeah, Opposing Force has multiple melee weapons coded in. If you don't own / want to use Opposing Force, then coding is your only option.
monster_urby monster_urbyGoldsourcerer
Posted 15 years ago2009-06-05 16:25:07 UTC Post #267988
I see. Will Microsoft Visual C++ 2008 express edition allow me to code weapons?
Posted 15 years ago2009-06-06 03:19:02 UTC Post #268013
It will, but you'll need the Half Life SDK.
Posted 15 years ago2009-06-06 03:29:48 UTC Post #268014
I think you'll have some trouble getting it to work in 2008 edition. If you can't get it to work, try Visual Studio 6.
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2009-06-06 07:57:14 UTC Post #268017
The most basic thing you could do is copy the crowbar code and replace names for models, sounds, and the weapon itself. I'm not sure if that's all you have to do or not... I was thinking of doing something similar myself after my current mod is finished.
Notewell NotewellGIASFELFEBREHBER
Posted 15 years ago2009-06-06 09:20:43 UTC Post #268018
Visual C++ 6.0 is what you need.
You must be logged in to post a response.