Raised This Month: $12 Target: $400
 3% 

[L4D1/2] Limited Ammo Piles - 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 12-08-2010 , 19:20   Re: [L4D1/2] Limited Ammo Piles - 1.2
Reply With Quote #11

Should be fixed now.
Thraka is offline
xindong
Member
Join Date: Dec 2010
Old 04-16-2011 , 08:32   Re: [L4D1/2] Limited Ammo Piles - 1.2
Reply With Quote #12

Could set ammunition quantity?
xindong is offline
symbiant
New Member
Join Date: Aug 2009
Old 06-19-2012 , 20:51   Re: [L4D1/2] Limited Ammo Piles - 1.2
Reply With Quote #13

So I was looking at your code and I have been thinking about a simple way to allow checking if a player has used an ammo pile. I will start by saying that I have a programming background but haven't gotten anywhere with sourcemod scripting so I don't know if this is doable.

I notice at http://docs.sourcemod.net/api/index....d=show&id=414& that the function allows assigning flags to a client. I wonder if the same basic idea can be used per ammo pile. Create a unique flag on their client ID for each ammo pile and use this to track. If not, then still some other method of storing a flag.

Another simpler implementation is to assign a flag to each client at server connect and then track each use through ammo[APU_IndividualUses] variable but instead of just incrementing you add the assigned flag value. You can set the this as a 32 bit flag since the server can't handle more players. This would ID each player.

Possible problems are when a player disconnects and another comes in. That player, if assigned the previous flag, wouldn't be able to use the ammo pile. Not that much of a problem since it is still limiting resources as intended but it could get frustrating.

Just a couple thoughts. Love the mod and the idea. Limiting resources is a great way of leveling up difficulty without simply upping damage.
symbiant is offline
Mesheniy
New Member
Join Date: Jul 2013
Old 07-24-2013 , 07:55   Re: [L4D1/2] Limited Ammo Piles - 1.2
Reply With Quote #14

after steampipe update plugin don't work.can fix this?thanks
Mesheniy is offline
Nokreb
Junior Member
Join Date: Apr 2018
Old 01-28-2019 , 11:09   Re: [L4D1/2] Limited Ammo Piles - 1.2
Reply With Quote #15

Can someone make it work please?

Last edited by Nokreb; 01-28-2019 at 11:50.
Nokreb is offline
ReCreator
Member
Join Date: Nov 2017
Location: Ukraine,Kyiv
Old 02-01-2021 , 22:49   Re: [L4D1/2] Limited Ammo Piles - 1.2
Reply With Quote #16

9 years passed after last update. Does anyone have working or improved version?
__________________
Sorry for my pure English...
ReCreator is offline
bald14
Member
Join Date: Aug 2021
Old 09-21-2021 , 08:28   Re: [L4D1/2] Limited Ammo Piles - 1.2
Reply With Quote #17

this is a good plugin. Can someone develop it?
bald14 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 09-22-2021 , 07:05   Re: [L4D1/2] Limited Ammo Piles - 1.2
Reply With Quote #18

Limited Ammo Piles Remake [1.4] (2022/1/22)
Once everyone has used the same ammo pile at least once, it is removed.

-New Feature-
* Remake code
* Add more convars
* Translation support
* Deny sound
* Provide a better method to check if player does fill a weapon fully from ammo pile
* Compatible with M60_GrenadeLauncher_patches

Apply to:
l4d1/2 both

Translation:
Spoiler


-Convars-
Spoiler


-Edit Github-
Latest version always here
Attached Files
File Type: zip l4d_limited_ammo_pile v1.4.zip (13.2 KB, 106 views)
__________________

Last edited by HarryPotter; 01-22-2022 at 10:15. Reason: v1.4 release
HarryPotter is offline
bald14
Member
Join Date: Aug 2021
Old 09-23-2021 , 14:05   Re: [L4D1/2] Limited Ammo Piles - 1.2
Reply With Quote #19

Quote:
Originally Posted by HarryPotter View Post
Limited Ammo Piles Remake [1.3] (2021/9/23)
Once everyone has used the same ammo pile at least once, it is removed.

-New Feature-
* Remake code
* Add more convars
* Translation support
* Deny sound

Apply to:
l4d1/2 both

Translation:
Spoiler


-Convars-
Spoiler


-Edit Github-
Latest version always here
Quote:
// If 1, Player can use only one time on each ammo pile. (0=No limit until ammo pile removed)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_limited_ammo_pile_one_time "1"
i dont know for it . This "1" is an ammo pile that can only be picked up once or each player picks up 1 .
Sorry about my English.
bald14 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 09-23-2021 , 20:24   Re: [L4D1/2] Limited Ammo Piles - 1.2
Reply With Quote #20

Quote:
Originally Posted by bald14 View Post
i dont know for it . This "1" is an ammo pile that can only be picked up once or each player picks up 1 .
Sorry about my English.
Each player picks up only one chance, just like explosive ammo upgrade package
__________________

Last edited by HarryPotter; 09-23-2021 at 20:25.
HarryPotter is offline
Reply


Thread Tools
Display Modes

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 02:12.


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