Raised This Month: $32 Target: $400
 8% 

[L4D1/2] Limited Ammo Piles - 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Thraka
AlliedModders Donor
Join Date: Aug 2005
Plugin ID:
1410
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    11 
    Plugin Description:
    Once everyone has used the same ammo pile at least once, it is removed.
    Old 01-17-2010 , 16:32   [L4D1/2] Limited Ammo Piles - 1.2
    Reply With Quote #1

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d1-2_limited_ammo_pile.sp - 4277 views - 5.2 KB)

    Last edited by Thraka; 12-08-2010 at 19:20.
    Thraka is offline
    MagnoT
    Junior Member
    Join Date: Jul 2009
    Old 01-18-2010 , 11:44   Re: [L4D1/2] Limited Ammo Piles - 1.02
    Reply With Quote #2

    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!
    MagnoT is offline
    Thraka
    AlliedModders Donor
    Join Date: Aug 2005
    Old 01-18-2010 , 20:47   Re: [L4D1/2] Limited Ammo Piles - 1.02
    Reply With Quote #3

    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 is offline
    Thraka
    AlliedModders Donor
    Join Date: Aug 2005
    Old 01-20-2010 , 01:07   Re: [L4D1/2] Limited Ammo Piles - 1.1
    Reply With Quote #4

    Ok finale checking is in. I haven't had a chance to test it though, but my code logic seems sound.
    Thraka is offline
    rek075
    Member
    Join Date: Oct 2009
    Old 01-27-2010 , 00:11   Re: [L4D1/2] Limited Ammo Piles - 1.1
    Reply With Quote #5

    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.
    rek075 is offline
    M249-M4A1
    I <3 Mac
    Join Date: May 2005
    Location: Not interested
    Old 01-27-2010 , 03:41   Re: [L4D1/2] Limited Ammo Piles - 1.1
    Reply With Quote #6

    ammo limits by counting how many times the entity was used and deleting/disabling it after seems like a good future feature as well
    __________________
    M249-M4A1 is offline
    Thraka
    AlliedModders Donor
    Join Date: Aug 2005
    Old 01-27-2010 , 08:56   Re: [L4D1/2] Limited Ammo Piles - 1.1
    Reply With Quote #7

    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.
    Thraka is offline
    hksjun
    Member
    Join Date: May 2010
    Old 10-26-2010 , 15:42   Re: [L4D1/2] Limited Ammo Piles - 1.1
    Reply With Quote #8

    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()
    hksjun is offline
    Thraka
    AlliedModders Donor
    Join Date: Aug 2005
    Old 11-01-2010 , 19:39   Re: [L4D1/2] Limited Ammo Piles - 1.1
    Reply With Quote #9

    Does this happen all the time, the first time?
    Thraka is offline
    hksjun
    Member
    Join Date: May 2010
    Old 11-02-2010 , 06:01   Re: [L4D1/2] Limited Ammo Piles - 1.1
    Reply With Quote #10

    Quote:
    Originally Posted by Thraka View Post
    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
    hksjun is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 14:01.


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