Left 4 Dead 2

Left 4 Dead 2

Witches get angered by flashlights
235 Komentar
Geebanger0  [pembuat] 4 Jul @ 4:58pm 
no idea
Is it possible for you to fix the issue or no?

Thanks!
@Geebanger0
Hey there, I've experienced a crash when using this mod with the immersive first person with Louis
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3425937883
any idea why this crashes L4D2 when I have these two addons enabled together

I looked into the crash report and searched up .vpk in the crash report, the first listed .vpk file that I have found was your mod
steamapps\common\left 4 dead 2\left4dead2\addons\workshop\3294544528.vpk
and the second one is \steamapps\common\left 4 dead 2\left4dead2\addons\workshop\3425937883.vpk
@Geebanger0
Thanks so much for letting me know, as I thought your mod was wrong or something because it only worked for me with sitting witches rather than walking ones :)
Geebanger0  [pembuat] 11 Mei @ 3:26am 
yes

(the cvars this edits to make them mad only apply to sitting witches)
@Geebanger0
I tried your mod and it doesn't work on the walking witches.
Could it be because their eyes are covered and they can't see the flashlight?
ravenz 10 Mei @ 8:23pm 
i tested it and it does only have a minor effect
Geebanger0  [pembuat] 10 Mei @ 8:22pm 
i think it only has a minor effect on standing witches
ravenz 10 Mei @ 5:59pm 
does this effect both witch states or just only sitting witches?
Geebanger0  [pembuat] 17 Apr @ 3:12am 
im cooked atm, I'll add you so we can sort it out though
Alpha 16 Apr @ 1:24pm 
bro, I found there is a better way to startle witch.
In your mod, survivors will startle witches when turning on flashlight whichever they are forward to her or not. I think it's not logically.
So I add a function to check it.

function IsForward(player, witch) {
local playerPos = player.EyePosition()
// witch is sitting, so z is half
local witchPos = Vector(witch.GetOrigin().x, witch.GetOrigin().y, (witch.GetOrigin().z + witch.GetCenter().z) / 2)

local eyesForward = player.EyeAngles().Forward()
local posForwsrd = witchPos - playerPos

local cosine = posForwsrd.Dot(eyesForward) / (posForwsrd.Length() * eyesForward.Length())
return cosine > 0.95
}

Add it into the condition "survivor.IsSurvivor() && !survivor.IsDead() && IsFlashlightOn(survivor)" by &&, then only survivors looking at witches with flashlight on, she will be startled.
Due to firearm holding animations, there are slight variations in the exact trigger angles.
I've tested it, works.
Alpha 16 Apr @ 10:42am 
Nice mod bro~ I like it !
But is there any situation that makes with attack wrong target ? e.g my teammate flash witch but I am the nearest one by her, leading to she attack me?
Sieg Rem 26 Mar @ 10:42pm 
Nice:steamthumbsup::steamthumbsup::steamthumbsup:
PEACEandLOVE 18 Feb @ 10:24pm 
You're a saint my man!
PEACEandLOVE 18 Feb @ 10:11pm 
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3122135034

Slight caveat on this mod - my initial impression was a little imprecise - it completely removes ALL survivor outlines including in/out of Rescue Closets.
PEACEandLOVE 18 Feb @ 10:00pm 
I actually just found a mod that removes the outlines! So as long as your mod was compatible with it (I'll share a link) then we could avoid dealing with that part.

And yes actually what you're laying out sounds even better - I like the idea of the survivor corpses in there with her.

DM me for more details and a fair commission amount for your time and skills.
PEACEandLOVE 18 Feb @ 8:17pm 
This mod cannot be played without. True Vanilla improvement.

I've been looking to commission a similar mod (in that it makes witch's more of a threat in-line with how the cinematic intro presents them). Basically, Rescue Closets would have a certain odds % of Witches (resting AND automatically startled) spawning instead of survivors. Say 80% Survivors, 10% resting witch, 10% door-startled witch. To maintain uncertainty and suspense, Rescue Closet's survivor silouette would be removed and 'help' audio would be replaced by doorknob rattling, banging against the door, etc.

Just like this mod leaves user input for the flashlight-trigger range, the odds % of survivor/restingwitich/startled witch spawning could be customized.

