Adding Weapons to Goldsrc Created 12 years ago2012-08-30 23:47:51 UTC by Sir Frohman Sir Frohman

Created 12 years ago2012-08-30 23:47:51 UTC by Sir Frohman Sir Frohman

Posted 12 years ago2012-08-30 23:47:51 UTC Post #309477
How do I add custom weapon .mdls to Goldsrc? Specifically my HL1 mod.
Posted 12 years ago2012-08-31 00:10:44 UTC Post #309479
If you're just doing weapon replacements, put them in your mod's models/ folder. (making sure they're named the same as the file in Half-Life's GCF/PAK you're replacing)
If you're making entire new weapons, you'll need to download the code SDK first.
Notewell NotewellGIASFELFEBREHBER
Posted 12 years ago2012-08-31 00:11:08 UTC Post #309480
Do you mean adding models to replace existing weapons or are you wanting to add completely new weapons and weapon models?

For example if you wanted to replace the exiting weapon models with another then you simply have to add the new models to your mods "models" folder. They need to have the same filenames as the models you want to replace.

If you wanted to add a desert eagle as a separate "new" weapon then you would need to speak to a programmer.

Edit: Damn Ninjas
monster_urby monster_urbyGoldsourcerer
Posted 12 years ago2012-08-31 00:27:45 UTC Post #309481
I want to add completely new weapons and weapon models, yes. I don't know who to talk to.
Posted 12 years ago2012-08-31 00:34:19 UTC Post #309482
If not, I'll just replace a weapon.
Posted 12 years ago2012-08-31 00:38:46 UTC Post #309483
Hopefully a coder will happen by soon, but if not, you could try PM'ing 2muchvideogames or Daubster, they'll set you on the right track. For models if you're making them yourself, it's going to be a long road. You'll need to select a modeling software with .SMD plugins, then learn it. Alternatively, HIT has a model depot with some weapon models of various real-world weapons (not just various versions of ones from HL) that you might be able to use. Just remember to credit the original authors!

Urby: Mah bad. Same minute.
Notewell NotewellGIASFELFEBREHBER
Posted 12 years ago2012-08-31 01:33:15 UTC Post #309484
Thanks. I'll keep it in mind. :)
Posted 12 years ago2012-08-31 02:15:23 UTC Post #309486
do u have a coding software? (like visual studio) and the HL SDK?

You need these to be able to modify code and create new weapons.
Posted 12 years ago2012-08-31 02:40:35 UTC Post #309487
Not atm, I'm working on my mod a bit more first.
Posted 12 years ago2012-08-31 13:38:17 UTC Post #309495
Adding new weapons in goldsrc is easy, as long as you don't do something derpy like compiling the cpp into the wrong DLL (...don't say anthing archie :P).

It's mainly just a case of copying the code for an existing weapon, changing the variables as appropriate, and recompiling the DLLs.

You'll need to get hold of the source code (go for spirit over vanilla imo) and a copy of visual c++. Visual c++ 2008 express is a free download, and there's a spirit download on moddb specifically for it.

C++ knowledge is recommended before you go messing with the source code, but not essential as it's mainly just copy-pasting.

When you get stuck into the source code, feel free to drop me a PM if you get stuck.
Posted 12 years ago2012-08-31 17:42:07 UTC Post #309502
Im still "working" on the tutorial for replacing weapon models, itll be up by the end of this year. (valve time)
You must be logged in to post a response.