Left 4 Dead 2

Left 4 Dead 2

36 个评价
Stumble Shot (Vscript)
   
奖励
收藏
已收藏
取消收藏
Game Content: Weapons, Scripts
Game Modes: Single Player, Co-op
文件大小
发表于
更新日期
834.335 KB
2 月 4 日 上午 9:27
4 月 27 日 上午 8:35
7 项改动说明 ( 查看 )

订阅以下载
Stumble Shot (Vscript)

在 kurochama 的 1 个合集中
Useful "Side-Dish" Mods (Especially for Bots)
64 件物品
描述
This mod is a request from a friend. So, this mod allows you to make zombies stumble when shot. All guns except grenade launcher have each feature to modify the stumble chance. Well, I'll explain further later on the mechanisms below.

List of features available on "stumble shot.txt" cfg file:
  1. stumble_shot_user: Which type of survivor can use "Stumble Shot" (bots/ players/ all).

  2. stumble_shot_on_common: When enabled, this allow common infected to stumble. This also works as a multiplier of weapon stumble chance (example: If you set "weapon_smg_stumble_chance" to 100 & then set "stumble_shot_on_common" to 0.1, common infected will only have 10% chance to stumble). The value is in float/ decimals. Max value = is 1.

  3. stumble_shot_on_smoker: Same as above, but this is for smoker.

  4. stumble_shot_on_boomer: Same as above, but this is for boomer.

  5. stumble_shot_on_hunter: Same as above, but this is for hunter.

  6. stumble_shot_on_spitter: Same as above, but this is for spitter.

  7. stumble_shot_on_jockey: Same as above, but this is for jockey.

  8. stumble_shot_on_charger: Same as above, but this is for charger.

  9. stumble_shot_on_tank: Same as above, but this is for tank.

  10. stumble_shot_on_witch: Same as above, but this is for witch.

  11. stumble_shot_extra_effect: When enabled, the moment the shot triggers "Stumble Shot", a special effect will be generated. Basically this is like a "hit mark" to indicate that the "Stumble Shot" hits a target.

  12. weaponname_stumble_chance: Each gun except grenade launcher has a feature representing it. This control the chance. Min value= 0 (off, no stumble), max= 100 (100%, always stumble).

  13. stumble_shot_shockwave: When it's set above 0, every time stumble shot is successfully triggered, common infected near target will also stumble. Special for snipers, m60 & magnum pistol, these guns will always cause stumble shockwave when the common infected target is killed. The value also affects the shockwave radius. Value can be in decimals/ floats. Max value is 5 (5= shockwave radius is 500).

  14. *NEW* stumble_shot_shockwave_mode: This is the sub feature of "stumble_shot_shockwave" that controls whether the stumble shockwave is applied only on one-hit-kill guns (snipers, m60, magnum pistol) or all guns.


Simple mechanisms of "Stumble Shot":
  • When "weaponname_stumble_chance" is set to value above 0, the gun represented by this feature will have a chance to stumble a zombie (examples: "weapon_smg_stumble_chance = 50").

  • Specific features for specific zombies (like "stumble_shot_on_common") also work as multiplier. For example, if you set "stumble_shot_on_common" to 0.1 & then your ak47 has 50% stumble chance, the result will be the common infected having only 5% (0.1 * 50%) chance to stumble.

  • When "Stumble Shot" is triggered, the stumble is activated the moment the bullet hits a target.

  • The stumble chance of each gun can vary based on fire rate, penetration power & number of pellets shot (for shotguns). For example, smg with 5% stumble chance will trigger stumble more often than military sniper with 5% chance. Shotguns with 5% chance will trigger stumble more often than smg with 5% chance if most or all pellets hit one target.

  • The special effect triggered by "stumble_shot_extra_effect" works on each bullet/ pellet that triggers "Stumble Shot". It means that if you shoot with a rifle that has 100% stumble chance & the bullet penetrates 3 zombies, special effect will be generated on all 3 zombies.

  • The "Stumble Shot" bypasses riot/ police zombie's armor. So, this zombie will still stumble if "Stumble Shot" is triggered even if shot from the front.


So with this mod, you can customize your guns to make them more useful when shooting lots of zombies.

NOTES:
  • A video preview will be added later.
56 条留言
kurochama  [作者] 9 月 6 日 上午 11:45 
@ Absolute Sucker , you can check here: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3446352451 . Probably that's what you're looking for, as on the animated preview, charger failed to charge the player.
kurochama  [作者] 9 月 6 日 上午 5:19 
@ Absolute Sucker , which request? If it's the "special infected pin", I'm not sure about what you wanted to make. Normally use methods from those mods that release pin via stagger should be effective enough. Btw, I think there's a chinese mod that disables pin too. It's the same author as the mod that allows using gun while climbing, & mod that gives magnum when incapped.
Absolute Sucker 9 月 6 日 上午 4:26 
@kurochama

I wanted to ask just in case, is my request in-development? I am assuming you are working on it but I felt unsure, I hope this doesn't bother you.
Absolute Sucker 9 月 3 日 上午 9:49 
@kurochama

I have tried these "press key to escape pin" mods before, they have a lot of issues that comes with them (both gameplay and technical) that is why I resorted to using a convar. It makes Hunters and Jockeys much smoother and polished to fight, their pinning gimmick is full of bugs that normally went unnoticed during normal gameplay, but I have them spawning by the dozens and it became noticeable very quickly.
kurochama  [作者] 9 月 3 日 上午 8:24 
@Absolute Sucker , I think I already have a similar mod like that named "SI Repeller". You can search workshop. It's an old mod but uploaded here by someone else (I don't mind as that's a requested mod after all & the one requesting it didn't protest). That mod allows survivors to escape from pin/ pounce/ ride etc by holding TAB button.
Absolute Sucker 9 月 3 日 上午 6:24 
@kurochama

Very simple! Are you familiar with the convar "survivor_no_pounce_or_hang"? It prevents Hunters and Jockeys from pouncing and riding survivors. But it makes Smokers do nothing, and Chargers aren't affected.

I wish for a mod that prevents Hunters and Jockeys from pinning survivors like the convar does.

For Smokers, I want survivors to be automatically freed when they enter the being-choked state (indicated by the red light and dramatic music).

As for Chargers, when they charge someone and stops/hit an obstacle, instead of pummeling them they just let go and flee like smokers do.
kurochama  [作者] 9 月 3 日 上午 12:34 
@ Absolute Sucker , hello. just like usual, I just simply made some fun mods & updated some other mods. What kind of request?
Absolute Sucker 9 月 3 日 上午 12:01 
@kurochama

Heyo Kuro!!! It has been a long time, are you available for a request? Also how are you doing lately?
kurochama  [作者] 5 月 10 日 上午 1:01 
@Absolute Sucker , if those mods use simple mechanisms, I think Geebanger can also make that. & because one of the mods is his mod, so I think it would be better if you make a request to him instead, as I'm pretty sure that he's also familiar with modifying health on the revived survivor after the defib is used.
Absolute Sucker 5 月 10 日 上午 12:24 
@kurochama

Would you mind merging 2 addons with the addition of a QoL fix for me?

I am unsure whether or not the 2 would allow their codes to be re-used but I think it might be better to ask. You could also remake it yourself, since with your own code it should be easier to implement the fix.

Geebanger0's "Infinite use defibs" and Withgreen1's "Realistic Defibrillator Low Health Revive" as one addon but using the defib won't make the user unhold the defib their holding.

I have a few more ideas but I'll start with one at a time, unless you want the entire list you can ask!