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
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
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
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
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!
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.
> 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