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

[L4D2] Infinite Ammo


Post New Thread Reply   
 
Thread Tools Display Modes
bo70x
Junior Member
Join Date: Aug 2009
Location: Argentina
Old 06-01-2015 , 13:18   Re: [L4D2] Infinite Ammo
Reply With Quote #61

in left4dead 1 after update metamod and soucemod (windows)

Code:
L 06/01/2015 - 03:45:08: [SM] Native "GetEntProp" reported: Property "m_upgradeBitVec" not found (entity 212/weapon_autoshotgun)
L 06/01/2015 - 03:45:08: [SM] Displaying call stack trace for plugin "l4d2_iammo.smx":
L 06/01/2015 - 03:45:08: [SM]   [0]  Line 1126, /home/groups/sourcemod/upload_tmp/phpziilBS.sp::Event_WeaponFire()
Code:
Metamod:Source version 1.10.5-dev
Built from: https://github.com/alliedmodders/metamod-source/commit/b32c872
Build ID: 937:b32c872
Loaded As: Valve Server Plugin
Compiled on: May 10 2015
Plugin interface version: 15:14
SourceHook version: 5:5
http://www.metamodsource.net/
Code:
SourceMod Version Information:
SourceMod Version: 1.7.2-dev+5204
SourcePawn Engine: SourcePawn 1.7, jit-x86 (build 1.7.2-dev+5204)
SourcePawn API: v1 = 4, v2 = 6
Compiled on: May 28 2015 10:38:47
Built from: https://github.com/alliedmodders/sourcemod/commit/dca2596
Build ID: 5204:dca2596
http://www.sourcemod.net/
bo70x is offline
Send a message via MSN to bo70x
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 01-30-2017 , 17:58   Re: [L4D2] Infinite Ammo
Reply With Quote #62

This is the best version I know for adminis.
Attached Files
File Type: 7z l4d iammo.7z (20.2 KB, 318 views)

Last edited by Mi.Cura; 01-31-2017 at 09:41. Reason: Version works
Mi.Cura is offline
Crazygamer34894
Senior Member
Join Date: Feb 2013
Location: Cape Town Western Cape
Old 04-22-2017 , 14:49   Re: [L4D2] Infinite Ammo
Reply With Quote #63

Quote:
Originally Posted by commander10101 View Post
This plugin still works fine, just type !l4d2_iammo ingame and you will be fine. You must be ingame to do this. For other players you have to do !l4d2_iammo (Player Name) 1 As long as you remove the "()" from the players name.

OKAY PEOPLE you have to Type in "l4d2_iammo_enable 2" into the Server Console "Server side" NOT ingame in the Server side of the "srcds.exe" when you use this Attached plugin The problem is i have to keep typing l4d2_iammo_enable 2 into console server side. this Server 74.91.114.35:27015 has it enabled but i dont know if the server owner types it in manually everytime

i am running L4d2 Server on Windows 10 Creators Update Redstone 2 x64
Attached Files
File Type: 7z l4d iammo.7z (20.2 KB, 209 views)
File Type: cfg l4d2_iammo_config.cfg (1.0 KB, 168 views)
__________________

Last edited by Crazygamer34894; 04-22-2017 at 16:24.
Crazygamer34894 is offline
Send a message via Yahoo to Crazygamer34894 Send a message via Skype™ to Crazygamer34894
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 06-23-2017 , 08:08   Re: [L4D2] Infinite Ammo
Reply With Quote #64

l4d2_iammo_enable 2 //<0|1|2> Enable Infinite Ammo? 0=Off 1=On 2=Everyone
l4d2_iammo_gl 1 //<0|1|2> Allow infinite ammo on grenade launcher? 0=Off 1=On 2=Only
l4d2_iammo_m60 2 //<0|1|2> Allow infinite ammo on the M60? 0=Off 1=On 2=Only
l4d2_iammo_chainsaw 0 //<0|1|2> Allow infinite ammo on the chainsaw? 0=Off 1=On 2=Only
l4d2_iammo_throwables 1 //<0|1|2> Allow Infinite Ammo on Throwables? 0=Off 1=On 2=Only
l4d2_iammo_upgradeammo 1 //<0|1> Allow Infinite Explosive and Incendiary Ammo? 0=Off 1=On
l4d2_iammo_meds 1 //<0|1|2> Allow Infinite Ammo on Medkits? 0=Off 1=On 2=Only
l4d2_iammo_defibs 0 //<0|1|2> Allow Infinite Ammo on Defibrillators? 0=Off 1=On 2=Only
l4d2_iammo_pills 1 //<0|1|2> Allow Infinite Ammo on Pills? 0=Off 1=On 2=Only
l4d2_iammo_shots 2 //<0|1|2> Allow Infinite Ammo on Shots? 0=Off 1=On 2=Only
l4d2_admin_override 1 //<0|1> Admins with infinite ammo always have all settings enabled? 0=Off 1=On

Administrators can open all infinite ammunition.
Players can only open part of the weapons of infinite ammunition.
I set the day, without any results,How to set up?
__________________
I like this BBS sharing of spirit

I come from China, my English is poor
phoenix0001 is offline
hjhee
Junior Member
Join Date: May 2017
Location: China
Old 08-06-2017 , 02:10   Re: [L4D2] Infinite Ammo
Reply With Quote #65

