Source Mod 2013 (MP) - Adding weapon_physgun

Discussion in 'Game Modifications' started by opticalprocessor, May 12, 2014.

  1. opticalprocessor

    opticalprocessor Headcrab

    Joined:
    May 12, 2014
    Messages:
    6
    Likes Received:
    0
    Hey all!

    I'm fairly new to coding / mod creation and I want my first project to be a multiplayer game similar to gmod (except HEAVILY simpler).

    I have already downloaded Source 2013, Visual Studio, etc and found a improved version of weapon_physgun from the Half Life 2 Leak in early 2003 ( I think?).

    My question know is how I might get it to work inside Source 2013.

    I'm pretty sure that the code I'm using has networking stuff added into it but my main problem is adding it to c_weapon_stubs_hl2.cpp.

    Using the line
    Code:
    STUB_WEAPON_CLASS( weapon_physgun, WeaponGravityGun, C_WeaponGravityGun );
    fails to compile inside Visual Studio.

    If anybody could help me with this issue, please tell me!

    Thanks!
     
  2. opticalprocessor

    opticalprocessor Headcrab

    Joined:
    May 12, 2014
    Messages:
    6
    Likes Received:
    0
  3. Airuike

    Airuike Sandvich

    Joined:
    May 16, 2014
    Messages:
    2
    Likes Received:
    0
    Hey optical:

    I think the physgun is already in SDK 2013/Multiplayer:

    src/game/shared/hl2mp/weapon_physcannon.cpp

    The mega physcannon isn't in MP, but you could probably port the code. I happened to borrow the looks/animations/sprites from the mega physics canon in my own mod, but my weapon was based off of the crowbar, lol :)
     
  4. opticalprocessor

    opticalprocessor Headcrab

    Joined:
    May 12, 2014
    Messages:
    6
    Likes Received:
    0
    I mean the Physgun , you know.

    Like the one from Garry's Mod.
     

Share This Page