Talk:Creating A Multiplayer Weapon

From Valve Developer Community
Jump to: navigation, search
  • This page was tagged for speedy deletion, I've removed the deletion as I am using this page.

--Grash 23:41, 29 October 2009 (UTC)

  • This should be added to the tutorial section
    • It has... --Grash 16:49, 15 Nov 2007 (PST)
  • Wouldn't a better title be "Replacing a Multiplayer Weapon"? Reacher 07:37, 27 Dec 2006 (PST)
    • But it isn't replacing. Outcast
    • It's not replacing, by creating a new file you are adding a new weapon... the only problem I have is that there is very little other information about what you're doing. This tutorial needs a follow up (or linked to information) that digs deeper into modifying weapons
  • In the Tutorial, it's asking to replace CWeapon357 with CWeaponRifle in the source code, but says not touch any of the sound code... Both me and my students looked through and didn't see anything that would be replaced. What are we missing? --Grash 13:22, 15 Nov 2007 (PST)


  • I'm looking to expand this tutorial... On the single player side of things you have to
    • 1) not add the weapon to the client side,
    • 2) Add in the c_weapon__stubs.cpp you need to add a line like the following (there are several defined there).
      • STUB_WEAPON_CLASS( weapon_rifle, WeaponRifle, C_BaseHLCombatWeapon );
    • They're prob a few more things to add... as well... --Grash 16:50, 15 Nov 2007 (PST)
  • There are a few other things that need to be changed in the code, these are mostly with the DT_ stuff.--Grash 16:50, 15 Nov 2007 (PST)