AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   DoD Restock Source v1.1 (refresh your ammo!) [16th November 2008] (https://forums.alliedmods.net/showthread.php?t=78871)

FeuerSturm 10-12-2008 16:23

DoD Restock Source v1.1 (refresh your ammo!) [16th November 2008]
 
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)

FeuerSturm 10-12-2008 16:24

Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
 
- reserved for changelogs / announcements - :mrgreen:

Rollin 10-13-2008 19:54

Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
 
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?

monkie 10-13-2008 22:36

Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
 
another great work sturm !

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

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 :P

retsam 10-13-2008 22:36

Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
 
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.

FeuerSturm 10-14-2008 00:29

Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
 
Quote:

Originally Posted by Rollin (Post 699428)
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 (Post 699498)
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! :oops:

retsam 10-14-2008 02:52

Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
 
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. :P

It looks like you did the same for that other script also. :)

FeuerSturm 10-14-2008 12:18

Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
 
Quote:

Originally Posted by retsam (Post 699557)
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. :P

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! :oops:

retsam 10-21-2008 03:48

Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
 
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. :)

FeuerSturm 10-21-2008 11:17

Re: DoD Restock Source v1.0 (refresh your ammo!) [13th October 2008]
 
Quote:

Originally Posted by retsam (Post 702933)
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!


All times are GMT -4. The time now is 09:08.

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