Left 4 Dead 2

Left 4 Dead 2

Stay Away From My Crosshair (Vscript)
59 条留言
Penso A Te* 11 月 4 日 上午 7:22 
this would be the best of 2025
kurochama  [作者] 11 月 4 日 上午 4:44 
@ CATSarekittens , I updated the mod. Now survivors holding medkit in hands can't be pushed back, so the healer won't be pushed back anymore.
Dr. Amnezia 11 月 2 日 下午 10:46 
:/
kurochama  [作者] 11 月 2 日 下午 1:12 
@ CATSarekittens , probably I can add that as the pushback exception later on the next update.
CATSarekittens 11 月 2 日 上午 11:53 
Could you make it check to see if the person is your healer it doesn't have an affect on them?
TrueKringe 10 月 27 日 上午 9:04 
It works mostly as intended, tho in the closed space it kinda looks janky. Also for some reason the "push" can cause the bots to be incapped or even killed outright (which I assumed is due to some physics jank going on).
Dr. Amnezia 7 月 20 日 下午 11:41 
Funny, but not usable
CaptPatrick01 7 月 4 日 下午 2:32 
Having used mode 3 for quite a while the only bugs I noticed were the bots t-bagging even when aimed well into their hitbox, and an interference with Left 4 Bots and Left 4 Bots 2 where they won't be able to uncrouch themselves. i.e, it acts like a toggle switch.
kurochama  [作者] 5 月 22 日 下午 2:13 
@(^^^) Xeno , you can just manually change "Stay Away Mode" to 3 then, as the settings follow the cfg file, & the cfg file will be loaded in the beginning of each chapter.
(^^^) Xeno 5 月 22 日 下午 1:54 
Could you make the default setting to mode 3? Mostly are positive about that
SHiFT_DeL3TE 4 月 28 日 下午 6:01 
Also should make it where this doesn't do anything if the survivors haven't left the saferoom yet.
SHiFT_DeL3TE 4 月 28 日 下午 5:54 
Mode 3 is probably the best one, however it would be a lot better if there was a thing where if you have your crosshair on a survivor for long enough, they will do whatever they are supposed to do. Like crouching. So that way if you move your mouse quickly it won't make survivors crouch or anything.
kouga 4 月 24 日 下午 9:16 
ive been using forced crouch because sometimes the forced pushback mode can kill the bots if you push them into a corner lol.
Cileebra 3 月 24 日 上午 12:39 
Самый лучший мод, спасибо :steamhappy:
o_-KILLJOY-_o 1 月 28 日 上午 7:02 
I how did i miss this, this is exactly what i needed :steamhappy:
____ 1 月 13 日 下午 5:15 
This is a very interesting script, and I can’t believe you were able to do that with L4D2
Izuki 2024 年 12 月 23 日 下午 7:36 
Mmm i see Thanks~
kurochama  [作者] 2024 年 12 月 23 日 上午 5:09 
@Izuki , if you're on the lower ground & bots are the upper ground, they'll be thrown backward. You can reduce the value of "Push Away Force" to 50 or below to prevent bots from getting pushed back too far.
Izuki 2024 年 12 月 23 日 上午 4:06 
for some reason they can float
Doc903 2024 年 12 月 22 日 上午 10:27 
I know, it was just an idea for a funny.
kurochama  [作者] 2024 年 12 月 22 日 上午 9:14 
@Doc903 , making bots stumble away from crosshair should also be possible, but that will also make bots vulnerable to zombie's attack during stumbling.
Doc903 2024 年 12 月 22 日 上午 9:11 
Hm... what if mode 4 would make a survivor bot stumble back away from your crosshair? Like they're dodging being flagged by your gun barrel, lol.
Doc903 2024 年 12 月 22 日 上午 8:44 
I'll try that.
kurochama  [作者] 2024 年 12 月 21 日 下午 11:40 
@Doc903 , have you tried to play singleplayer & then exit to main menu? Or try to reload a gun during play.
Doc903 2024 年 12 月 21 日 下午 10:32 
For some reason, I don't have the .txt file in my ems folder.
kurochama  [作者] 2024 年 12 月 15 日 下午 11:32 
@Ellis , thank you :steamhappy: . I'm glad that you like this mod.
Ellis 2024 年 12 月 15 日 下午 8:32 
WOW This would have to be the BEST MOD ever put on the WORKSHOP in MY OPINION.
THIS IS MY NEW GREATEST MOD I HAVE HAD THE PLEASURE TO USE.
To the Author I can not Thank You enough for creating This AWESOME mod. I FEEL LIKE IT IS THE BEST CHRISTMAS GIFT EVER. May you be Blessed for the Joy you have given.
Ellis 2024 年 12 月 15 日 下午 5:30 
Thank you very much for answering my question. I appreciate it greatly.:steamthumbsup:
kurochama  [作者] 2024 年 12 月 15 日 下午 5:25 
@Ellis , the pushback isn't active if player is switching to health kit or any items other than primary & secondary weapons. So, you should be able to approach bots when holding health kit in your hands.
Ellis 2024 年 12 月 15 日 下午 4:03 
Would I be able to bind a key to turn this Mod On or Off.
If the player wanted to approach a bot in a safe room for example ?
Or when trying use health kit on a bot without pushing them?
Xenorvya 2024 年 12 月 10 日 下午 10:12 
@kurochama Awesome stuff, thanks!
kurochama  [作者] 2024 年 12 月 9 日 下午 5:31 
@Doc903 , that should also be possible, by checking if there's common infected near the destroyed objects. I think Geebanger can make this for you if he wants, as he ever made mods with similar features like "Gunshots attract infected" & another one that attracts horde.
Doc903 2024 年 12 月 9 日 下午 5:14 
Or would it just be good to assign the general "break_breakable" event to anything broken near infected? I feel like even just breaking a crate could be a deadly mistake.
Doc903 2024 年 12 月 9 日 下午 5:13 
Right, that would be badass.
kurochama  [作者] 2024 年 12 月 9 日 下午 5:09 
@Doc903 , this is also possible. If you play "Pick A Gnome" custom campaign, you'll see this feature quite often, in map 1 as it's one of features there.
Doc903 2024 年 12 月 9 日 下午 5:04 
Oooo, wonder if breaking windows could lure local infected, then?
kurochama  [作者] 2024 年 12 月 9 日 下午 4:59 
@Melon , I added "Admin Only" feature on the new update. I added 2 modes on it instead, so people can have more options to choose.