I want to have chainsaw with infinite ammo, so I copied some code from this plugin, but encountered frequent crash, example here.
After investigating the stack trace I found the following code interesting:
Code:
.text:008A3058 loc_8A3058:                             ; CODE XREF: PlayerSaveData::PlayerSaveData(CTerrorPlayer *,char const*)+FB5j
.text:008A3058                                         ; PlayerSaveData::PlayerSaveData(CTerrorPlayer *,char const*)+FCAj ...
.text:008A3058                 mov     [esp+8], esi    ; char *
.text:008A305C                 mov     dword ptr [esp+4], offset aRestoreseconda ; "restoreSecondaryWeaponName"
.text:008A3064                 mov     eax, [edi]
.text:008A3066                 mov     [esp], eax      ; this
.text:008A3069                 call    _ZN9KeyValues9SetStringEPKcS1_ ; KeyValues::SetString(char const*,char const*)
.text:008A306E                 jmp     loc_8A2982      ; maybe server crash because restoreSecondaryWeapon has an error
.text:008A3073 ; ---------------------------------------------------------------------------
here .text:008A306E is the address where server_srv.so!PlayerSaveData:: PlayerSaveData(CTerrorPlayer*, char const*) + 0xf9e points to.

After checking the code, I think the following line will crash server upon map transition and save chainsaw, and suggest it be changed from
Code:
SetEntProp(weaponent, Prop_Send, "m_iClip1", clipsize+1);
to
Code:
SetEntProp(weaponent, Prop_Send, "m_iClip1", clipsize);
a corrected version is in the attachment, v1.5.6

update:

actually the server crashed again, but much less often. I've written a sourcepython plugin to get around this problem, link here for those who encounters crashes for the same reason.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_iammo.sp - 780 views - 34.1 KB)

Last edited by hjhee; 08-07-2017 at 06:54. Reason: update crash information
hjhee is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 11-19-2017 , 04:03   Re: [L4D2] Infinite Ammo
Reply With Quote #66

Updated under Sourcemod v1.8.x.

- Converted to new syntax.
- Attached L4D1 version (no molotov support because L4D1 doesn't have weapon_drop event to hook to).
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_iiammo.sp - 871 views - 34.1 KB)
File Type: sp Get Plugin or Get Source (l4d_iiammo.sp - 823 views - 19.8 KB)
__________________
Psyk0tik is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 12-13-2018 , 15:00   Re: [L4D2] Infinite Ammo
Reply With Quote #67

Hoping you can fix this error Crasher:

Code:
L 12/13/2018 - 10:05:21: [SM] Exception reported: Client 2 is not connected
L 12/13/2018 - 10:05:21: [SM] Blaming: L4D2_infiniteammo.smx
L 12/13/2018 - 10:05:21: [SM] Call stack trace:
L 12/13/2018 - 10:05:21: [SM]   [0] FakeClientCommand
L 12/13/2018 - 10:05:21: [SM]   [1] Line 1304, /home/forums/content/files/1/8/1/1/6/6/166681.attach::CheatCommand
L 12/13/2018 - 10:05:21: [SM]   [2] Line 1262, /home/forums/content/files/1/8/1/1/6/6/166681.attach::TimerPills
Mr. Man is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 12-13-2018 , 19:12   Re: [L4D2] Infinite Ammo
Reply With Quote #68

Quote:
Originally Posted by Mr. Man View Post
Hoping you can fix this error Crasher:

Code:
L 12/13/2018 - 10:05:21: [SM] Exception reported: Client 2 is not connected
L 12/13/2018 - 10:05:21: [SM] Blaming: L4D2_infiniteammo.smx
L 12/13/2018 - 10:05:21: [SM] Call stack trace:
L 12/13/2018 - 10:05:21: [SM]   [0] FakeClientCommand
L 12/13/2018 - 10:05:21: [SM]   [1] Line 1304, /home/forums/content/files/1/8/1/1/6/6/166681.attach::CheatCommand
L 12/13/2018 - 10:05:21: [SM]   [2] Line 1262, /home/forums/content/files/1/8/1/1/6/6/166681.attach::TimerPills
Updated to v1.5.6 (12-13-2018)

- Fixed all timers.
- Used methodmap for menus.
- Too busy to update the rest of the code.

Updated to v1.5.7 (11-22-2020)

- Fixed invalid client index errors.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_iiammo.sp - 276 views - 19.8 KB)
File Type: sp Get Plugin or Get Source (l4d2_iiammo.sp - 430 views - 34.1 KB)
__________________

Last edited by Psyk0tik; 11-22-2020 at 20:31.
Psyk0tik is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 12-16-2018 , 00:19   Re: [L4D2] Infinite Ammo
Reply With Quote #69

Some of my players are reporting an issue with CS weapons, in particular the SG5552. They would grab it and immediately crash to desktop with a disconnect message that says "No Steam Logon." No errors in the log so I am not sure whether it's related to this plugin.
Mr. Man is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 12-19-2018 , 05:08   Re: [L4D2] Infinite Ammo
Reply With Quote #70

Quote:
Originally Posted by Mr. Man View Post
Some of my players are reporting an issue with CS weapons, in particular the SG5552. They would grab it and immediately crash to desktop with a disconnect message that says "No Steam Logon." No errors in the log so I am not sure whether it's related to this plugin.
The source code of this plugin doesn't include anything regarding client authentication.
__________________
Psyk0tik 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 15:13.


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