Left 4 Dead 2

Left 4 Dead 2

View Stats:
How do I kill all witches using commands?
As the tittle said, how do I slay all witches in the map with the console? Vanilla or sourcemod is fine.
< >
Showing 1-14 of 14 comments
kurochama Jul 1, 2024 @ 4:12pm 
I think using "kill witch" on console probably works, though I'm not sure if that kills only one witch or all witches instead. I ever did that on special infected that captured me when testing a mod, like "kill charger" & the charger died immediately.
Xbye Jul 1, 2024 @ 5:28pm 
Originally posted by kurochama:
The witch is a special special infected. She is essentially a reskinned/slightly modified common infected, unlike the special infected. She shares a lot of cvars with common infected, as well as AI pathing and some behaviors. So I don't think she is targetable by the same means that you use to target special infected and players.
kurochama Jul 1, 2024 @ 6:34pm 
Originally posted by Xbye:
Originally posted by kurochama:
The witch is a special special infected. She is essentially a reskinned/slightly modified common infected, unlike the special infected. She shares a lot of cvars with common infected, as well as AI pathing and some behaviors. So I don't think she is targetable by the same means that you use to target special infected and players.
If that's so, then vscript is probably one of the solutions. Vscript can give damage to any zombies equal to the amount of their health simply by using "TakeDamage" function, & can target multiple objects at once by using "Entities.FindByClassname" or other variants. So, all witches can be killed easily with vscript functions.
dag Jul 2, 2024 @ 8:05am 
Originally posted by kurochama:
Originally posted by Xbye:
The witch is a special special infected. She is essentially a reskinned/slightly modified common infected, unlike the special infected. She shares a lot of cvars with common infected, as well as AI pathing and some behaviors. So I don't think she is targetable by the same means that you use to target special infected and players.
If that's so, then vscript is probably one of the solutions. Vscript can give damage to any zombies equal to the amount of their health simply by using "TakeDamage" function, & can target multiple objects at once by using "Entities.FindByClassname" or other variants. So, all witches can be killed easily with vscript functions.
Nerds
You can just kick them.

Kicking is more humiliating and for them.

And i´m not making this up you can kick SI before they even attack you;

Example "kick tank" , and you kick the tank before he even attacks you.

So they´re players , but not players because is A.I... Weird huh?
Last edited by England is not a real country; Jul 2, 2024 @ 8:16am
Johnny Casey Jul 2, 2024 @ 8:16am 
I think Witches are part of the common infected "team", so they can't be kicked like you do with the special infected team.
Witch Jul 2, 2024 @ 8:17am 
you can't kill witches in any way
Originally posted by Johnny Casey:
I think Witches are part of the common infected "team", so they can't be kicked like you do with the special infected team.
I mean i´ve menaged to kick the witch once, i was bored and messing with random console commands when the witch i´ve spawned randomly got kicked by accident

(Although this was a long time ago , and i´m probably remembering wrong)

It works but if they´re like 2 witches in the map (?) , you kick one and the director spawns other one , then you can´t kick the other witch.
Last edited by England is not a real country; Jul 2, 2024 @ 8:27am
Nescius Jul 2, 2024 @ 8:52am 
ent_fire witch kill
Requires sv_cheats 1. No vanilla way to remove witches without cheats
Last edited by Nescius; Jul 2, 2024 @ 8:53am
kurochama Jul 2, 2024 @ 9:57am 
Originally posted by zero:
Originally posted by kurochama:
If that's so, then vscript is probably one of the solutions. Vscript can give damage to any zombies equal to the amount of their health simply by using "TakeDamage" function, & can target multiple objects at once by using "Entities.FindByClassname" or other variants. So, all witches can be killed easily with vscript functions.
Nerds
Well I was explaining the fact though :steamhappy: . Cvars are limited in use, while vscripts can have more varieties, & at the same time vscripts don't require "sv_cheats" at all :steamhappy: . He should use vscripts if he plans to properly kill multiple witches without removing them
DimTheEnderman Jul 2, 2024 @ 10:06am 
You could make a script that sets "z_witch_limit" to 0
sʜᴀ Jul 2, 2024 @ 10:23am 
Can't we, like, vscript to deal infinite damage to anything at the center of the crosshair ?
Evil Jul 2, 2024 @ 10:24am 
Originally posted by DimTheEnderman:
You could make a script that sets "z_witch_limit" to 0
I was wondering how long it'd take for someone to say that. Though, the cvar you're referencing doesn't actually exist. It does exist as an entry in the director table though, witchlimit = 0. Which seems to be what you meant, but I feel the need to clarify.
kurochama Jul 2, 2024 @ 10:54am 
Originally posted by DimTheEnderman:
You could make a script that sets "z_witch_limit" to 0
I think he wanted to kill witches personally, like probably he wanted to see witches suddenly die in front of his eyes for fun

Originally posted by sʜᴀ:
Can't we, like, vscript to deal infinite damage to anything at the center of the crosshair ?
Yes it's possible, by using "weapon_fire" event function combined with "Traceline" & "TakeDamage" functions. Even I ever created some vscripts to deal health-based damage on custom bosses on some custom maps that had too much health.
< >
Showing 1-14 of 14 comments
Per page: 1530 50

Date Posted: Jul 1, 2024 @ 1:36pm
Posts: 14