Monthly Target: $400 Donations: $44
 11% 

[HL2DM] Customguns


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Alienmario
Senior Member
Join Date: Aug 2013
Plugin ID:
4937
Plugin Version:
Plugin Category:
Gameplay
Plugin Game:
Half-Life 2 Deathmatch
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Adds custom weapons to HL2:DM
    Old 12-06-2015 , 11:12   [HL2DM] Customguns
    Reply With Quote #1

    This is the latest project I've been working on in the past few months.

    This plugin adds support for additional weapons, which are fully configurable themselves via weapon scripts.
    • Also included is a custom weapon switcher which is used to draw the selection menu to clients. This is activated by holding the reload button.
    • In a nutshell, all of this is accomplished by changing the classname (thx) of the almighty cubemap weapon with a bit of DHooks on top.



    Cvar list:
    Quote:
    customguns_default | The preferred custom weapon that players should spawn with (weapon_hands by default)
    customguns_global_switcher | Enables fast switching from any weapon by holding reload button. If 0, players can switch only when holding a custom weapon.
    customguns_autogive | Globally enables/disables auto-giving of all custom weapons
    Admin commands:
    Quote:
    sm_customgun or sm_customguns | Spawns a custom gun by classname or gives it to a player if specified
    Requierements:
    DHooks

    More info and latest version:
    https://github.com/Alienmario/customguns-hl2dm

    Last edited by Alienmario; 01-24-2016 at 18:00.
    Alienmario is offline
    asherkin
    SourceMod Developer
    Join Date: Aug 2009
    Location: OnGameFrame()
    Old 12-06-2015 , 13:10   Re: [HL2DM] Customguns
    Reply With Quote #2

    Very impressive, nice work!
    __________________
    asherkin is offline
    Alienmario
    Senior Member
    Join Date: Aug 2013
    Old 01-24-2016 , 10:47   Re: [HL2DM] Customguns
    Reply With Quote #3

    Here's an example gamemode with custom scripted weapon - Cannonball!
    Usable for FFA (mp_teamplay 0) or as base for other scripted weapons or modes.



    https://github.com/Alienmario/custom...nball_gamemode

    After installing type !cannon to start the cannon-only gamemode. Type it again to end it or wait until the map ends.


    ----
    Also, since first post, the main plugin has been updated with many fixes and features so make sure you have the latest version!
    Alienmario is offline
    Alienmario
    Senior Member
    Join Date: Aug 2013
    Old 01-25-2016 , 14:43   Re: [HL2DM] Customguns
    Reply With Quote #4

    Friagram's entity grabber modified as super physcannon weapon
    + fixes
    + hl2dm modifications
    Attached Files
    File Type: smx weapon_grabber.smx (9.5 KB, 41 views)
    File Type: sp Get Plugin or Get Source (weapon_grabber.sp - 34 views - 8.9 KB)
    File Type: txt weapon_grabber.txt (1.6 KB, 58 views)
    Alienmario is offline
    TheLaser
    Senior Member
    Join Date: Jan 2008
    Location: USA VA
    Old 01-26-2016 , 07:44   Re: [HL2DM] Customguns
    Reply With Quote #5

    Alienmario,

    Once again nice work on this mod but I am having some issues with it ...

    On my HL2TDM server had no problems making the OICW work but will not show up on my COOP server , and on both the MOLOTOV shows up on both but cant toss them ?

    I have seen on several other severs the use of more guns like the TAO and Flare , and the chain gun in the video you posted ,are there Game scripts available for these ?

    Thank you for still supporting an 11 year old game , I no longer run my servers 24/7 but still enjoy playing when I have time with old friends

    Last edited by TheLaser; 01-26-2016 at 07:48. Reason: adding
    TheLaser is offline
    Alienmario
    Senior Member
    Join Date: Aug 2013
    Old 01-26-2016 , 15:09   Re: [HL2DM] Customguns
    Reply With Quote #6

    Quote:
    Originally Posted by TheLaser View Post
    Alienmario,

    Once again nice work on this mod but I am having some issues with it ...

    On my HL2TDM server had no problems making the OICW work but will not show up on my COOP server , and on both the MOLOTOV shows up on both but cant toss them ?

    I have seen on several other severs the use of more guns like the TAO and Flare , and the chain gun in the video you posted ,are there Game scripts available for these ?

    Thank you for still supporting an 11 year old game , I no longer run my servers 24/7 but still enjoy playing when I have time with old friends
    Hi, sometimes moving files (weapon script, models, materials, sounds) from the custom folder to the game folder works, due to read restrictions (?). So try using the hl2mp/scripts, hl2mp/models folders instead, but keep game_sounds_* inside custom.
    Also, if not all files download to the client, try adding the missing files manually in each weapon script.

    Both flare gun and the Tau gun are possible to create with a plugin. I haven't made them yet and likely won't as they're not so necessary for bouncy. The minigun is also exclusive but it's actually possible to make just by configuring the weapon script.
    Alienmario is offline
    TheLaser
    Senior Member
    Join Date: Jan 2008
    Location: USA VA
    Old 01-28-2016 , 16:18   Re: [HL2DM] Customguns
    Reply With Quote #7

    Well tried everythging still see the Molotov but cant seem to toss it ...
    I did get the Gauss to show up and it looks good just cant figure out how to make it fire the sprites and sound , it acts just like an ar2 but does look good just dont know scripting all that well .
    But I must say your mod makes bringing in the models and selecting them in game easy
    TheLaser is offline
    Alienmario
    Senior Member
    Join Date: Aug 2013
    Old 01-28-2016 , 16:24   Re: [HL2DM] Customguns
    Reply With Quote #8

    Quote:
    Originally Posted by TheLaser View Post
    Well tried everythging still see the Molotov but cant seem to toss it ...
    ^Redownload the files
    Alienmario is offline
    TheLaser
    Senior Member
    Join Date: Jan 2008
    Location: USA VA
    Old 01-28-2016 , 18:20   Re: [HL2DM] Customguns
    Reply With Quote #9

    Ok Ill give that a try , im not using your mod on Coop btw.
    maybe you can give me the WeaponData setting I need for the minigun since i did get that to work , im using the same one as for the OICW and it fires but not rapid just one shot at a time ..

    Thanks
    TheLaser is offline
    _pHabb
    Senior Member
    Join Date: Jul 2013
    Location: GetCountry(pHabb);
    Old 01-28-2016 , 18:38   Re: [HL2DM] Customguns
    Reply With Quote #10

    work in cs source?
    _pHabb is offline
    Reply


    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

    Forum Jump


    All times are GMT -4. The time now is 01:01.


    Powered by vBulletin®
    Copyright ©2000 - 2016, vBulletin Solutions, Inc.
    Theme made by Freecode