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

[l4d2] Removing certain items like defibrillators


Post New Thread Reply   
 
Thread Tools Display Modes
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 01-03-2022 , 05:52   Re: [l4d2] Removing certain items like defibrillators
Reply With Quote #11

Probably is because weapon_spawn also has other variables besides the one I mentioned.

Value Description
any "Any primary or secondary weapon"
any_pistol "Any Pistol"
weapon_pistol "Pistol"
weapon_pistol_magnum "Magnum Pistol"
any_primary "Any Primary Weapon"
tier1_any "Any tier 1 primary"
tier2_any "Any tier 2 primary"
any_smg "Any tier 1 SMG"
any_rifle "Any tier 2 Rifle"
any_sniper_rifle "Any tier 2 Sniper Rifle"
any_shotgun "Any Shotgun"
tier1_shotgun "Any tier 1 Shotgun"
tier2_shotgun "Any tier 2 Shotgun"
weapon_smg "SMG"
weapon_smg_silenced "Silenced SMG"
weapon_pumpshotgun "Pump Shotgun"
weapon_shotgun_chrome "Chrome Shotgun"
weapon_autoshotgun "Auto Shotgun"
weapon_shotgun_spas "SPAS Shotgun"
weapon_rifle "M4 Rifle"
weapon_rifle_desert "Desert Rifle"
weapon_rifle_ak47 "AK47"
weapon_hunting_rifle "Hunting Rifle"
weapon_sniper_military "Sniper Military"
weapon_smg_mp5 "MP5"
weapon_rifle_sg552 "SG552"
weapon_sniper_awp "Sniper AWP"
weapon_sniper_scout "Sniper Scout"


You should try getting the weapon pos and checking what is supposed to be on stripper.
__________________

Last edited by Marttt; 01-03-2022 at 05:54.
Marttt is offline
moschinovac
Member
Join Date: Mar 2019
Location: Vietnam
Old 01-03-2022 , 22:59   Re: [l4d2] Removing certain items like defibrillators
Reply With Quote #12

Faster way is use VScript so u dont need to filter all method of "weapon_spawn" in Stripper
Code:
	weaponsToConvert =
	{
		weapon_sniper_awp = "weapon_sniper_scout_spawn"
	}

	function ConvertWeaponSpawn( classname )
	{
		if ( classname in weaponsToConvert )
		{
			return weaponsToConvert[classname];
		}
		return 0;
	}

	weaponsToRemove =
	{	
		weapon_sniper_awp = 0	
	}
	
	function AllowWeaponSpawn( classname )
	{
		if ( classname in weaponsToRemove )
		{
			return false;
		}
		return true;
	}

Last edited by moschinovac; 01-03-2022 at 23:04.
moschinovac is offline
a2121858
Member
Join Date: Sep 2020
Old 01-05-2022 , 03:34   Re: [l4d2] Removing certain items like defibrillators
Reply With Quote #13

Yes, this is what I do now, using vscript.

Thank Marttt and moschinovac for their help.
a2121858 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 11:52.


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