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

View Poll Results: Would you like support for other mods?
TF2 13 20.97%
L4D 7 11.29%
Other - Send PM 8 12.90%
Only play CSS 46 74.19%
Multiple Choice Poll. Voters: 62. You may not vote on this poll

[CS:S/CS:GO] Ammo Replenishment Lite - Refill on kill and Restock when out


Post New Thread Reply   
 
Thread Tools Display Modes
HeavenOnline
Junior Member
Join Date: Aug 2012
Old 08-30-2012 , 09:04   Re: [CSS] Ammo Replenishment Lite - Refill on kill and Restock when out
Reply With Quote #11

This plugin is really good made, can you do it for only admins with flag "O"?

Customflag 1

Best Regards

HeavenOnline
HeavenOnline is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 09-01-2012 , 20:57   Re: [CSS] Ammo Replenishment Lite - Refill on kill and Restock when out
Reply With Quote #12

You really shouldn't "over optimize" your plugins until you can't read it fluently anymore.

PHP Code:
if (gun==0x30316D78)                            // xm1014
    
g_PlayerPrimaryAmmo[client_index]=7
A string comparison wouldn't hurt in such a non-time critical function. It's not like it's executed every gameframe ;)

+ Do you really need to force that advertisement on join? Imagine every plugin would do that..

Nice plugin!
__________________
Peace-Maker is offline
fifipaldi
Member
Join Date: Apr 2011
Old 09-06-2012 , 11:51   Re: [CSS] Ammo Replenishment Lite - Refill on kill and Restock when out
Reply With Quote #13

Hi,
really nice plugin i use it on my css servers, but does it work with CS:GO ?

It works i`v tested it myself .

Last edited by fifipaldi; 09-09-2012 at 14:53.
fifipaldi is offline
LumiStance
AlliedModders Donor
Join Date: Jan 2009
Location: Northern California
Old 09-29-2012 , 21:56   Re: [CSS] Ammo Replenishment Lite - Refill on kill and Restock when out
Reply With Quote #14

Quote:
Originally Posted by HeavenOnline View Post
This plugin is really good made, can you do it for only admins with flag "O"?

Customflag 1

Best Regards

HeavenOnline
Sorry for the delay, been rather busy.
Try this. I haven't tested it. If you have problems send me a PM with details.
Attached Files
File Type: sp Get Plugin or Get Source (sm_replen_admin.sp - 460 views - 11.2 KB)
__________________
LumiStance is offline
LumiStance
AlliedModders Donor
Join Date: Jan 2009
Location: Northern California
Old 09-29-2012 , 22:02   Re: [CSS] Ammo Replenishment Lite - Refill on kill and Restock when out
Reply With Quote #15

Quote:
Originally Posted by Peace-Maker View Post
You really shouldn't "over optimize" your plugins until you can't read it fluently anymore.

PHP Code:
if (gun==0x30316D78)                            // xm1014
    
g_PlayerPrimaryAmmo[client_index]=7
A string comparison wouldn't hurt in such a non-time critical function. It's not like it's executed every gameframe ;)

+ Do you really need to force that advertisement on join? Imagine every plugin would do that..

Nice plugin!
Thanks for the suggestions. My main motivation for keeping it is as a reference for others when they have a true need. Wish there was a cleaner way to have pawn do a 32 bit integer compare on strings.

Actually, I hate it when plugins don't announce themselves, nor set a version cvar. I suppose they like to be 1337 and unknown.
__________________

Last edited by LumiStance; 09-29-2012 at 22:02.
LumiStance is offline
LumiStance
AlliedModders Donor
Join Date: Jan 2009
Location: Northern California
Old 09-29-2012 , 22:03   Re: [CSS] Ammo Replenishment Lite - Refill on kill and Restock when out
Reply With Quote #16

Quote:
Originally Posted by fifipaldi View Post
Hi,
really nice plugin i use it on my css servers, but does it work with CS:GO ?

It works i`v tested it myself .
Thanks for taking initiative. I have updated the thread.
__________________
LumiStance is offline
yannick
Member
Join Date: Oct 2012
Old 11-23-2012 , 20:17   Re: [CS:S/CS:GO] Ammo Replenishment Lite - Refill on kill and Restock when out
Reply With Quote #17

hey lumistance, there is a bug in cs:go which gives you only 6 ammo back with the p250. Are you able to fix this?

regards yannick
yannick is offline
LumiStance
AlliedModders Donor
Join Date: Jan 2009
Location: Northern California
Old 11-25-2012 , 23:26   Re: [CS:S/CS:GO] Ammo Replenishment Lite - Refill on kill and Restock when out
Reply With Quote #18

Updated to v1.5
Improvement:
Add guns for CS:GO

Also added a code generator for the CacheClipSize() function.
It takes a list of guns and clip sizes, and outputs the else if blocks.
Runs in stock PERL 5 interpreter (such as ActiveState)
__________________

Last edited by LumiStance; 11-25-2012 at 23:32.
LumiStance is offline
jermin
Member
Join Date: Nov 2008
Old 03-31-2014 , 04:59   Re: [CS:S/CS:GO] Ammo Replenishment Lite - Refill on kill and Restock when out
Reply With Quote #19

Can you fix the replenished ammo count for new CS:GO guns like m4a1-s, usp-s and cz75-auto?
jermin is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 04-11-2014 , 21:24   Re: [CS:S/CS:GO] Ammo Replenishment Lite - Refill on kill and Restock when out
Reply With Quote #20

Quote:
Originally Posted by jermin View Post
Can you fix the replenished ammo count for new CS:GO guns like m4a1-s, usp-s and cz75-auto?
Ah, I just came here to report that issue.
Ejziponken 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 14:55.


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