AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D1/2] Infinite Reserve Ammo (https://forums.alliedmods.net/showthread.php?t=141426)

adzty 10-23-2010 22:31

[L4D1/2] Infinite Reserve Ammo
 
3 Attachment(s)
L4D1/2 Infinite Reserved Ammo

This is my first plugin.
It makes it so that you have to reload, but never run out for ammo.

*NOTE*
If you are going to change the cvars do it in the auto-generated config file.
Delete your config file if updating.

Changelog:
  • 0.4 Initial Release
  • 0.5 - 0.7 Fixed Up some Code, added health items, and more Guns
  • 0.8 Instead of just changing the cvars for the health items, I made it use the give command. if the cvar for the item (e.g. medkits) is enabled.
  • 0.9 Removed all the health cvars and added support for l4d1 and the M60.
  • 1.0 Fixed the m60 dropping and disappearing when empty. Thanks to birno for this post
Some credit goes to "(-DR-)GrammerNatzi" for his "L4D infinite reserve ammo" plugin. His was not completely compatible with,
and was giving me trouble in L4D2, so I decided to make this.

aluth09 02-13-2011 14:17

Re: [L4D2] Infinite Reserve Ammo
 
Any idea of how to add support for the m60 to have unlimited ammo?

honorcode23 02-13-2011 14:29

Re: [L4D2] Infinite Reserve Ammo
 
Quote:

Originally Posted by aluth09 (Post 1414496)
Any idea of how to add support for the m60 to have unlimited ammo?

sm_cvar ammo_m60_max 500

adzty 02-15-2011 01:23

Re: [L4D2] Infinite Reserve Ammo
 
I don't think you can reload the m60, if you can do it let me know.

honorcode23 02-15-2011 08:54

Re: [L4D2] Infinite Reserve Ammo
 
ammo_m60_max 999. That will give you m60's reserve ammo and you can actually reload it (it uses m16 reload animation). However, it must be done manually (with R) or else you will still lose the weapon when the clip ammo is gone.

adzty 02-18-2011 17:04

Re: [L4D2] Infinite Reserve Ammo
 
Quote:

Originally Posted by honorcode23 (Post 1415819)
ammo_m60_max 999. That will give you m60's reserve ammo and you can actually reload it (it uses m16 reload animation). However, it must be done manually (with R) or else you will still lose the weapon when the clip ammo is gone.

Yea, you're right... but I wonder what method there is to make the m60 reload but, even if you run out of ammo you don't drop it. It just reloads automatically.
sdktools maybe??

x Ares x 02-27-2011 08:09

Re: [L4D2] Infinite Reserve Ammo
 
Is it possible to take off the unlimited throwables ?

natex2012 05-13-2011 10:15

Re: [L4D2] Infinite Reserve Ammo
 
hi. could/will this work on l4d? cos the reason am asking is this plugin doesnt seam to do anything on my l4d server > http://forums.alliedmods.net/showthread.php?p=862073 and if this [L4D2] Infinite Reserve Ammo plugin wont work on l4d could u make it work plz?.

adzty 06-16-2011 07:08

Re: [L4D2] Infinite Reserve Ammo
 
I've been working on version 0.9 to 1.0.
I'm going to try and make it work for both l4d1 and 2.

K o T 08-17-2011 18:45

Re: [L4D1/2] Infinite Reserve Ammo
 
Works but pipe bomb disappears when you choose to [L4D2]

TheSuggestioner 11-20-2011 17:22

Re: [L4D1/2] Infinite Reserve Ammo
 
Think you could add only a command that makes certain players have reserved ammo? (sm_infinitereserve [name])?

Mr. Man 11-27-2011 22:46

Re: [L4D1/2] Infinite Reserve Ammo
 
Quote:

Originally Posted by TheSuggestioner (Post 1599907)
Think you could add only a command that makes certain players have reserved ammo? (sm_infinitereserve [name])?

That would make the game quite horrifying lol

CarnageHeart 06-26-2012 04:24

Re: [L4D1/2] Infinite Reserve Ammo
 
There is no auto-generated config that I can find. Is it possible for someone to post the variables so i can add them to my server config? Also is the pipebomb disappearing because of this, or is it a bug with this add-on. Thanks in advance. :)

ThatOtherGuy 03-14-2013 21:39

Re: [L4D1/2] Infinite Reserve Ammo
 
