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

DoD Restock Source v1.1 (refresh your ammo!) [16th November 2008]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Plugin ID:
581
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Day of Defeat: Source
Plugin Dependencies:
    Servers with this Plugin:
    20 
    Plugin Description:
    Restock your ammo by saying !restock - lots of ammo and plugin settings, highly configurable!
    Unapprover:
    Reason for Unapproving:
    download broken / unsupported
    Old 10-12-2008 , 16:23   DoD Restock Source v1.1 (refresh your ammo!) [16th November 2008]
    Reply With Quote #1

    Day of Defeat Restock Source


    DESCRIPTION:

    With this plugin running on your server you can give players
    the ability to restock the Ammo for the weapon currently
    in their hands by simply saying "!restock" in chat.


    USAGE:

    Commands:

    say !restock = restock your Ammo!


    Plugin CVARs:
    PHP Code:
    // <1/0> = enable/disable disallowing to restock if player has more than half of the set restock ammo
    // -
    // Default: "1"
    dod_restock_ammocheck "1"
     
    // <1/2/0> = set announcement  -  1=only on first spawn  -  2=every spawn until it is used  -  0=no announcements
    // -
    // Default: "1"
    dod_restock_announce "1"
     
    // <#/0> = number of seconds after restocking can be used again  -  0=no limit
    // -
    // Default: "30"
    dod_restock_delaybetweenuse "30"
     
    // <#/0> = number of restocks per life a player can use  -  0=no limit
    // -
    // Default: "3"
    dod_restock_maxcountperlife "3"
     
    // <1/0> = enable/disable players being able to restock
    // -
    // Default: "1"
    dod_restock_source "1" 
    Ammo CVARs:
    Code:
    // <#> set amount of Ammo to restock for weapon_30cal
    // -
    // Default: "300"
    dod_restock_weapon_30cal "300"
     
    // <#> set amount of Ammo to restock for weapon_bar
    // -
    // Default: "240"
    dod_restock_weapon_bar "240"
     
    // <#> set amount of Ammo to restock for weapon_bazooka
    // -
    // Default: "4"
    dod_restock_weapon_bazooka "4"
     
    // <#> set amount of Ammo to restock for weapon_c96
    // -
    // Default: "40"
    dod_restock_weapon_c96 "40"
     
    // <#> set amount of Ammo to restock for weapon_colt
    // -
    // Default: "14"
    dod_restock_weapon_colt "14"
     
    // <#> set amount of Ammo to restock for weapon_frag_ger
    // -
    // Default: "2"
    dod_restock_weapon_frag_ger "2"
     
    // <#> set amount of Ammo to restock for weapon_frag_us
    // -
    // Default: "2"
    dod_restock_weapon_frag_us "2"
     
    // <#> set amount of Ammo to restock for weapon_garand
    // -
    // Default: "80"
    dod_restock_weapon_garand "80"
     
    // <#> set amount of Ammo to restock for weapon_k98
    // -
    // Default: "60"
    dod_restock_weapon_k98 "60"
     
    // <#> set amount of Ammo to restock for weapon_k98s
    // -
    // Default: "60"
    dod_restock_weapon_k98s "60"
     
    // <#> set amount of Ammo to restock for weapon_m1carbine
    // -
    // Default: "30"
    dod_restock_weapon_m1carbine "30"
     
    // <#> set amount of Ammo to restock for weapon_mg42
    // -
    // Default: "250"
    dod_restock_weapon_mg42 "250"
     
    // <#> set amount of Ammo to restock for weapon_mp40
    // -
    // Default: "180"
    dod_restock_weapon_mp40 "180"
     
    // <#> set amount of Ammo to restock for weapon_mp44
    // -
    // Default: "180"
    dod_restock_weapon_mp44 "180"
     
    // <#> set amount of Ammo to restock for weapon_p38
    // -
    // Default: "16"
    dod_restock_weapon_p38 "16"
     
    // <#> set amount of Ammo to restock for weapon_pschreck
    // -
    // Default: "4"
    dod_restock_weapon_pschreck "4"
     
    // <#> set amount of Ammo to restock for weapon_riflegren_ger
    // -
    // Default: "2"
    dod_restock_weapon_riflegren_ger "2"
     
    // <#> set amount of Ammo to restock for weapon_riflegren_us
    // -
    // Default: "2"
    dod_restock_weapon_riflegren_us "2"
     
    // <#> set amount of Ammo to restock for weapon_smoke_ger
    // -
    // Default: "0"
    dod_restock_weapon_smoke_ger "0"
     
    // <#> set amount of Ammo to restock for weapon_smoke_us
    // -
    // Default: "0"
    dod_restock_weapon_smoke_us "0"
     
    // <#> set amount of Ammo to restock for weapon_spring
    // -
    // Default: "50"
    dod_restock_weapon_spring "50"
     
    // <#> set amount of Ammo to restock for weapon_thompson
    // -
    // Default: "180"
    dod_restock_weapon_thompson "180"


    CHANGELOG:
    • 13 October 2008 - Version 1.0
      * Initial Release
    • 16 November 2008 - Version 1.1 NEW!
      - New Features:
      * added Multi-Language support!
      - Optimizations:
      * removed cvar for spade and knife
    SERVERS RUNNING THIS PLUGIN:
    http://www.game-monitor.com/search.p...&type=variable


    PLEASE NOTE:

    You do NOT need to add any of the above CVars to neither your
    server.cfg nor to your sourcemod.cfg! The plugins create their
    own config files on first startup in the folder
    "/orangebox/dod/cfg/dod_restock_source/"
    on your gameserver! Just edit those files to your needs and you're done!

    +++++++++++++++++++++++++++++++++++++++++++++ ++++++


    DOWNLOAD!
    (according to the rules, NO registration is required and the download can be reached within a few clicks! Source and pre-compiled Plugins included!)

    For extended Support please be sure to join our
    Community and post your feature requests and bug reports there!

    Credits to "cladiron" for the original idea (EventScripts)
    Credits to "retsam" for the request and suggestions (SourceMod)

    Last edited by FeuerSturm; 04-24-2009 at 15:41. Reason: new Version 1.1
    FeuerSturm is offline
    FeuerSturm
    AlliedModders Donor
    Join Date: Apr 2004
    Old 10-12-2008 , 16:24   Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
    Reply With Quote #2

    - reserved for changelogs / announcements -
    FeuerSturm is offline
    Rollin
    New Member
    Join Date: Oct 2008
    Old 10-13-2008 , 19:54   Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
    Reply With Quote #3

    I installed this Mod yesterday.. It worked with the exception that every time someone would try and use the chat bar, the Plugin would try and replenish ammo. didn't matter what was typed in chat. any suggestions?
    Rollin is offline
    monkie
    Senior Member
    Join Date: Oct 2006
    Location: Shanghai, China
    Old 10-13-2008 , 22:36   Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
    Reply With Quote #4

    another great work sturm !

    since i'm using DoDs Equipment plugin, i'd just keep this plugin for further usage

    or maybe u could take over the work(http://forums.alliedmods.net/showthread.php?t=74390) since the auther has disappeared for quite a time, and make that one integrated with DoD Restock Source.

    just a suggestion
    __________________
    monkie is offline
    Send a message via MSN to monkie Send a message via Skype™ to monkie
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 10-13-2008 , 22:36   Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
    Reply With Quote #5

    Yes much thanks to Feuer for converting this script from ES to SM for me. THis is a script our head server admin made a long time ago for ES. Many servers use it and I thought it would be nice converted to SM. Since I am fairly new to SM, I asked Feuer to convert it for me(were trying to move away from eventscripts).

    I helped and gave him a bunch of ideas on improving it as well. Thanks Feuer!!!!!!!!!!!!!!

    This version plays sounds, has tell msg's, enable/disable of each weapon capabilities and everything, some stuff the previous versions did not. I had him include many cvars so its fairly customizable. You can enable how many uses per life, how much ammo per weapon, etc etc. Feuer did a great job.


    EDIT: Feuer, if you see this. Yes, the script just has a little error in it, he will fix it as soon as hes available. Right now its restocking anything you type in chat. Im sure its a quick fix.

    Last edited by retsam; 10-13-2008 at 23:17.
    retsam is offline
    FeuerSturm
    AlliedModders Donor
    Join Date: Apr 2004
    Old 10-14-2008 , 00:29   Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
    Reply With Quote #6

    Quote:
    Originally Posted by Rollin View Post
    I installed this Mod yesterday.. It worked with the exception that every time someone would try and use the chat bar, the Plugin would try and replenish ammo. didn't matter what was typed in chat. any suggestions?
    Quote:
    Originally Posted by retsam View Post
    EDIT: Feuer, if you see this. Yes, the script just has a little error in it, he will fix it as soon as hes available. Right now its restocking anything you type in chat. Im sure its a quick fix.
    I included a wrong version in the zip-archive, please redownload the plugin!

    I'm sorry for that oversight!
    FeuerSturm is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 10-14-2008 , 02:52   Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
    Reply With Quote #7

    Hey bud. Little fix for ya.

    Looks like m1carbine isnt working. I looked at your script, it looks like you named m1 carbine as weapon_m1carb. It should actually be weapon_m1carbine.

    It looks like you did the same for that other script also.
    retsam is offline
    FeuerSturm
    AlliedModders Donor
    Join Date: Apr 2004
    Old 10-14-2008 , 12:18   Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
    Reply With Quote #8

    Quote:
    Originally Posted by retsam View Post
    Hey bud. Little fix for ya.

    Looks like m1carbine isnt working. I looked at your script, it looks like you named m1 carbine as weapon_m1carb. It should actually be weapon_m1carbine.

    It looks like you did the same for that other script also.
    Yes, you're right!

    I used the weapon names from a DoD:Source Dev-Blog.....
    Damnit, you cannot rely on anyones info anymore theese days....

    It's fixed now, please redownload and be sure to delete your
    plugin config file as there's still the wrong cvar in it!

    Once again, sorry for the inconvenience!
    FeuerSturm is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 10-21-2008 , 03:48   Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
    Reply With Quote #9

    Looks like you have the german sniper rifle named wrong also. That currently doesnt work. I already fixed it on our server.

    You have it named as weapon_k98s, it should actually be weapon_k98_scoped.
    retsam is offline
    FeuerSturm
    AlliedModders Donor
    Join Date: Apr 2004
    Old 10-21-2008 , 11:17   Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
    Reply With Quote #10

    Quote:
    Originally Posted by retsam View Post
    Looks like you have the german sniper rifle named wrong also. That currently doesnt work. I already fixed it on our server.

    You have it named as weapon_k98s, it should actually be weapon_k98_scoped.
    Doh! Thanks for reporting that!

    Will have to test all weapons to be sure they work!

    Updated the archive!
    FeuerSturm is offline
    Reply


    Thread Tools
    Display Modes

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


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