Raised This Month: $12 Target: $400
 3% 

[DoD:S] Gun Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Plugin ID:
3196
Plugin Version:
2.0
Plugin Category:
Fun Stuff
Plugin Game:
Day of Defeat: Source
Plugin Dependencies:
    Servers with this Plugin:
    9 
    Plugin Description:
    Lets players select from a menu of allowed weapons
    Old 08-24-2012 , 18:01   [DoD:S] Gun Menu
    Reply With Quote #1

    Hi all!
    Actually i've created this plugin for DeathMatch, but then I found this plugin is very funny at any server and gameplay.
    Plugin is very simple and easy in settings. I hope you like it
    Special thanks to LumiStance.

    Description:
    Provides a menu to choose weapons. Once choosen the weapons are automatically given at respawn.
    The available weapons are configurable (see configuration below). The menu also provides a choice
    of no gun or random. Bots are given the same items as players and only random guns.
    Since 2.0 update, you can get weapons by saying 'k98' or 'bar' or
    Spoiler


    Configuration:
    This is really simple to setup & configure a plugin. You need to open config/weapons.ini file.
    You can easily include or exclude separate guns from a menu.
    To disable gun(s) you need to comment classname (//"weapon_")
    You can disable weapons at all. For example, if you dont want to allow players to choose a grenades - just comment all "weapons_" in 'Grenades' section. Same for primary, secondary & melee weapons.
    A note: removed weapons will not be available via say command.
    Translations are also avalible! Just rename menu text ("M1 Garand") to any you want and go!

    ConVars:
    dod_guns_enablemenu <1/0> - Whether or not show gun menu at every respawn
    dod_guns_saveweapons <1/0> - Whether or not save preferenced weapons and automatically give them on respawn
    dod_guns_usetriggers <1/0> - Whether or not allow players to say "weapon" and get its weapon by classname

    Commands:
    !gunmenu\
    !guns-----} When enabled, presents player with menus to choose primary, secondary, melee weapons & grenades
    !weapons/

    Installation detalis:
    Put weapons.ini to sourcemod/configs folder
    Put dod_gunmenu.sp to sourcemod/scripting folder
    And put dod_gunmenu.smx to sourcemod/plugins folder

    Notes:
    -You can recall gun menu in any time
    -If player have not chosen any gun, he will stay with stock class weapons.
    -This plugin may be not compatible with DoDS Equipment, because GunMenu perform equiment too fast (immediate after respawn without any timers).
    -It requires at least SM 1.5.0

    Servers with this plugin

    Download plugin
    Browse source code
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot

    Last edited by Root_; 01-15-2014 at 00:06. Reason: v 2.0 update
    Root_ is offline
    Biggles
    New Member
    Join Date: Aug 2012
    Old 09-03-2012 , 23:29   Re: DoD:S GunMenu
    Reply With Quote #2

    Good job Root. I use a map config to enable this on the small arena type maps which is heaps of fun. Works like a charm!
    Biggles is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 10-25-2012 , 15:10   Re: [DoD:S] GunMenu
    Reply With Quote #3

    An update have been released (1.1)
    -Fixed an issue when melee weapons or grenades wasnt changed after re-calling a gunmenu
    -Fixed an issue when client received a message in a console like "unknown command"
    -Fixed an issue when gunmenu was re-enabled when client is actually disabled it forever
    -Fixed a huge lag on first gunmenu using
    -Some minor improvements and optimizations
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot
    Root_ is offline
    alencore
    Senior Member
    Join Date: Oct 2011
    Old 09-30-2013 , 10:36   Re: [DoD:S] GunMenu
    Reply With Quote #4

    Another awesome plugin by Root! Tnc u very much! :-)
    __________________
    alencore is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 11-15-2013 , 08:12   Re: [DoD:S] GunMenu (2.0)
    Reply With Quote #5

    I've updated plugin to version 2.0 due to request.
    -added option to save preferenced guns between respawns (dod_guns_saveweapons cvar)
    -added option to get weapon by saying its classname. If you will say frag_ger or garand, you will get stick grenade and M1 Garand (dod_guns_usetriggers cvar)
    -slightly optimized and improved plugin
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot
    Root_ is offline
    nanswery
    Junior Member
    Join Date: Apr 2015
    Old 05-17-2015 , 06:05   Re: [DoD:S] Gun Menu
    Reply With Quote #6

    hello root

    this plugin is awsome, i am telling you. but since we added gungame mod on our server, is it possible to use this on normal maps. cuz we cant use the menu on gungame mod! is there a way to do that by add some cvar on map cfg?. thank you and hope to hear you soon!

    Last edited by nanswery; 05-17-2015 at 06:10.
    nanswery is offline
    Merrill
    Member
    Join Date: Jun 2006
    Location: Houston
    Old 04-01-2018 , 17:13   Re: [DoD:S] Gun Menu
    Reply With Quote #7

    Can we get limits per life? Players can keep changing weapons as much as they want to spam nades. Would be nice to limit it to one weapon change per life.
    Merrill is offline
    micmacx
    Member
    Join Date: May 2021
    Old 01-19-2024 , 18:39   Re: [DoD:S] Gun Menu
    Reply With Quote #8

    Hi,
    It's a little update :
    • Juste remove FCVAR_PLUGIN.
    • Replaced FindSendPropOffs by FindSendPropInfo.
    • And added security so that it does not send the menu to bots to prevent them from selecting the MG.
    Attached Files
    File Type: sp Get Plugin or Get Source (dod_gunmenu.sp - 28 views - 26.0 KB)
    File Type: ini weapons.ini (962 Bytes, 13 views)
    __________________

    Last edited by micmacx; 01-19-2024 at 18:46.
    micmacx is offline
    DNA.styx
    Junior Member
    Join Date: Dec 2023
    Old 01-21-2024 , 13:41   Re: [DoD:S] Gun Menu
    Reply With Quote #9

    > And added security so that it does not send the menu to bots to prevent them from selecting the MG.
    Nice. Noticed that bots seemed to picked a random gun, whereas I wanted the bots guns to be controlled by .ini (mainly to stop them making a fool of themselves with rockets
    __________________
    DNA.styx is offline
    micmacx
    Member
    Join Date: May 2021
    Old 02-03-2024 , 21:34   Re: [DoD:S] Gun Menu
    Reply With Quote #10

    OK,
    I think you're talking about something else.

    If bots don't have the menu, they can't select anything.

    View your different posts on several plugins, it is related to the Rcbot2 configuration system which is incompatible with weapon restriction : https://forums.alliedmods.net/showth...t=344089&page= 2
    __________________
    micmacx 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 12:51.


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