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

[L4D2] Ammo Pickup


Post New Thread Reply   
 
Thread Tools Display Modes
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Old 07-17-2013 , 15:32   Re: [L4D2] Ammo Pickup
Reply With Quote #21

I'm switching to v1.1, it works perfecto on Win/Linux. Minus one extension in our exts list!
__________________
disawar1 is offline
sentysent
Junior Member
Join Date: Jul 2013
Old 12-06-2013 , 05:55   Re: [L4D2] Ammo Pickup
Reply With Quote #22

Hi, is it possible to modify the scripts of this plugin by changing the values of the clip size for both M60 and grenade launcher into variables? For an example of editing the lines below:
Quote:
SetEntProp(client, Prop_Send, "m_iAmmo", ((GetConVarInt(hM60Ammo)+150)-iClip1), _, iPrimType)
SetEntProp(client, Prop_Send, "m_iAmmo", ((GetConVarInt(hGLAmmo)+1)-iClip1), _, iPrimType)
To this:
Quote:
SetEntProp(client, Prop_Send, "m_iAmmo", ((GetConVarInt(hM60Ammo)+"M60 clip size variable")-iClip1), _, iPrimType)
SetEntProp(client, Prop_Send, "m_iAmmo", ((GetConVarInt(hGLAmmo)+"Grenade Launcher clip size variable")-iClip1), _, iPrimType)
Because I edited the scripts for m60 and grenade launcher with different clip size.
sentysent is offline
psycki
BANNED
Join Date: Aug 2013
Location: https://t.me/pump_upp
Old 12-19-2013 , 15:27   Re: [L4D2] Ammo Pickup
Reply With Quote #23

I thought that the error was because I had forgotten mempatch.autoload but still the error continues.
the last steam update broke the plugin?

[l4d2ammo_pickup.smx] Failed to get Address
[SM] Plugin encountered error 25: Call was aborted
[SM] Native "SetFailState" reported: Unable to find the "CTerrorPlayer::OnRevived(void)" signature, check the file version!
psycki is offline
Send a message via ICQ to psycki Send a message via AIM to psycki Send a message via Yahoo to psycki
Voevoda
Senior Member
Join Date: Aug 2016
Old 04-16-2020 , 16:05   Re: [L4D2] Ammo Pickup
Reply With Quote #24

Quote:
Originally Posted by xZk View Post
Updated to the transitional syntax, and fixed when m60 rifle is dropped and cannot be picked up.
Also add 2 new cvars to fix the clip when reloading, if the default clip has been modified
PHP Code:
//set custom max clip size Rifle M60
ammo_pickup_clipsize_m60 "150" //default "150"
//set custom max clip size Grenade Launcher
ammo_pickup_clipsize_grenadelauncher "1" //default "1" 
crash server
Voevoda is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-16-2020 , 16:21   Re: [L4D2] Ammo Pickup
Reply With Quote #25

[L4D2]M60_GrenadeLauncher_patches and AlliedMods post - modern memory patch version by Lux.
__________________

Last edited by Silvers; 04-16-2020 at 16:22.
Silvers is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 05-02-2020 , 15:55   Re: [L4D2] Ammo Pickup
Reply With Quote #26

Had no idea this plugin existed
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux 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 07:48.


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