Project Zomboid

Project Zomboid

Trip 'n' Fall
 This topic has been pinned, so it's probably important
BOBcat  [developer] 3 Aug, 2023 @ 1:00am
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
Last edited by BOBcat; 12 Aug, 2023 @ 4:00am
< >
Showing 1-7 of 7 comments
MeanSmoker 6 Nov, 2023 @ 4:41am 
Is it possible to make the tripping chance 0% while regularly walking over top of corpses?
BOBcat  [developer] 6 Nov, 2023 @ 5:11am 
Currently, no. It's on the to do list but I don't know when I'll get around to it.
{playername(-1)} 19 Dec, 2023 @ 11:51pm 
I think it should stumble just when running, it must be an - ... - to stumble upon a corpse while walking.
phoofaphant 30 Jun, 2024 @ 2:46am 
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  [developer] 30 Jun, 2024 @ 3:35am 
Originally posted by 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 )
Last edited by BOBcat; 30 Jun, 2024 @ 3:44am
Kosm1cznY 10 Nov, 2024 @ 10:09pm 
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  [developer] 10 Nov, 2024 @ 11:11pm 
Originally posted by 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.
< >
Showing 1-7 of 7 comments
Per page: 1530 50