Left 4 Dead 2

Left 4 Dead 2

29 个评价
Holy Rest Area (Vscript)
   
奖励
收藏
已收藏
取消收藏
Game Content: Scripts, Miscellaneous
Game Modes: Single Player, Co-op
文件大小
发表于
更新日期
63.676 KB
4 月 26 日 上午 4:23
10 月 10 日 下午 5:05
12 项改动说明 ( 查看 )

订阅以下载
Holy Rest Area (Vscript)

在 kurochama 的 1 个合集中
Useful "Side-Dish" Mods (Especially for Bots)
61 件物品
描述
As the journney continued & survivors explored "Unholy Ground" campaign, they arrived at an abandoned church. Somehow, the sky turned red & zombies started to surround them nonstop. During their struggle, Coach kept praying while shooting zombies. Then, a miracle happened. A tower of light fell from the sky & a human with white wings descended. All survivors were shocked.
Ellis: "Oh my God?! Is that an angel...?!"
Nick: "Holy sh*t...!! Now an angel comes down too?! Is this also that 'Black Liege' god's doing?"
Coach: "No...! I think this time it's really from God... That angel is Raphael...!! God has answered our prayer...!!"
Rochelle: "Good for you, Coach... Now we can start some exorcisms..."
Nick: "I wonder if Raphael is more handsome than Francis..."
Rochelle: "Nick, Not again..." *glared at Nick*
Nick: "So you don't miss him anymore?" *chuckled* "Well, do you want to hear some...-"
Ellis: "No..."
Rochelle: "No..."
Nick: "Hey, I haven't even finished talking...!"
Coach: "No, Nick... Don't say anything, ok..."
Nick: "Well, whatever... You'll regret for not hearing what I'm about to say..."

Survivors especially Coach ran to meet Raphael. However, just before Coach started to explain the situations, Raphael seemed to understand the situations & immediately blessed some areas with holy light to become sanctuaries. Then after saying that he would go to check other humans, he flew away.
Coach: "Now I fear no evil...!!"
Ellis: "Amen...!"
Rochelle: "Amen...!"
Nick: "........."
Coach + Ellis + Rochelle: "N...O..., Nick...!!"
Nick: "What?! I haven't even said anything yet...!!"


So that's for the background story for fun this time :D . Now, about this mod, I used my "Item Buffs" mod as the template to trigger "Think" function on the sanctuary. This mod deploys sanctuary on every saferoom. The sanctuary gives various buffs & mainly healing buff. So, not only safe from zombies, now survivors can also gradually heal inside saferoom & get other buffs.

List of features available on "holy rest area.txt":
  1. heal_amount: How much heal amount per 0.5 second in sanctuary. Black & white debuff will be removed when the health is above 75. Min= no limit, max= no limit. NOTES: If you set it to minus, the health will decrease instead of increasing.

  2. auto_revive_from_incap: When enabled, survivors can revive from incapacitation automatically in sanctuary. If they're incapped when pinned by special infected, they will release themselves from the pin.

  3. auto_revive_from_death: When enabled, survivors can revive from death without using defib in sanctuary. However, it takes around 10-15 seconds before the dead survivors are revived by themselves.

  4. auto_ammo_regen: When enabled, survivors get auto ammo refill in sanctuary. Shotguns get random 1-5 ammo refill, while other guns get random 5-25 ammo refill.

  5. medical_cabinet_sanctuary: When enabled, medical cabinet also has a sanctuary that allows all sanctuary features.

  6. zombie_exorcism: When enabled, all zombies getting close to sanctuary will get burned. Special infected, tank & witch take damage equal to 10% of current health every 0.5 second. This requires at least 1 survivor to stay in the sanctuary.

  7. sanctuary_marker: When enabled, the sanctuary will have a firework launched regularly as the indicator where the center point is. The value also controls the re-fire interval of the firework by the multiplier of 0.5 seconds (in case if you want the firework to show up less frequently). For examples, if value is set to 5, the interval will be 2.5 seconds. If it's set to 10, the interval will be 5 seconds.

  8. divine_protection: When enabled, survivors get damage resist percentage equal to the value set. The damage resist is applied to any attacks other than friendlyfire & self damage. However, instant-death & instant-incap may still bypass the divine protection. Max value= 100 (100% damage resist, no damage).

  9. finale_sanctuary: When enabled, finale area around the radio/ switch becomes a sanctuary. Enable "sanctuary_marker" if you want to see where the center point of the sanctuary is.

  10. auto_laser_upgrade: When enabled, entering "Holy Rest Area" will get laser upgrade on both primary & secondary weapons.


Mechanisms of "Holy Rest Area":
  • When starting a round, the saferooms will be designated as holy sanctuaries.

  • Every 0.5 second, the buff effects on the sanctuary is triggered.

  • The radius of the sanctuary is 300 (around 4x melee range). So, it doesn't always cover the whole saferoom. For example, inside the train at the end of map 2 of "Death Toll", only the front part of the train near the saferoom door is covered by the sanctuary.

  • Each buff is controlled by the cfg file. It means that you're free to enable/ disable any buff features as you like. For example, you can also disable the healing feature via cfg file & only enable ammo regen & "Zombie Exorcism".


So, this mod makes Coach's faith to God reach maximum level :D .


NOTES:
  • the "divine_protection", when set to 100, sometimes can heal a survivor if a common infected hits from behind. So, it's recommended to set the value below 100.
53 条留言
kurochama  [作者] 9 月 12 日 上午 4:23 
@L_M , the notification normally only shows up in the beginning of map or during respawn. It won't spam anywhere else.
L_M 9 月 12 日 上午 3:55 
can you make another option to turn off the notification please

because when im using undead survivor, the notification is always appear and kinda spammy:steamsad:
kurochama  [作者] 7 月 31 日 下午 9:28 
@kouga , that will require some changes on the scripts, including the contents of the cfg file.
kouga 7 月 31 日 下午 8:40 
what if i wanted it to be configurable?
kurochama  [作者] 7 月 31 日 下午 7:51 
@kouga , on the scripts, you can find something like "GetHealth()" & "0.5". If there's "0.5" near "GetHealth", that will be the healing interval of the holy sanctuary.
kouga 7 月 31 日 下午 6:47 
@kurochama, gotcha. its just that i still find it too fast, what can i add to do these features myself? if thats alright to ask
kurochama  [作者] 7 月 31 日 下午 2:04 
@kouga , normally it's possible to add such settings, but the setting for healing speed won't be that helpful, because if you want slow healing, you can set the value to 1 so it will heal 1 health per 0.5 second (2 health per second). The healing cap could be useful, but just adding one simple feature on the cfg file might waste some space. Probably I can make a custom cvar for that instead later.
kouga 7 月 31 日 下午 12:01 
can you add two extra settings to configure this further?
like a setting for how fast or slow heal_amount gives you?
as well as a setting for if the player is above a configurable amount of health (75 for example), they will stop receiving heal_amount?

pretty pleaseeee??
L_M 5 月 29 日 上午 7:37 
i see, maybe because too much zombie at start that make it easy to crash

gonna tone down little bit
kurochama  [作者] 5 月 29 日 上午 5:57 
@L_M 2 , I'm not sure. Probably the case is similar to "Lil Gnome" when you set the radius too wide. Probably it's only related to certain features, like for examples, only "zombie_excorcism" has that problem (because this feature scans all zombies in the radius & then burns them all).