AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D1/2] Limited Ammo Piles - 1.2 (https://forums.alliedmods.net/showthread.php?t=115898)

Thraka 01-17-2010 16:32

[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

MagnoT 01-18-2010 11:44

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!

Thraka 01-18-2010 20:47

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.

Thraka 01-20-2010 01:07

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.

rek075 01-27-2010 00:11

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.

M249-M4A1 01-27-2010 03:41

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

Thraka 01-27-2010 08:56

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. :)

hksjun 10-26-2010 15:42

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()

Thraka 11-01-2010 19:39

Re: [L4D1/2] Limited Ammo Piles - 1.1
 
Does this happen all the time, the first time?

hksjun 11-02-2010 06:01

Re: [L4D1/2] Limited Ammo Piles - 1.1
 
Quote:

Originally Posted by Thraka (Post 1339635)
Does this happen all the time, the first time?


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 18:58.

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