Left 4 Dead 2

Left 4 Dead 2

评价数不足
Focused Concentration (Vscript)
   
奖励
收藏
已收藏
取消收藏
Game Content: Scripts
Game Modes: Single Player, Co-op
文件大小
发表于
更新日期
12.942 KB
10 月 10 日 上午 12:22
10 月 21 日 下午 11:44
2 项改动说明 ( 查看 )

订阅以下载
Focused Concentration (Vscript)

在 kurochama 的 1 个合集中
Useful "Side-Dish" Mods (Especially for Bots)
64 件物品
描述
This is a simple mod that was first introduced on my "Scope on All Guns" mod. As it looked fun, so I made the standalone version. As this is a very simple mod, there's no cfg file.

This mod allows players to get a temporary laser sight when crouching (CTRL) or walking (SHIFT) when their guns still have no laser sight. This also works on secondary guns (yes, pistols can also have laser sight :D). I didn't restrict the weapon slots, so if you use mods that move some guns to other different slots, they can also use temporary laser sight.


Q: "Can this be used with ADS mods?"
A: "It depends on the ADS mods. For example, if the mods allow ADS when players are holding SHIFT (walk) button, then yes, temporary laser sight will be active when ADS is used. But if the ADS mods use SCOPE/ ZOOM button, then no, because the temporary laser sight is only active during walking & crouching. However, you can use keybind feature & then bind WALK & ZOOM with the same button. This way, the temporary laser can be active when using zoom."


So, automatic gun lovers expecially smgs, ak47 & m60 should be happy with this :D .


NOTES:
  • Not yet tested, but there's a possibility that you can use temporary laser sight when incapped if you hold CTRL or SHIFT button.
9 条留言
kurochama  [作者] 10 月 21 日 下午 11:49 
@ withextradip , I just fixed the bugged ammo upgrade. You can give a try. It turned out that there's a script missing a "=" & after fixing that, ammo upgrade worked properly again.
withextradip 10 月 21 日 下午 5:48 
My bad about the bots, I'm using a different bot addon and they seem to be using the lasers correctly now. Ammo upgrades just reset the weapon's magazine to 0 and doesn't actually pick it up
kurochama  [作者] 10 月 21 日 下午 5:05 
@withextradip , it actually works for bots if I'm not mistaken, as long as they crouch or walk (but bots rarely crouch or walk unless they're in vents). For special ammo upgrade, I'll try to check it soon. I think I already put some scripts to check ammo upgrade state of the gun, but probably some parts need more checks.
As for laser color, I'm not sure as I haven't found a way to detect the laser particle entity of a gun. It's probably not difficult to change the color, as long as the laser particle entity of the gun.
withextradip 10 月 21 日 下午 4:52 
I've also noticed that this doesn't seem to work for bots and this breaks special ammo upgrades. Is there any way to make this work with incendiary/explosive ammo equipped?
withextradip 10 月 21 日 下午 4:28 
It'd be neat if the laser sight for this had a different color just to distinguish it differently from the regular laser sight upgrade. Maybe make it green or something, you could probably edit this: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3349989041
Unsants 10 月 10 日 上午 9:49 
:steamthumbsup:
kurochama  [作者] 10 月 10 日 上午 2:04 
@ o_-KILLJOY-_o , thanks :steamhappy:

@ Jakiy , as it's a forced zoom on guns that originally don't have zoom feature, the zoom uses a timer, so probably it could be difficult to prevent the spam of zooming in/ out. There's a feature to add delay on each zoom in/ out, so you can increase the value. Usually I used 0.5 or 1 for the value, so the zoom is triggered only in 0.5 or 1 second. 0.25 second is still safe enough. So just press it once & use that feature to delay the spam..
Jakiy 10 月 10 日 上午 1:32 
On your scope on all guns mod, how do you fix the spammy zoom in and out vision when holding the scope key? Basically any weapons will be like that except SG552.
o_-KILLJOY-_o 10 月 10 日 上午 12:36 
this is a great idea