Quote:

Originally Posted by CarnageHeart (Post 1736354)
There is no auto-generated config that I can find. Also is the pipebomb disappearing because of this, or is it a bug with this add-on. Thanks in advance. :)

The auto gen file should be in: steam/steamapps/common/l4d2/l4d2/cfg/sourcemod/l4d_infinite_reserve_ammo.cfg

What I found with the pipebomb disappearing is there is a error on line 144 "SetConVarInt(FindConVar("ammo_pipebomb_max") , -1);" it should be "SetConVarInt(FindConVar("ammo_pipebomb_max") , 1);"
This fixed the problem for me. Download the source .sp, edit the file with notepad or better yet notepad++ (its free) and then go here http://www.sourcemod.net/compiler.php to recompile the file to .smx file.

Mr. Man 06-21-2013 23:49

Re: [L4D1/2] Infinite Reserve Ammo
 
1 Attachment(s)
Quote:

Originally Posted by ThatOtherGuy (Post 1912860)
The auto gen file should be in: steam/steamapps/common/l4d2/l4d2/cfg/sourcemod/l4d_infinite_reserve_ammo.cfg

What I found with the pipebomb disappearing is there is a error on line 144 "SetConVarInt(FindConVar("ammo_pipebomb_max") , -1);" it should be "SetConVarInt(FindConVar("ammo_pipebomb_max") , 1);"
This fixed the problem for me. Download the source .sp, edit the file with notepad or better yet notepad++ (its free) and then go here http://www.sourcemod.net/compiler.php to recompile the file to .smx file.

Too bad nobody's done it yet. I've attached the revision:

Munch 07-17-2013 07:34

Re: [L4D1/2] Infinite Reserve Ammo
 
Please put back the health cvars

Mr. Man 07-20-2013 10:27

Re: [L4D1/2] Infinite Reserve Ammo
 
Does anyone know how to fix the following error:

Code:

L 07/16/2013 - 23:17:29: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid
L 07/16/2013 - 23:17:29: [SM] Displaying call stack trace for plugin "L4D2_infinitereserveammo.smx":
L 07/16/2013 - 23:17:29: [SM]  [0]  Line 286, /home/groups/sourcemod/upload_tmp/phpK8OK6Q.sp::OnPlayerRunCmd()


Munch 03-08-2014 13:46

Re: [L4D1/2] Infinite Reserve Ammo
 
1 Attachment(s)
Quote:

Originally Posted by Brian_Zombait (Post 2109132)
Munch

I know about the no ammo thing. It's a PITA, but recognized for what it is.

For me the one that is consistent is the loss of pipe bombs. You can pick one up but cannot use it. As soon as you try to it disappears. Molly and Vomit work just fine.

I notice your using the Tank Buster 2 menu along with the Points and Gifts
I would of thought one makes the other redundant

as for the pipe bomb issue I had that 2 years ago, unfortunately I cant rem what the fault was at this time, when it come's to me I'll let you know.

Edit:
v1 of "Infinite reserve ammo" gave me that issue and I notice you also use v1 of this plugin
I have v0.8 which works for all items except adrenaline, no option for this, only pills
Notice the file name is different too so be sure to remove your version

There are other differences too no option for m60

Changelog:



  • 0.4 Initial Release
  • 0.5 - 0.7 Fixed Up some Code, added health items, and more Guns
  • 0.8 Instead of just changing the cvars for the health items, I made it use the give command. if the cvar for the item (e.g. medkits) is enabled.
  • 0.9 Removed all the health cvars and added support for l4d1 and the M60.
  • 1.0 Fixed the m60 dropping and disappearing when empty.
If anybody has the .sp file for v0.8 please post here.

Brian_Zombait 03-08-2014 14:58

Re: [L4D1/2] Infinite Reserve Ammo
 
Would really like to have the Shot (Adrenaline) working, but can live without it.
Will swap these out and see how that goes.
Thanks.

Munch 03-08-2014 17:23

Re: [L4D1/2] Infinite Reserve Ammo
 
Haven't used this plugin for a while but if I recall correctly having used the adrenaline shot, you then drop it, If you look straight down you can pick it up again not the best solution but still...

Riton9 11-04-2017 15:16

Re: [L4D1/2] Infinite Reserve Ammo
 
any CS:S version ?


All times are GMT -4. The time now is 16:27.

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