Raised This Month: $32 Target: $400
 8% 

[CSS] Gun Menu - A Pawn only (smx) interpretation of CSS:DM


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
LumiStance
AlliedModders Donor
Join Date: Jan 2009
Location: Northern California
Plugin ID:
2655
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    20 
    Plugin Description:
    Provides a menu to choose weapons which are automatically given at respawn, automatically gives nades, armor, etc.
    Old 11-14-2011 , 02:06   [CSS] Gun Menu - A Pawn only (smx) interpretation of CSS:DM
    Reply With Quote #1

    Description
    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

    Installation:
    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.

    Complimentary Plugins:
    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.

    Background:
    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.

    Files:
    • cstrike/addons/sourcemod/plugins/sm_gunmenu.smx
    • cstrike/addons/sourcemod/configs/gunmenu.ini
    • cstrike/cfg/server.cfg

    Commands:
    sm_guns and sm_gunmenu - 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:
    • 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")

    Server Configuration Variables (Change in server.cfg):
    • mp_fraglimit - Set this to score need to win map
    • mp_ignore_round_win_conditions - Set this to prevent round end

    To-Do:
    • Knife steal
    • Free For All plugin
    • Other suggestions?

    Changelog:
    Code:
    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
    Remember Selection
    Separate primary and secondary arrays
    Implement Random and None Weapons
    Range checking on selections, Announce
    0.1 <-> 2011 - 01/03 LumiStance
    Initial Menu
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_gunmenu.sp - 8303 views - 20.5 KB)
    File Type: ini gunmenu.ini (1.7 KB, 4818 views)
    __________________

    Last edited by LumiStance; 12-24-2011 at 18:45.
    LumiStance is offline
     



    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 07:35.


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