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

[CS:S] Emergency Pack


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Plugin ID:
2037
Plugin Version:
1.0.2
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    An emergency buy script that allows users to purchase a few items that may turn the tide of battle.
    Old 10-29-2010 , 15:12   [CS:S] Emergency Pack
    Reply With Quote #1

    Information:
    • This was originally a request, found here, but it looked like it could prove useful to other players so I turned it into a full plugin.
    • The plugin allows you to access an "emergency pack" when your health is low enough, where at you're able to purchase various items which may improve your survivability for a period of time.
    • All features of the plugin can be easily modified within the configuration file which is automatically generated after loading the plugin.
    • Depending on the configuration, you can purchase X Health, +X Speed, -X Gravity, X HE Grenades, X Smoke Grenades, and X Flashbangs.
    • Access the Emergency Pack menu by either sm_pack or sm_epack, or the sm_settings option.
    • If enabled, clients can use client preferences to enable the menu's auto popup feature should their health fall below the required amount.
    • If sm_emergencypack_required is set to 0, the plugin is no longer referred to as "emergency pack" and can be used for normal usage, such as providing a menu for purchasing extra grenades
    Cvars:
    • sm_emergencypack_enabled: Enables/disables all features of this plugin.
    • sm_emergencypack_required: The maximum amount of Health playrs can have in order to access this menu. (0 = Always)
    • sm_emergencypack_auto: If enabled, players will have the option of enabling/disabling the menu's auto toggle feature.
    • sm_emergencypack_health: The amount of Health players may purchase from this plugin. (0 = Disabled)
    • sm_emergencypack_health_cost: The amount that sm_emergencypack_health health costs. (-1.0 = Dynamic)
    • sm_emergencypack_speed: The amount of Speed players may purchase from this plugin. (0 = Disabled, 1.0 = Double Speed)
    • sm_emergencypack_speed_cost: The amount that sm_emergencypack_speed increased speed costs.
    • sm_emergencypack_gravity: The amount of Gravity players may purchase from this plugin. (0 = Disabled, 0.5 = Half Gravity)
    • sm_emergencypack_gravity_cost: The amount that sm_emergencypack_gravity increased gravity costs.
    • sm_emergencypack_grenade: The maximum amount of HE Grenades players may purchase from this plugin. (0 = Disabled)
    • sm_emergencypack_grenade_cost: The amount each HE Grenade will cost via this plugin.
    • sm_emergencypack_smoke: The maximum amount of Smoke Grenades players may purchase from this plugin. (0 = Disabled)
    • sm_emergencypack_smoke_cost: The amount each Smoke Grenade will cost via this plugin.
    • sm_emergencypack_flash: The maximum amount of Flashbangs players may purchase from this plugin. (0 = Disabled)
    • sm_emergencypack_flash_cost: The amount each Flashbang will cost via this plugin.
    Updates:
    • v1.0.0 ~ Plugin Released!
    • v1.0.1 ~ Fixed an incompatibility with 0 required health.
    • v1.0.2
      • Added a special case to most messages inside of the plugin in case sm_emergencypack_required is set to 0. Only if sm_emergencypack_required is greater than 0 will messages contain the word emergency.
      • Added two defines, HEALTH_MAXIMUM and HEALTH_FACTOR, which will allow you to easily change the maximum amount of health attainable by this plugin, and the factor that determines the dynamic health cost.
      • Added the cost of items to printed chat messages upon purchase.
      • Prevented the ability to repeatedly purchase gravity/speed benefits after paying for them once.
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_emergency_pack.sp - 1486 views - 22.3 KB)
    __________________

    Last edited by thetwistedpanda; 10-30-2010 at 14:23.
    thetwistedpanda 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 06:16.


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