@Salty Oreos , I added "crouch timers" on mode 3. Now other survivors can stand up automatically in 5 seconds after they're forced to crouch in the crosshair. Actually I wanted to add a feature to adjust the forced crouch duration, but maybe later if there are more requests to freely adjust it via cfg file.

@Doc903 , this can be discussed further on "Modding/ Mapping" section on discussion forum later. But this probably can be made via "break_breakable" event function, with several options, like:
1. Only spawn horde with certain chance.
2. Only attract zombies nearby to random survivors.
3. Same as no. 2 but zombies are attracted to the survivor blowing up the propane tank etc)
4. Combination of no. 1 & no. 2/ 3.
Doc903 2024 年 12 月 9 日 下午 2:03 
I know we discussed it previously, but I think I would just rather request it from someone who is more seasoned with scripting, whereas I sit here fumbling with .cfg files.

There are so many explosions that occur in game, I think it would be cool if a mod made it where propane tanks alone(since oxygen tanks work like a pipe bomb, they can be excluded), have a 50% chance to summon either a horde, or all surrounding infected when exploded.
Salty Oreos 2024 年 12 月 9 日 上午 1:33 
Sounds great!
Sometimes you just wanna play some solo but hate accidentally doming your bots with a shotgun blast on higher difficulties and wish they knew to duck when firing
kurochama  [作者] 2024 年 12 月 9 日 上午 12:28 
@Melon , thanks. Actually I'm very touched to see that some people noticed my records on gamemaps too, especially on "Merciless Bots" :steamhappy: . Feedbacks are necessary for fixing bugs & updating mods to be better, so I'm always all ears for feedbacks. & currently I'm still working on the scripts to add "Admin Only" feature, & some timers to cancel "Forced Crouch" on mode 3. I'll update it soon after finishing testing several times. Probably if it's not tomorrow, it's the day after tomorrow.
Xenorvya 2024 年 12 月 8 日 下午 9:18 
The first one; only "admin" can push other survivors. Again; I love how you take feedback from comments. From that one suggestion you took on Merciless Bots on gamemaps to this, you're a bloody legend. :)
kurochama  [作者] 2024 年 12 月 8 日 下午 2:26 
@Salty Oreos , yes, there's such bug when they keep crouching, but you can make them stand up by pointing crosshair at them with medkit, pills, throwable or anything other than primary & secondary weapons. Probably that's also a good idea to set a timer about how long they'll keep crouching. I'll try to add a timer first to see how that will work.

@Melon , do you want only admin that's allowed to do the pushback? Or admin's immunity of pushback? If it's admin's immunity, then other survivors can still push each other but they can't push the server owner/ admin. Either one of them should be possible to make.
Xenorvya 2024 年 12 月 8 日 上午 9:59 
Is it possible to make it so only the owner of the local server can push players around? I can friendly fire fellow survivors but they can't, as to prevent ♥♥♥♥♥♥♥♥ from ruining the game. That would help with accidentally shooting them sometimes, especially when I'm shooting a Witch or Tank and they just go in-front of me.
Salty Oreos 2024 年 12 月 8 日 上午 6:40 
The crouch mode is very promising but I'm noticing instances where they do not stop crouching after you look away from bots.
Also being able to decrease how long they stay crouched would be nice as well
kurochama  [作者] 2024 年 12 月 5 日 下午 9:22 
@CaptPatrick01 , you can now adjust the range via "Crosshair Safety Range" I just recently added.
kurochama  [作者] 2024 年 12 月 4 日 下午 1:06 
@CaptPatrick01 , probably possible. I think I can add another new feature about the range later on the next update.
CaptPatrick01 2024 年 12 月 4 日 上午 11:59 
I wonder if a configurable range limit could be added so that the pushback would only take effect within a certain radius of the player.
kurochama  [作者] 2024 年 12 月 3 日 下午 6:42 
@Marketable Pliers , well, that can be done in several ways, I think, like:
1. Forced Pushback: when bots are in range of tank's punch, they'll be pushed back.
2. Forced Warp: Same as above, but they'll warp.
3. Forced Adrenaline: Bots will be boosted with adrenaline speed boost when they're in range of tank's punch.
4. Forced Retreat: This can use either "BOT_CMD_MOVE" or "BOT_CMD_RETREAT" bot commands, but I think some bot mods have already used this.

You can try some bot mods first, as they use more realistic ways to make bots retreat from tank.
something something house 2024 年 12 月 3 日 下午 6:13 
@Marketable Pliers do you have left 4 bots? If so, it's a feature for both of the version 1 and 2
Market Pluh 2024 年 12 月 3 日 下午 5:51 
bots avoid tank