Left 4 Dead 2

Left 4 Dead 2

57 个评价
Scripted Mode Hooks Loader
   
奖励
收藏
已收藏
取消收藏
Game Content: Scripts
文件大小
发表于
更新日期
34.112 KB
2 月 12 日 上午 11:04
10 月 11 日 下午 11:25
13 项改动说明 ( 查看 )

订阅以下载
Scripted Mode Hooks Loader

在 skysky199 的 2 个合集中
Script List
131 件物品
Script List <Odds and Ends>
41 件物品
描述
Loader for Lib Collections.
9 条留言
Xenorvya 8 月 17 日 下午 5:14 
Ok it is No Temp Health Decay, thanks for the heads up.
Xenorvya 8 月 17 日 上午 7:59 
Weird. I am subscribed to No Temp Health Decay, I'll see if it's that mod that causes the problem.
skysky199  [作者] 8 月 17 日 上午 7:58 
@Legoshi's

This doesn't modify convars. The only script of mine that uses that convar is No Temp health Decay.
Xenorvya 8 月 16 日 下午 8:09 
Could you make this script compatible with "survivor_incap_decay_rate" ? I personally set the decay rate to 1, so you only lose 1 hp every second, but everytime this script in particular is enabled (not even Lib Collections), it goes back to the default 3 hp per second instead of 1.
Morsch 5 月 10 日 下午 2:48 
Noted, this code was a placeholder either way, i made another one and that one worked fine; your clues were righteous.
skysky199  [作者] 5 月 10 日 下午 12:28 
@Morsh

Tested, it's working for me.
Maybe you forgot to enable the Lib Collections too, or you might have misconfigured something in the ems (settings) of my scripts. Try to remove the ems folder and test again.

And if I can suggest,
1.
Don't put VSLib at the same level as your director_base_addon; create a new folder and include it by
IncludeScript("Floder_Name/VSLib");

2.
There is already a function to determine whether player is a bot.
bool IsPlayerABot(handle player)

3.
To determine the spit damage, why not just use
Damagtype & DMG_RADIATION
Morsch 5 月 10 日 上午 6:08 
https://pastebin.com/8nt8M9Wj

The fire part works, but when i have this enabled, the spit refuses to work.
skysky199  [作者] 5 月 9 日 下午 10:44 
@Morsh

If you have VSLib and/or L4Lib, AllowTakeDamage will not be loaded by this.
Maybe there was an error when processing AllowTakeDamage, then causing the functions below the error one not be performed.
How did you use the AllowTakeDamage function with VSLib or L4Lib?
Morsch 5 月 9 日 下午 1:55 
Just a heads up, your lib seems to cause some issues with Left 4 Lib and VSLib sometimes.

I was making a test script that made the bots stop taking damage from the spit when they reached 39 hp, i was using VSLib and your lib was conflicting with it; the script only worked when i had disabled your lib files.

I also noticed that the spit damage modifier from left 4 bots 2 gets a little janky when this is enabled too.