what is needed to

russ_uk

Newbie
Joined
Apr 10, 2005
Messages
201
Reaction score
0
what is needed to add a new weapon to hl2 , i would like to use the standard smg and have a zoom feature as the secondary weapon (like the barricade video from ages ago) , what tools/apps are needed ?
 
well youll need to get yourself a copy of visual studio 2003. youll need to need to learn c++. why exactly do you want to do this.
 
i am starting to mod hl2 , had enough of modding startrek armada1 & 2
 
i now have Visual Studio 2005 Express Edition , is there any tuts on adding the weapons to the dll files that a noob can understand ? :cheese:
 
you will also need to rig animate and compile your custom weapon. unless this is just to add zoom to the existing smg. which seems kinda stupid to me.
 
it would make the smg as it is supposed to be , where on the model is the grenade launcher ? ( it has no grenade launcher on the model)
 
there is no grenade launcher. what do you meen "as it is supposed to be"
 
What I'm sure crackhead meant was:

take a look at http://www.chatbear.com/board.plm?a=viewthread&t=104,1102070328,6443&b=4991&v=flatold

This is the discussion on getting HL2 to compile under VS Express Edition. Not the easiest thing ever, but if I got working, anyone can.

Then you want to do some searches for PrimaryAttack() and SecondaryAttack() and see what the code there does for each weapon. Specifically, examine the bolt thrower's secondary and apply the code to the secondary of the SMG instead.

That's how I'd approach it anyways.
 
tried this way using VS Express Edition but it did not work for me :( , would somebody try it for me please ? ;)
 
russ_uk said:
tried this way using VS Express Edition but it did not work for me :( , would somebody try it for me please ? ;)

The compiling or the weapon part?
 
It looks like the VERC forum is down.

Can you pm me the errors from the compile?
 
well, what are you doing?

Are you telling it to build the HL2 project?
 
yes i think , please run though what you do when doing this (to make sure)

edit : i have also tried it in Dev-C++ , no error but says it is not compiled
 
In Visual C++ Express, I opened up the Game project, right clicked on "HL2" and selected "Build"

Then it spit back about 30 errors in the output pane in the bottom, so I set about fixing them till it worked.
 
russ_uk do you actualy know anything about c++ do you know how to open a solution and build a solution? do you know what you are doing?
 
i dont think i know it all. i think you dont know what your talking about.
 
hmm fighting talk from where i come from is that , if you think you know how to do it tell us all how it is done in detail
 
Man, I tried to tell you.

You open the solution, select the HL2 project, right click on it and select build and then post what appears in the output pane.

You should get a ton of errors, because, well, everyone does.

Then we figure out what to do about the errors. I've gotten this to compile, and last night I managed to get your zooming smg to work too.
 
it does not give me the option for creating .dll files is this correct ?
 
so it added it to the client.dll ? , could you please send me the .cpp files etc ;)
 
I'm not at home at the moment, but they are in the HL2 project, nested in the source files, then hl2 or something. It's weapon_smg1.cpp.

I'll post it here when I get home.
 
cool thx dude , then i will have to try again and compile it again
 
It appears that it is not quite that simple, since I screwed something up. I'm rebuilding the solution right now with my fixes.
 
Back
Top