Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding

Reply
 
Thread Tools Display Modes
Old 01-23-2008, 11:02 AM   #1
Maxunit
 
 
 
Join Date: Aug 2004
Reputation: 27
Posts: 481
SMG1 and AR2 not firing at all...

Hi there guys,

I modding Half-Life 2 since yesterday using the HL2 DM SDK Part.
I found this link Adding Firing Modes to your weapons but my SMG1 and AR2 wont really shoot at all. Sounds play, animations play, sprites there etc..but no bullets flying, no damage causing. Can anyone help me and tell me what I did wrong?

Greetz,

Maxunit
Maxunit is offline  
Reply With Quote
Old 01-23-2008, 04:10 PM   #2
Maxunit
 
 
 
Join Date: Aug 2004
Reputation: 27
Posts: 481
20 views, noone who can help me? I don't expect people to reply directly with a uber leet hax solution but maybe gimme a hint, what i did wrong or what to do different compared to the tut to remove the bugs i have so far :P
Maxunit is offline   Reply With Quote
Old 01-23-2008, 11:19 PM   #3
buckmeister
 
 
 
Guest
Posts: n/a
If both SMG and AR2 are affected, your problem's probably in weapon_hl2mpbase_machinegun.cpp or weapon_hl2mpbase_machinegun.h

whack the code for them up

www.pastebin.ca
  Reply With Quote
Old 01-24-2008, 07:27 AM   #4
Maxunit
 
 
 
Join Date: Aug 2004
Reputation: 27
Posts: 481
whack the code for them up? I mean, it is in the tutorial :P When i put in the original weapon_hl2mpbase_machinegun.h and weapon_hl2mpbase_machinegun.cpp then all works again...but i will upload both codes for you

btw, are you german? pastebin.ca = german site, your nickname = contains german word :P (Deutsch/German: Falls ja, hast du MSN oder ICQ?)

Codes from pastebin:

weapon_hl2mpbase_machinegun.h
weapon_hl2mpbase_machinegun.cpp
weapon_smg1.cpp

Those 3 pastebin codes are the original code parts, nothing modded. Maybe you can help me what I have to re-code correctly and send me the pastebins here in the topic or via pm.

Greetz,

Maxunit
Maxunit is offline   Reply With Quote
Old 01-24-2008, 12:18 PM   #5
Maxunit
 
 
 
Join Date: Aug 2004
Reputation: 27
Posts: 481
First problems solved, now I want to modify the code from the AR2, so that my new AR2 weapon acts like the airboat gun. I found a tutorial, but following it causes many problems. Here's a link to it:

3 state rechargeable ammo

And here the code from my modified AR2(just changed the name from the weapon to Pulse Rifle and uses a different model)

Code from my Pulse Rifle

Maybe someone can point me into the right direction

Greetz,

Maxunit
Maxunit is offline   Reply With Quote
Old 01-24-2008, 02:41 PM   #6
Winston
 
Join Date: Jul 2007
Reputation: 84
Posts: 2,170
Quote:
Originally Posted by Maxunit View Post
it causes many problems
Such as? .
Winston is offline   Reply With Quote
Old 01-24-2008, 02:46 PM   #7
Maxunit
 
 
 
Join Date: Aug 2004
Reputation: 27
Posts: 481
such as, unknown classes like the private: thing and i cant compile the code
but a mate of mine helped me a bit...i need to learn more about classes first...
Maxunit is offline   Reply With Quote
Old 01-24-2008, 10:55 PM   #8
Maxunit
 
 
 
Join Date: Aug 2004
Reputation: 27
Posts: 481
all fixed...got some help from a mate of mine
Maxunit is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -7. The time now is 10:33 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.