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

DoD:S Capture Bonus


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
BackAgain
Junior Member
Join Date: Sep 2007
Plugin ID:
642
Plugin Version:
1.2.0
Plugin Category:
Gameplay
Plugin Game:
Day of Defeat: Source
Plugin Dependencies:
    Servers with this Plugin:
    6 
    Plugin Description:
    After capturing a flag you can get things like extra health or extra ammo.
    Old 11-22-2008 , 12:12   DoD:S Capture Bonus
    Reply With Quote #1

    DoD:S Capture Bonus

    Version update to 1.2

    Hey guys,

    this is a simple bonus system for Day of Defeat:Source. After you captured a flag, a menu comes up, where you can choose extra health or extra ammo. The extra ammo is based on the weapon classes. So if you are playing the SUPPORT class and you pick up an other primary weapon like a K98, you get your granades for the SUPPORT class anyway, and no rifle granades.

    I hope you have some additional ideas. So, feel free to post any of them.

    Try it and have fun

    Features:
    • Enable or disable a specific bonus type
    • Set the amount of flags you need to get the bonus
    • Set the number of clips of a specific weapon
    • Set the time of a specific bonus type, like god mode
    • Bonus: Extra ammo
    • Bonus: Extra health
    • Bonus: God mode
    • Bonus: Invisibility mode
    • Bonus: Unlimited granades
    • Bonus: Secondary weapon
    • Bonus: Unlimited stamina
    [IMG]http://img237.**************/img237/1407/unbenannt1uz7.jpg[/IMG]


    Installation:
    1. Copy the files to the sourcemod folder
    2. ../dod/addons/sourcemod/plugins/dod_capture_bonus.smx
    3. ../dod/addons/sourcemod/scripting/dod_capture_bonus.sp (not necessary)
    4. ../dod/addons/sourcemod/configs/dod_capture_bonus.cfg
    5. ../dod/addons/sourcemod/translations/dod_capture_bonus.phrases.txt
    6. Now it should work!
    Configuration:

    Code:
    //
    // Here you can configure your different bonus types and the corresponding properties.
    //
    // Properties
    // ----------
    // enabled (A bonus is 1=enabled or 0=disabled)
    // flags (Captured flags you need to get a bonus; 0=every captured flag)
    // periodic (0=bonus after x flags; 1=bonus after x, x+x, x+x+x, ... flags)
    // amount (The amount of something the player gets)
    // time (The time a bonus is active)
    // clips (How much clips of ammo)
    //
    
    "dod_capture_bonus"
    {
        "extra_ammo"
        {
            "enabled"    "1"
            "flags"    "4"
            "periodic"    "1"
            
            "clips"
            {
                "weapon_smoke_us"    "1"
                "weapon_smoke_ger"    "1"
                "weapon_frag_us"    "1"
                "weapon_frag_ger"    "1"
                "weapon_riflegren_us"    "1"
                "weapon_riflegren_ger"    "1"
                "weapon_colt"        "1"
                "weapon_p38"        "1"
                "weapon_garand"        "2"
                "weapon_k98"        "2"
                "weapon_thompson"    "2"
                "weapon_mp40"        "2"
                "weapon_bar"        "2"
                "weapon_mp44"        "2"
                "weapon_30cal"        "2"
                "weapon_mg42"        "2"
                "weapon_spring"        "2"
                "weapon_k98_scoped"    "2"
                "weapon_bazooka"    "2"
                "weapon_pschreck"    "2"
                "weapon_m1carbine"    "3"
                "weapon_c96"        "3"    
            }
        }
        
        "extra_health"
        {
            "enabled"    "1"
            "flags"    "4"
            "periodic"    "1"
            "amount"    "20"
        }
        
        "secondary_weapon"
        {
            "enabled"    "1"
            "flags"    "10"
            "periodic"    "0"
            "clips"    "3"
        }    
    
        "unlimited_stamina"
        {
            "enabled"    "1"
            "flags"    "10"
            "periodic"    "1"
            "time"    "15"
        }
    
        "unlimited_granades"
        {
            "enabled"    "1"
            "flags"    "15"
            "periodic"    "0"
        }
    
        "god"
        {
            "enabled"    "1"
            "flags"    "20"
            "periodic"    "0"
            "time"    "15"
        }
        
        "invisible"
        {
            "enabled"    "1"
            "flags"    "25"
            "periodic"    "0"
            "time"    "15"
        }
    }

    Changelog:

    1.0.1
    • Fixed some warnings appeared after compilation.
    1.1.0
    • Added a configuration file
    • Added translation file for multiple languages
    • Added God mode
    • Added Invisibility mode
    • Changed the extra health bonus
    1.2.0
    • Fixed the debug output "...Health: 1000..."
    • Added bonus "Unlimited granades"
    • Added bonus "Secondary weapon"
    • Added bonus "Unlimited stamina"
    • Changed (If only one bonus detected, no menu appears)
    • Changed (Some translations)
    • Added cvar "sm_capbon_enabled" (You can enable or disable the plugin easily)
    Attached Files
    File Type: zip dod_capture_bonus_1.2.0.zip (18.7 KB, 1333 views)
    File Type: cfg dod_capture_bonus.cfg (1.6 KB, 870 views)
    File Type: smx dod_capture_bonus.smx (10.6 KB, 831 views)
    File Type: sp Get Plugin or Get Source (dod_capture_bonus.sp - 2438 views - 23.4 KB)
    File Type: txt dod_capture_bonus.phrases.txt (2.4 KB, 760 views)
    __________________

    Last edited by BackAgain; 11-27-2008 at 14:16. Reason: Update
    BackAgain 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 04:08.


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