Raised This Month: $159 Target: $400
 39% 

[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:
    22 
    Plugin Description:
    Set the amount of ammo for each weapon
    Old 01-03-2010 , 16: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, 3044 views)
    File Type: sp Get Plugin or Get Source (dod_ammo.sp - 4789 views - 3.6 KB)

    Last edited by Silent_Water; 01-03-2010 at 16:53.
    Silent_Water is offline
    havok68
    New Member
    Join Date: Dec 2010
    Old 12-12-2010 , 05: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 , 09: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 , 14: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 , 09: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 , 10: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
    micmacx
    Member
    Join Date: May 2021
    Old 10-31-2022 , 04:27   Re: [DOD:S] Ammo Settings
    Reply With Quote #7

    Hello,
    This plugin causes errors in the sourcemod logs.
    I modified it so that it tests if the player is connected to the server and if the player is alive, which should fix the problem.

    +++. :-) :-) :-)

    Bonjour,
    Ce plugin provoque des erreurs dans les logs de sourcemod.
    Je l'ai modifié afin qu'il teste si le joueur est connecté au serveur et si le joueur est vivant, ce qui devrait résoudre le problème.

    +++. :-) :-) :-)
    Attached Files
    File Type: sp Get Plugin or Get Source (dod_ammo.sp - 314 views - 3.7 KB)
    micmacx is offline
    Faina
    New Member
    Join Date: Dec 2024
    Old 12-16-2024 , 18:49   Re: [DOD:S] Ammo Settings
    Reply With Quote #8

    Hello. I can’t find the folder where to copy the file dod_ammo-smx. I opened from Steam the DoD folder, but I can’t find the plugins one. Can you help me by giving me the exact route? Thank you very much
    Faina is offline
    Trice
    Member
    Join Date: Nov 2017
    Location: Germany
    Old 12-17-2024 , 04:28   Re: [DOD:S] Ammo Settings
    Reply With Quote #9

    u must install Metamod / sourcemod....

    /home/DEIN BENUTZER/server/dods/dod/addons/sourcemod/plugins/ ...smx
    Trice is offline
    Send a message via Skype™ to Trice
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 12-17-2024 , 13:34   Re: [DOD:S] Ammo Settings
    Reply With Quote #10

    Quote:
    Originally Posted by Faina View Post
    Hello. I can’t find the folder where to copy the file dod_ammo-smx. I opened from Steam the DoD folder, but I can’t find the plugins one. Can you help me by giving me the exact route? Thank you very much
    Quote:
    Originally Posted by Trice View Post
    u must install Metamod / sourcemod....

    /home/DEIN BENUTZER/server/dods/dod/addons/sourcemod/plugins/ ...smx
    Also... you not put this plugin in your game.
    You need setup server (SRCDS).


    ...there is option use mods in game itself in -insecure mode, but you can't play in online and no one bother to help fix. SM do not support listenservers.
    __________________
    Do not Private Message @me
    Bacardi 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 17:39.


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