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

Reply
 
Thread Tools Display Modes
Old 06-21-2012, 05:20 AM   #16
zombie@computer
 
Join Date: Aug 2008
Reputation: 416
Posts: 908
still sounds like it doesnt compile right, or at least does not load the dll's you compiled. Try adding code in some existing weapon and see if that runs.
zombie@computer is offline   Reply With Quote
Old 06-21-2012, 08:48 AM   #17
Zombie Killa
 
Join Date: Jul 2007
Reputation: 0
Posts: 106
I see one problem
Quote:
class CWeaponColt1911 : public CHL2MPMachineGun
{
public:
DECLARE_CLASS( CWeaponColt1911, CHL2MPMachineGun );
should be
Quote:
class CWeaponColt1911 : public CBaseHLCombatWeapon
{
public:
DECLARE_CLASS( CWeaponColt1911, CBaseHLCombatWeapon );
That need's to be matched with the one in the stubs file.

Last edited by Zombie Killa: 06-21-2012 at 08:57 AM.
Zombie Killa is offline   Reply With Quote
Old 07-03-2012, 10:26 AM   #18
Codexofwisdom
 
Join Date: Nov 2011
Reputation: 0
Posts: 11
I notice that tutorial is missing the "add the gun to your sdk_shareddefs" files step (it seems every weapon tutorial misses one step or another). Did you do this?
There should be a tutorial in the docs folder of your mod that will walk you through this, as well.
Codexofwisdom is offline   Reply With Quote
Old 07-04-2012, 09:36 AM   #19
ProZak
 
Join Date: Mar 2004
Reputation: 60
Posts: 675
Is your mod based on singleplayer or Half-Life 2 Deathmatch?
ProZak 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 06:45 PM.


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