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

[L4D/L4D2]Weapon Cleaner (2.2.5)


Post New Thread Reply   
 
Thread Tools Display Modes
Voevoda
Senior Member
Join Date: Aug 2016
Old 12-02-2019 , 19:38   Re: [L4D/L4D2]Weapon Cleaner
Reply With Quote #21

Quote:
Originally Posted by xZk View Post
small fix update

thanks Voevoda again


when you make a big list it works poorly

Quote:
weapon_cleaner_exclude "ammo_can,ammo_stack,tonfa,machete,katana,gol fclub,frying_pan,fireaxe,crowbar,knife,baseba ll_bat,cricket_bat,grenade_launcher,ammo,gnom e,melee,gascan,cola_bottles,rifle_ak47,adrena line,upgradepack_incendiary,upgradepack_explo sive,rifle_m60,rifle_sg552,first_aid_kit,shot gun_spas,defibrillator,ammo_pack,pain_pills,s niper_awp,sniper_scout"

Last edited by Voevoda; 12-02-2019 at 19:39.
Voevoda is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 12-02-2019 , 20:24   Re: [L4D/L4D2]Weapon Cleaner
Reply With Quote #22

As far as I remember Silvers said that the maximum number of characters in the cvar can be 255
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
Voevoda
Senior Member
Join Date: Aug 2016
Old 12-03-2019 , 21:05   Re: [L4D/L4D2]Weapon Cleaner
Reply With Quote #23

@xZk

make 2 cvar for example:

1) weapon_cleaner_exclude_meele
2) weapon_cleaner_exclude
Voevoda is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 12-04-2019 , 10:23   Re: [L4D/L4D2]Weapon Cleaner
Reply With Quote #24

Converted everything to a new syntax and methodmaps.

(unverified)
Attached Files
File Type: inc l4d_stocks.inc (40.8 KB, 208 views)
File Type: inc l4d_weapon_stocks.inc (14.2 KB, 219 views)
File Type: sp Get Plugin or Get Source (weapon_cleaner.sp - 184 views - 29.6 KB)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 12-04-2019 , 15:16   Re: [L4D/L4D2]Weapon Cleaner
Reply With Quote #25

Quote:
Originally Posted by BHaType View Post
...maximum number of characters in the cvar can be 255
Yep, the size is limited.

You can confirm that by typing the cvar in the console and check how the string is after the .cfg was loaded.
__________________
Marttt is offline
Voevoda
Senior Member
Join Date: Aug 2016
Old 12-04-2019 , 21:32   Re: [L4D/L4D2]Weapon Cleaner
Reply With Quote #26

this is on the server weapon_cleaner.cfg
Quote:
weapon_cleaner_exclude = CreateConVar("weapon_cleaner_exclude", "tonfa,machete,katana,golfclub,frying_pan,fir eaxe,crowbar,knife,baseball_bat,cricket_bat,m elee,adrenaline,first_aid_kit,defibrillator,p ain_pills,ammo_can,ammo_stack,gnome,gascan,co la_bottles,rifle_ak47,upgradepack_incendiary, upgradepack_explosive,rifle_m60,rifle_sg552,s hotgun_spas,ammo_pack,sniper_awp,sniper_scout ", "Set name weapons to exclude(WhiteList), example: gascan,propanetank,first_aid_kit,...(etc) (https://wiki.alliedmods.net/Left_4_Dead_2_Weapons)");


this is the console
Quote:
sm_cvar weapon_cleaner_exclude
[SM] Value of cvar "weapon_cleaner_exclude": "tonfa,machete,katana,golfclub,fryi
ng_pan,fireaxe,crowbar,knife,baseball_bat,cri cket_bat,melee,adrenaline,first_aid
_kit,defibrillator,pain_pills,ammo_can,ammo_s tack,gnome,gascan,cola_bottles,rifl
e_ak47,upgradepack_incendiary,upgradepack_exp losive,rifle_m6"



make 3 cvar for example:

1) weapon_cleaner_exclude_meele
2) weapon_cleaner_exclude_weapon
3) weapon_cleaner_exclude_grenades

Last edited by Voevoda; 12-04-2019 at 21:40.
Voevoda is offline
xZk
Senior Member
Join Date: Nov 2017
Location: cl
Old 12-06-2019 , 20:07   Re: [L4D/L4D2]Weapon Cleaner
Reply With Quote #27

update 1.3.0
Quote:
2019-12-6 (v1.3.0)
*Converted to a new syntax and methodmaps.
*New cfg file WhiteList added (replaces old cvar: exclude_weapons)
Thanks to you for your help
I have decided to replace that cvar, with a cfg file for to use the WhiteList
xZk is offline
ur5efj
Member
Join Date: Jan 2006
Old 12-07-2019 , 04:21   Re: [L4D/L4D2]Weapon Cleaner
Reply With Quote #28

Quote:
Originally Posted by xZk View Post
update 1.3.0
Code:
L 12/07/2019 - 10:36:00: SourceMod error session started
L 12/07/2019 - 10:36:00: Info (map "c3m1_plankcountry") (file "C:\SteamCMD\SteamApps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\errors_20191207.log")
L 12/07/2019 - 10:36:00: [SM] MEMORY LEAK DETECTED IN PLUGIN (file "weapon_cleaner.smx")
L 12/07/2019 - 10:36:00: [SM] Unloading plugin to free 30370 handles.
L 12/07/2019 - 10:36:00: [SM] Contact the author(s) of this plugin to correct this error.
L 12/07/2019 - 10:36:00: --------------------------------------------------------------------------
L 12/07/2019 - 10:36:00: Type	CellArray           |	Count	30370
L 12/07/2019 - 10:36:00: -- Approximately 607400 bytes of memory are in use by (30370) Handles.
ur5efj is offline
Voevoda
Senior Member
Join Date: Aug 2016
Old 12-13-2019 , 16:58   Re: [L4D/L4D2]Weapon Cleaner
Reply With Quote #29

Quote:
Originally Posted by ur5efj View Post
Code:
L 12/07/2019 - 10:36:00: SourceMod error session started
L 12/07/2019 - 10:36:00: Info (map "c3m1_plankcountry") (file "C:\SteamCMD\SteamApps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\errors_20191207.log")
L 12/07/2019 - 10:36:00: [SM] MEMORY LEAK DETECTED IN PLUGIN (file "weapon_cleaner.smx")
L 12/07/2019 - 10:36:00: [SM] Unloading plugin to free 30370 handles.
L 12/07/2019 - 10:36:00: [SM] Contact the author(s) of this plugin to correct this error.
L 12/07/2019 - 10:36:00: --------------------------------------------------------------------------
L 12/07/2019 - 10:36:00: Type	CellArray           |	Count	30370
L 12/07/2019 - 10:36:00: -- Approximately 607400 bytes of memory are in use by (30370) Handles.


@xZk HI

memory fixes will be?
Voevoda is offline
xZk
Senior Member
Join Date: Nov 2017
Location: cl
Old 12-13-2019 , 18:18   Re: [L4D/L4D2]Weapon Cleaner
Reply With Quote #30

small update
Quote:
2019-12-13 (v1.3.2)
*Fixed no reset timer on weapon equipped
I don't understand why that error is exactly, but maybe this small update can fix it, I still have to learn i'm sorry :s
xZk 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 05:57.


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