Let me know if this idea interests you or sounds feasible! I've asked a couple other modders so far but so far I'm hearing it's either uninteresting or not technically possible due to the game's code.
★JΛKΣ★ 15 Feb @ 11:13am 
does it affect wandering witch?
Geebanger0  [pembuat] 9 Feb @ 2:09am 
it does
★JΛKΣ★ 9 Feb @ 2:08am 
Bots flashlight doesn't affect the witch right?
Geebanger0  [pembuat] 14 Jan @ 10:33am 
im sorry you had to do through that
BundyIsHome 14 Jan @ 6:14am 
Honestly made me clench my butthole when it happened
Brix 12 Jan @ 8:51am 
For some reason, this mods changes the AK-47, both tier one shotguns, M16 and magnun's skins
Hope L4D3 can achieve
Harriko 29 Des 2024 @ 12:34pm 
That would be awesome! It'd be selfish of me to ask you to make it for me, but if you find any tips of how to get started, that'd be great. You've done some really creative scripts, and I hope to see more :DD
Geebanger0  [pembuat] 29 Des 2024 @ 2:25am 
i think thats possible. just based on the idea ive got a rough plan for how it could be made, though i havent done a lot of work with fog before so im not sure how it would behave with multiple players. If you'd like, I can give it a shot tomorrow and see what I come up with; either make the script for it or at least find out some info you could use to make it yourself
Harriko 29 Des 2024 @ 12:56am 
OH heya, I wanted to try an effect where there would be heavy fog, but turning on your flashlight would push it away. Just curious if that's possible
Geebanger0  [pembuat] 28 Des 2024 @ 3:31pm 
what are you trying to do
Harriko 28 Des 2024 @ 3:28pm 
This is such a cool idea for a mod. Quick question about it tho, is there a way to have the effects active without the witch spawn? wanna do a personal edit, but not sure how to set it up
Geebanger0  [pembuat] 23 Nov 2024 @ 1:13am 
i think theyre sexist
Legoshi's Lover 23 Nov 2024 @ 1:03am 
That'd be great; currently Valve's flashlight effect on the Witch is flawed; it uses "z_witch_hostile_at_me_anger"'s value to determine how fast she gets up from it, but this also affects how fast she gets up when shooting/attacking with melee, so it's not very reliable. Not to mention that if, for example Nick (with his light off) is infront the Witch but you are behind Nick and you look at the Witch with your light on, she won't care. She is only affected by the flashlight by the closest survivor. Valve certainly has weird ways to code the Witch's behaviors.
Geebanger0  [pembuat] 23 Nov 2024 @ 1:00am 
i will make that one day
Legoshi's Lover 23 Nov 2024 @ 12:26am 
V Perhaps one day we'll get a mod that startles a Witch like in the trailer. As in if a survivor has their light on and looks in the general direction of the Witch (not behind walls, but works through windows/fences), then the Witch is dealt 1 damage and told it's the survivor with the light that looked at her that damaged her, so that she gets sent after that player. An immediate startle when looking at her with the light on, so that you truly have to turn off your lights until you know where she is. Once startled the flashlight shouldn't affect her. I think Wandering Witches should be optionally affected (via EMS toggle settings)
Sitonai 9 Nov 2024 @ 3:29pm 
This would be hard to recreate alone. If you are interested we can perhaps play a game so I could show you what I mean and see for yourself. I sent you a friend request.
Sitonai 9 Nov 2024 @ 3:26pm 
@Geebanger0 I believe that would be the problem by itself. Your script will always return true if a survivor with a flashlight on is within range, even if they are facing away from the witch. If you could somehow add a condition FlashlightOnCvars() if the survivor has their flashlight on and is facing a witch.
Geebanger0  [pembuat] 9 Nov 2024 @ 3:04pm 
well thats a bit odd, it should only trigger if the person with their light on is within range
Sitonai 9 Nov 2024 @ 2:18pm 
If you could somehow modify the requirements for "FlashlightOnCvars()" to be true in a different way that would only make the witch more aggressive to the person facing her with the flashlight turned on.
Sitonai 9 Nov 2024 @ 2:16pm 
Scenario 1
First I asked my friend to move very far away from the witch and turn on the flashlights, me facing the witch behaved normally without flashlights on, even if my friend has flashlights on but very far away.

Scenario 2
I asked my friend to stay with me in the same area, No mercy rooftop to be specific. I spawned a witch and asked to move some distance from it and turn off flashlights. Mine is off too. As expected witch is not that aggressive. Here is the problematic part. I asked my friend, who is still in the same rooftop but still pretty far away from the witch to turn on the flashlights but facing away the witch. Me who is closer and facing the witch still have my flashlight off. Even with my flashlights off, the witch got startled really fast and attacked me, even if my flashlight is off and my friend who has his flashlight on is not even facing the witch at all and has a considerable distance from the witch.

Great mod btw! I loved it.
不能修復的痛 22 Okt 2024 @ 3:22am 
This is what it looks like in the trailer, but the game lacks this feature.
SleepyNotDead 18 Okt 2024 @ 9:16pm 
makes sense.
Geebanger0  [pembuat] 18 Okt 2024 @ 12:49pm 
Yeah it’s not supposed to work on the wandering witch, they use different aggression variables and I didn’t change them because they’ve already got the sun shining in their face.
SleepyNotDead 18 Okt 2024 @ 6:09am 
Doesn't seem to work with the standing wandering witch, works just fine with the sitting one though.

I guess you could headcanon it as since the wandering witches only come out during the day, they just dont notice the flashlight in broad daylight.
some kind of alligator 16 Okt 2024 @ 9:24pm 
that's fine
Geebanger0  [pembuat] 16 Okt 2024 @ 8:19pm 
well i cant think of anything else right now so good luck with that :BL3Thumbsup:
some kind of alligator 16 Okt 2024 @ 8:15pm 
uh lots (˘•‿•)
Geebanger0  [pembuat] 16 Okt 2024 @ 8:11pm 
how much time you got
some kind of alligator 16 Okt 2024 @ 8:11pm 
what else have I been lied about gameplay wise lol
Geebanger0  [pembuat] 16 Okt 2024 @ 8:01pm 
pretty much. it only really matters if youre not fully committed to crowning her
some kind of alligator 16 Okt 2024 @ 7:52pm 
wait wait wait, your telling me I NEVER HAD TO TURN OFF MY FLASHLIGHT!?!?!?!?!
Geebanger0  [pembuat] 29 Sep 2024 @ 1:05am 
It should work, but since I haven't tested it or decompiled MANACATs mod to see how it functions I can't guarantee it