Provides a menu to choose weapons. Once choosen the weapons are automatically given at respawn.
The avaible 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 random guns.
The plugin can also be configured to give health, armor, helmet, flashbangs, smokegrenade, hegrenade,
defusekits, and nightvision at spawn. C4 pickup can be disabled. A configurable sound is played when
when a player scores.
Servers using this mod: GameTracker.com sm_gunmenu_version
Place compiled plugin (sm_gunmenu.smx) into the plugins folder.
Place the configuration file (gunmenu.ini) into the config folder.
Changes to gunmenu.ini are read at map/plugin load time.
Ammo Replenishment Lite
Deathmatch Lite Respawn
Problems, Bug Reports, Feature Requests, and Compliments:
Please send me a private message at http://forums.alliedmods.net/private...=newpm&u=46596
Include a detailed description of how to reproduce the problem. Information about your server,
such as dedicate/listen, platform (win32/linux), game, and ip address may be useful.
I prefer to keep the plugin thread cleared so people don't have to wade through pages of fodder.
The community will be given a chance to address any bug reports that are posted in the plugin thread.
If you want a direct response from me, send a private message.
Compliments are always welcomed in the thread.
This plugin was inspired by these objectives:
- Code 100% SourcePawn - Accessible to more programmers
- No custom gamedata - If SourceMod works, then this plugin works
- Stand alone modules - Only install what you need
Much gratitude towards Bailopan and crew for creating the original CSS:DM
plugin before there was SourceMod, and for developing SourceMod and SourcePawn.
- When enabled, presents player with menus to choose primary and secondary weapons
Gun Menu Configuration (Change in gunmenu.ini):
Configuration is specified as key values in the gunmenu.ini file.
There are four sections:
Server Configuration Variables (Change in server.cfg):
- Settings - frag_sound (relative to sound), allow_c4 (yes/no), buy_zones (yes/no)
- SpawnItems - health (0 no change), armor (0 no change), helmet (yes/no),
flashbangs (yes/no), smokegrenade (yes/no), hegrenade (yes/no),
defusekits (yes/no), nightvision (yes/no)
- PrimaryMenu - classname and menu text ("weapon_g3sg1" "D3/AU-1")
- SecondaryMenu - classname and menu text ("weapon_fiveseven" "ES Five Seven")
- mp_fraglimit - Set this to score need to win map
- mp_ignore_round_win_conditions - Set this to prevent round end
- Knife steal
- Free For All plugin
- Other suggestions?
1.0 <-> 2011 - 11/13 LumiStance
Add code to close menu if player spectates
Add code to prevent spectators from opening menu
Add code to set bots to random guns
Consolidate Configuration Sections
Homogenize Error Messages
Remove Options Menu stubs
0.9 <-> 2011 - 10/17 LumiStance
Add code to strip Nades
Removed quantity option for Flashbangs
Cleanup entity removal code
Modify GivePrimary and GiveSecondary to retrieve weapon index
Add code to handle late load
0.8 <-> 2011 - 07/01 LumiStance
Add code to limit Defuser to CT
Add code to strip bomb on pickup (configurable)
Add code to prevent spectators from getting guns
Add SetFailState for entity member offsets
0.7 <-> 2011 - 06/28 LumiStance
Improve client_index validation in Event_HandleSpawn
Fix IsFakeClient() placement in Event_PlayerDeath
0.6 <-> 2011 - 06/24 LumiStance
Add code to remove buy zones
Add code to give/set Health, Nades, Night Vision, etc.
Add frag sound
Add code to nuke menus OnPluginEnd
0.5 <-> 2011 - 06/23 LumiStance
Public beta release
Develop Ammo Clip Refill on Kill
Move Refill and Restock into stand alone plugin
0.4 <-> 2011 - 03/25 LumiStance
Add code to only load config file and rebuild menus if timestamp changed
Moved 'None' weapon choice to end of menu
Add Reserve Ammo Replenishment and configuration
Made Configuration Section Titles case insensitive
0.3 <-> 2011 - 02/09 LumiStance
Fix range checking
0.2 <-> 2011 - 01/04 LumiStance
Separate primary and secondary arrays
Implement Random and None Weapons
Range checking on selections, Announce
0.1 <-> 2011 - 01/03 LumiStance