Monthly Target: $400 Donations: $140
 35% 

[DOD:S] Ammo Settings


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silent_Water
Member
Join Date: Sep 2008
Plugin ID:
1380
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Day of Defeat: Source
Plugin Dependencies:
    Servers with this Plugin:
    29 
    Plugin Description:
    Set the amount of ammo for each weapon
    Old 01-03-2010 , 17:50   [DOD:S] Ammo Settings
    Reply With Quote #1

    DOD:S Ammo Settings v1.0

    With this plugin you are able to set the amount of ammo for each weapon type (on player spawn).

    This plugin works different to the dod_equip plugin by List / Lebson506th I've found after completing my work.

    It sets the ammo for each weapon type and not for the players class. And it is much simplier if you just want to set the ammo of the bazooka or more smoke grenades.


    Variables
    // shows the version
    sm_dod_ammo_version

    // enable/disable DOD:S Ammo Settings (0/1)
    sm_dod_ammo_enabled 1


    Installation
    Just copy the dod_ammo.smx to your plugins folder. The ammo.txt goes to your sourcemod configs folder.

    Configuration

    There is a file called ammo.txt in the sourcemod configs folder. All settings go there. An example ammo.txt is attached. Without this file the plugin wont load. Please make the settings according your wishes and comment out the lines you dont want to set (using //). Each line contains a weapon name and a value. The value is the amount of ammunition of the weapon (not the clips, the number of bullets!).

    This plugin is designed to work in DOD:S. Other Mods will not work - the weapons and offsets are hardcoded.
    Attached Files
    File Type: txt ammo.txt (512 Bytes, 1976 views)
    File Type: sp Get Plugin or Get Source (dod_ammo.sp - 2761 views - 3.6 KB)

    Last edited by Silent_Water; 01-03-2010 at 17:53.
    Silent_Water is offline
    havok68
    New Member
    Join Date: Dec 2010
    Old 12-12-2010 , 06:19   Re: [DOD:S] Ammo Settings
    Reply With Quote #2

    Do i have to add any thing to a cfg file? If so what one. So far i put the ammo.txt file in my sourcemod cfg. and the smx file in my plugin file. I set the nade's on both sides to 4 but still only have 2. Please help
    havok68 is offline
    Matze
    New Member
    Join Date: Dec 2010
    Old 12-12-2010 , 10:47   Re: [DOD:S] Ammo Settings
    Reply With Quote #3

    hi
    You must create a text file ammo.txt.
    in orangebox / dod / addons / SourceMod / configs ammo.txt

    "pschreck" "10" = on
    // "pschreck" "10" = off

    inside there is

    "Ammo"
    {
    "Weapons"
    {
    // "thompson" "360"
    // "mp40" "360"
    "c96" "90"
    "m1carbine" "90"
    // "garand" "160"
    // "k98" "120"
    // "mp44" "480"
    // "bar" "360"
    // "spring" "100"
    // "k98_scoped" "24"
    // "30cal" "600"
    // "mg42" "500"
    "bazooka" "10"
    "pschreck" "10"
    "colt" "42"
    "p38" "48"
    // "frag_us" "2"
    // "frag_ger" "2"
    // "riflegren_us" "3"
    // "riflegren_ger" "3"
    // "smoke_us" "2"
    // "smoke_ger" "2"
    }
    }
    Matze is offline
    havok68
    New Member
    Join Date: Dec 2010
    Old 12-12-2010 , 15:48   Re: [DOD:S] Ammo Settings
    Reply With Quote #4

    Thank you will try this out now
    havok68 is offline
    Philipus II
    Junior Member
    Join Date: Jan 2010
    Old 03-10-2011 , 10:44   Re: [DOD:S] Ammo Settings
    Reply With Quote #5

    I've got a problem here.
    The new amount of ammo for bazooka/pschreck doesn't work.
    I'd like to have 200 rockets, but using "bazooka" "200" there are only 5.
    What's my mistake?
    Philipus II is offline
    alencore
    Senior Member
    Join Date: Oct 2011
    Old 09-30-2013 , 11:22   Re: [DOD:S] Ammo Settings
    Reply With Quote #6

    I love this which I think of more a fun plugin! I can finally spam my games with nades...tnc u very much!
    __________________
    alencore 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 23:36.


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