Left 4 Dead 2

Left 4 Dead 2

Witches get angered by flashlights
235 則留言
Geebanger0  [作者] 7 月 4 日 下午 4:58 
no idea
GI1TcH!mg G@M3R (R.A.Sudios) 7 月 4 日 下午 3:14 
Is it possible for you to fix the issue or no?

Thanks!
GI1TcH!mg G@M3R (R.A.Sudios) 7 月 4 日 下午 3:12 
@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
Колоссальный вет 5 月 11 日 上午 3:38 
@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  [作者] 5 月 11 日 上午 3:26 
yes

(the cvars this edits to make them mad only apply to sitting witches)
Колоссальный вет 5 月 11 日 上午 3:24 
@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 5 月 10 日 下午 8:23 
i tested it and it does only have a minor effect
Geebanger0  [作者] 5 月 10 日 下午 8:22 
i think it only has a minor effect on standing witches
ravenz 5 月 10 日 下午 5:59 
does this effect both witch states or just only sitting witches?
Geebanger0  [作者] 4 月 17 日 上午 3:12 
im cooked atm, I'll add you so we can sort it out though
Alpha 4 月 16 日 下午 1:24 
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 4 月 16 日 上午 10:42 
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 3 月 26 日 下午 10:42 
Nice:steamthumbsup::steamthumbsup::steamthumbsup:
PEACEandLOVE 2 月 18 日 下午 10:24 
You're a saint my man!
PEACEandLOVE 2 月 18 日 下午 10:11 
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 2 月 18 日 下午 10:00 
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 2 月 18 日 下午 8:17 
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Σ★ 2 月 15 日 上午 11:13 
does it affect wandering witch?
Geebanger0  [作者] 2 月 9 日 上午 2:09 
it does
★JΛKΣ★ 2 月 9 日 上午 2:08 
Bots flashlight doesn't affect the witch right?
Geebanger0  [作者] 1 月 14 日 上午 10:33 
im sorry you had to do through that
BundyIsHome 1 月 14 日 上午 6:14 
Honestly made me clench my butthole when it happened
Brix 1 月 12 日 上午 8:51 
For some reason, this mods changes the AK-47, both tier one shotguns, M16 and magnun's skins
坚果土拨鼠-牢大肘人版 1 月 1 日 上午 5:54 
Hope L4D3 can achieve
Harriko 2024 年 12 月 29 日 下午 12:34 
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  [作者] 2024 年 12 月 29 日 上午 2:25 
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 2024 年 12 月 29 日 上午 12:56 
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  [作者] 2024 年 12 月 28 日 下午 3:31 
what are you trying to do
Harriko 2024 年 12 月 28 日 下午 3:28 
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  [作者] 2024 年 11 月 23 日 上午 1:13 
i think theyre sexist
Legoshi's Lover 2024 年 11 月 23 日 上午 1:03 
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  [作者] 2024 年 11 月 23 日 上午 1:00 
i will make that one day
Legoshi's Lover 2024 年 11 月 23 日 上午 12:26 
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 2024 年 11 月 9 日 下午 3:29 
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 2024 年 11 月 9 日 下午 3:26 
@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  [作者] 2024 年 11 月 9 日 下午 3:04 
well thats a bit odd, it should only trigger if the person with their light on is within range
Sitonai 2024 年 11 月 9 日 下午 2:18 
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 2024 年 11 月 9 日 下午 2:16 
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.
不能修復的痛 2024 年 10 月 22 日 上午 3:22 
This is what it looks like in the trailer, but the game lacks this feature.
SleepyNotDead 2024 年 10 月 18 日 下午 9:16 
makes sense.
Geebanger0  [作者] 2024 年 10 月 18 日 下午 12:49 
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 2024 年 10 月 18 日 上午 6:09 
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 2024 年 10 月 16 日 下午 9:24 
that's fine
Geebanger0  [作者] 2024 年 10 月 16 日 下午 8:19 
well i cant think of anything else right now so good luck with that :BL3Thumbsup:
some kind of alligator 2024 年 10 月 16 日 下午 8:15 
uh lots (˘•‿•)
Geebanger0  [作者] 2024 年 10 月 16 日 下午 8:11 
how much time you got
some kind of alligator 2024 年 10 月 16 日 下午 8:11 
what else have I been lied about gameplay wise lol
Geebanger0  [作者] 2024 年 10 月 16 日 下午 8:01 
pretty much. it only really matters if youre not fully committed to crowning her
some kind of alligator 2024 年 10 月 16 日 下午 7:52 
wait wait wait, your telling me I NEVER HAD TO TURN OFF MY FLASHLIGHT!?!?!?!?!
Geebanger0  [作者] 2024 年 9 月 29 日 上午 1:05 
It should work, but since I haven't tested it or decompiled MANACATs mod to see how it functions I can't guarantee it