View Single Post
a2121858
Member
Join Date: Sep 2020
Old 01-03-2022 , 03:38   Re: [l4d2] Removing certain items like defibrillators
Reply With Quote #10

Quote:
Originally Posted by Marttt View Post
probably they are a "weapon_spawn" entity.

https://developer.valvesoftware.com/wiki/Weapon_spawn

You need to change the weapon_sniper_awp option.

PHP Code:
modify:
{
    
match:
    {
        
"classname" "weapon_spawn"
        "weapon_selection" "weapon_sniper_awp"
    
}
    
replace:
    {
        
"weapon_selection" "weapon_sniper_scout"
    
}

Thank you, Mr. Marttt.
I do it in your way, but there is no effect.
AWP still generated in the safety house.

PHP Code:
modify:
{
    
match:
    {
        
"classname" "weapon_spawn"
        "weapon_selection" "weapon_sniper_awp"
    
}
    
replace:
    {
        
"weapon_selection" "weapon_sniper_scout"
    
}


modify:
{
    
match:
    {
        
"classname" "weapon_sniper_awp_spawn"
    
}
    
replace:
    {
        
"classname" "weapon_sniper_scout_spawn"
    
}


Last edited by a2121858; 01-03-2022 at 03:39.
a2121858 is offline