[L4D1/2] Limited Ammo Piles - 1.2
6 Attachment(s)
This will delete the ammo pile entity once each survivor has used it at least once. The last person that uses it will receive a message stating the ammo pile has been depleted.
This should work with l4d1, but I only tested with l4d2. Todo - Block someone from using the pile after they've used it once (or after they've taken X ammo) CVARS l4d_limited_ammo_pile_ver - Version of the plugin l4d_limited_ammo_pile_on - If the Limited Ammo Piles plugin is on or off History 1.2 - Added a check to see if entity was valid edict when the use event fired. 1.1 - Stops processing ammo pile data if the map is in the finale. (Checks for the presence of the trigger_finale entity on the map) 1.02: - Fixed usage of on\off. Variable existed, but wasn't used 1.01: - Added cvar for toggling plugin on off |
Re: [L4D1/2] Limited Ammo Piles - 1.02
This is a cool idea, but there should be some sort of map check or a finale start hook because all finale maps have only one ammo pile and two tanks to kill (Swamp Fever has three tanks).
Maybe you can add a cvar to set an ammo pickup limit! |
Re: [L4D1/2] Limited Ammo Piles - 1.02
Actually I am working on that limit thing. But thanks for pointing out the finale. I'll see if I can detect the finale and disable.
|
Re: [L4D1/2] Limited Ammo Piles - 1.1
Ok finale checking is in. I haven't had a chance to test it though, but my code logic seems sound.
|
Re: [L4D1/2] Limited Ammo Piles - 1.1
This should probably only get enabled in coop or realism. People may or may not like this in versus, and survival/scavenge would be a pain with this. Perhaps you could make it cvar if people really want the choice.
|
Re: [L4D1/2] Limited Ammo Piles - 1.1
ammo limits by counting how many times the entity was used and deleting/disabling it after seems like a good future feature as well
|
Re: [L4D1/2] Limited Ammo Piles - 1.1
Well that is what the on\off cvar is for. If you use my game mode config loader, you can set the cvar on\off for each individual game mode. Personally, my server is modded in versus to be real hard, so I love having this in versus. :)
|
Re: [L4D1/2] Limited Ammo Piles - 1.1
cant use now.can fix it?thanks
L 10/26/2010 - 20:25:23: [SM] Native "GetEdictClassname" reported: Invalid edict (454 - 454) L 10/26/2010 - 20:25:23: [SM] Displaying call stack trace for plugin "l4d1-2_limited_ammo_pile.smx": L 10/26/2010 - 20:25:23: [SM] [0] Line 105, /home/groups/alliedmodders/forums/files/1/5/5/2/9/57577.attach::Event_PlayerUse() |
Re: [L4D1/2] Limited Ammo Piles - 1.1
Does this happen all the time, the first time?
|
Re: [L4D1/2] Limited Ammo Piles - 1.1
Quote:
l4d2 is 2.0.4.9 version run in windows server all the time.and cant Limited Ammo Piles i need this plugin.can fix this?thanks:oops: |
All times are GMT -4. The time now is 02:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.