Project Zomboid

Project Zomboid

Trip 'n' Fall
 此主题已被置顶,因此可能具有重要性
BOBcat  [开发者] 2023 年 8 月 3 日 上午 1:00
Balancing Suggestions
I added sandbox options but still, please drop your suggestions for adjusting the variables so the mod is better balanced.

  • Cooldown period between trip chance rolls: 1 second
  • Sneak walking is safe, code won't run during it. (will most likely change)
  • Aim walking: Safe
  • Murphy's law: 1.0%
    If conditions are met and player can trip but the roll was <= 0, trip chance will be


Formula is: (If you have a better one, please share)
Final trip chance = (Base trip chance + (Alive Zombie Count * Alive Zombie Multiplier) + (Dead Zombie Count * Dead Zombie Multiplier)) * Square Has Stairs + (Professions + Traits) + (Skill 1 level * Skill 1 Multiplier) + (Skill 2 level * Skill 2 Multiplier) ... + (Moodle 1 Level * Moodle 1 Multiplier) + (Moodle 2 Level * Moodle 2 Multiplier) ...

-----------Base trip chances(%)----------
Walking = 20 Running = 40 Sprinting = 80
----------Trip chance modifiers----------
--Misc
--multiplier for running while sneaking Sneak Running = 0.75 --for each zombie, add this much % Alive Zombie Multiplier = 15.0 Dead Zombie Multiplier = 10.0 --multiplier for when on stairs Square Has Stairs = 2.0
--Professions(%)
Fitness Instructor = -3 Burglar = -2 --included this as a profession instead of a trait Fire Officer = -2 Park Ranger = -2 Police Officer = -1 Veteran = -1
--Traits (Good)(%)
Athletic = -20 Graceful = -10 Gymnast = -10 Fit = -10 Hunter = -5 Hiker = -5 Outdoorsman = -3 Former Scout = -2 Eagle Eyed = -2 Lucky = -1
--Traits (Bad)(%)
Unfit = 20 Clumsy = 10 Out of Shape = 10 Short Sighted = 2 Unlucky = 1
--Skills(%)
--for each skill level, add this much % Fitness = -2.0 Sprinting = -3.5 --only in effect if sprinting Nimble = -1.25
--Moodles(%)
--for each moodle level, add this much % Drunk = 15.0 Tired = 5.0 Endurance = 5.0 Panic = 3.0 Heavy Load = 2.0
最后由 BOBcat 编辑于; 2023 年 8 月 12 日 上午 4:00
< >
正在显示第 1 - 7 条,共 7 条留言
MeanSmoker 2023 年 11 月 6 日 上午 4:41 
Is it possible to make the tripping chance 0% while regularly walking over top of corpses?
BOBcat  [开发者] 2023 年 11 月 6 日 上午 5:11 
Currently, no. It's on the to do list but I don't know when I'll get around to it.
Inferno 2023 年 12 月 19 日 下午 11:51 
I think it should stumble just when running, it must be an - ... - to stumble upon a corpse while walking.
phoofaphant 2024 年 6 月 30 日 上午 2:46 
would you be interested in making it to where walking over a living zombie even in combat stance or sneaking will make the player trip? The idea being a live zombie is not going to allow you to stand on top of it lol
BOBcat  [开发者] 2024 年 6 月 30 日 上午 3:35 
引用自 phoofaphant
would you be interested in making it to where walking over a living zombie even in combat stance or sneaking will make the player trip? The idea being a live zombie is not going to allow you to stand on top of it lol

I won't make it a release as I disagree with the idea but I edited the code and it should accomplish what you described.
ps. This will only enable tripping while sneak walking, I don't remember how I managed to exclude the combat stance, so it's still immune.

https://pastebin.com/apuxFnrA
Replace with the original file ( TripAndFall.lua )
最后由 BOBcat 编辑于; 2024 年 6 月 30 日 上午 3:44
Kosm1cznY 2024 年 11 月 10 日 下午 10:09 
Cool mod. But would be awesome if there would be sandbox option to enable zombie tripping too. And chance for them to trip. This would be fair and more balanced.
BOBcat  [开发者] 2024 年 11 月 10 日 下午 11:11 
引用自 Kosm1cznY
...zombie tripping...
Not in scope of this mod. Check out the main comments section, I have linked before two other mods that deal with zombie tripping.
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50