AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [DOD:S] Ammo Settings (https://forums.alliedmods.net/showthread.php?t=114323)

Silent_Water 01-03-2010 16:50

[DOD:S] Ammo Settings
 
2 Attachment(s)
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.

havok68 12-12-2010 05:19

Re: [DOD:S] Ammo Settings
 
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

Matze 12-12-2010 09:47

Re: [DOD:S] Ammo Settings
 
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"
}
}

havok68 12-12-2010 14:48

Re: [DOD:S] Ammo Settings
 
Thank you will try this out now:)

Philipus II 03-10-2011 09:44

Re: [DOD:S] Ammo Settings
 
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?

alencore 09-30-2013 10:22

Re: [DOD:S] Ammo Settings
 
I love this which I think of more a fun plugin! I can finally spam my games with nades...tnc u very much!

micmacx 10-31-2022 04:27

Re: [DOD:S] Ammo Settings
 
1 Attachment(s)
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.

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


All times are GMT -4. The time now is 07:43.

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