AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   L4D2 how do I remove chainsaw or object on all maps (https://forums.alliedmods.net/showthread.php?t=327667)

gamer_kanelita 10-03-2020 03:03

L4D2 how do I remove chainsaw or object on all maps
 
I would like to eliminate the chainsaw and adrenaline in all the maps of the left 4 dead 2 totally, who helps me? :llorar: :llorar:

Bacardi 10-03-2020 05:26

Re: L4D2 how do I remove chainsaw or object on all maps
 
stripper dump.

Code:

{
"origin" "-2538 2786 4.33493"
"targetname" "chainsaw"
"spawnflags" "0"
"item9" "0"
"item8" "0"
"item7" "0"
"item6" "0"
"item5" "0"
"item4" "0"
"item3" "0"
"item2" "0"
"item17" "1"
"item16" "1"
"item15" "0"
"item14" "0"
"item13" "0"
"item12" "0"
"item11" "0"
"item10" "0"
"item1" "0"
"angles" "0 60 0"
"classname" "weapon_item_spawn"
"hammerid" "1637094"
}

Valve wiki dev (or Hammer editor) weapon_item_spawn

I made this screenshot

So, in Stripper global config.

global_filters.cfg
Code:

modify:
{
        match:
        {       
        "classname" "weapon_item_spawn"
        }
        replace:
        {
        "item11" "0"
        "item16" "0"
        }
        delete:
        {
        }
        insert:
        {
        }
}

filter:
{
        "classname"        "weapon_adrenaline_spawn"
}
{
        "classname"        "weapon_chainsaw_spawn"
}

*edit
If specific item still exist, it have been created by own classname than with weapon_item_spawn. Need add that in config also.

gamer_kanelita 10-03-2020 09:44

Re: L4D2 how do I remove chainsaw or object on all maps
 
Hello, I still have adrenaline pumping in the second chapter of the parish on the train :(, but thank you very much anyway :)

Bacardi 10-03-2020 14:14

Re: L4D2 how do I remove chainsaw or object on all maps
 
...not sure why. But I didn't find it. Look configure again, I updated second time.

JLmelenchon 11-10-2020 04:21

Re: L4D2 how do I remove chainsaw or object on all maps
 
Do you know what it could be for removing incendiary and explosive ammo upgrade box ?

Marttt 11-10-2020 07:05

Re: L4D2 how do I remove chainsaw or object on all maps
 
You can always check the entities list here (https://developer.valvesoftware.com/..._L4D2_Entities)

Didn't test but these are the entities related to the upgrades:

weapon_upgradepack_explosive_spawn
https://developer.valvesoftware.com/...xplosive_spawn

weapon_upgradepack_incendiary_spawn
https://developer.valvesoftware.com/...cendiary_spawn

upgrade_spawn
https://developer.valvesoftware.com/wiki/Upgrade_spawn

-----------------------------

then maybe try this:

Code:

filter:
{
        "classname"        "weapon_upgradepack_explosive_spawn"
}
{
        "classname"        "weapon_upgradepack_incendiary_spawn"
}

Code:

modify:
{
        match:
        {
                "classname" "upgrade_spawn"
        }
        replace:
        {
                "upgradepack_incendiary" "0"
                "upgradepack_explosive" "0"
        }
}


cravenge 11-11-2020 06:13

Re: L4D2 how do I remove chainsaw or object on all maps
 
It's best to get rid of the upgrade_spawn entities that spawn incendiary and/or explosive ammo packs while keeping the ones that spawn laser sights instead intact. Doing the above will just either turn them all into laser sights or waste entity space.

JLmelenchon 11-11-2020 12:21

Re: L4D2 how do I remove chainsaw or object on all maps
 
Quote:

Originally Posted by Marttt (Post 2724434)
then maybe try this:

Code:

filter:
{
        "classname"        "weapon_upgradepack_explosive_spawn"
}
{
        "classname"        "weapon_upgradepack_incendiary_spawn"
}

Code:

modify:
{
        match:
        {
                "classname" "upgrade_spawn"
        }
        replace:
        {
                "upgradepack_incendiary" "0"
                "upgradepack_explosive" "0"
        }
}


Thanks it seems to work.

JLmelenchon 11-14-2020 03:24

Re: L4D2 how do I remove chainsaw or object on all maps
 
Is it possible to do the same with some T2 weapons ? Still "classname" "weapon_item_spawn" or something else ?

Marttt 11-14-2020 06:16

Re: L4D2 how do I remove chainsaw or object on all maps
 
For T2 you have to check 3 classesnames:
  • weapon_<name>_spawn (e.g. weapon_rifle_ak47_spawn)
  • weapon_<name> (e.g. weapon_spawn)
  • weapon_spawn

Also can check here some other weapon_spawn attributes.
Which is a bit complex cause they have many variants:

Code:

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

Then on Stripper you have to do something like this:

Spoiler


All times are GMT -4. The time now is 04:12.

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