Project Zomboid

Project Zomboid

213 ratings
Trip 'n' Fall
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
398.755 KB
2 Aug, 2023 @ 10:32am
1 Dec, 2023 @ 12:44am
7 Change Notes ( view )

Subscribe to download
Trip 'n' Fall

Description
Adds a chance for the player to trip over the zombies on the ground and fall down.
It does not affect the zombies.
It has sandbox options to adjust the trip chance.


This mod will change how you play!
With each kill, you will be creating environmental hazards for yourself.
(hmm... environmental hazards could be a good mod idea)

You'll have to be mindful of where you step and move accordingly.
Or you will trip, fall and hurt yourself.

Only way to make sure you don't trip is to aim walk.
Think of it as searching for a space to place your foot down.
Sneak walking is also currently safe but I might give it a low chance in the future.

I'd like to think that this mod will prove to be a major addition of a new gameplay mechanic.


Why this mod?
One would inevitably trip over while trying to walk over countless flesh and bones.
This should have been in the base game.

How does it work?
If you are moving through a square with zombies on the ground,
you will have a chance to trip over them or get lightly staggered.
Things taken into consideration when deciding whether you should trip or not:
  • Player movement state (walking/(sneak or not)running/sprinting)
  • Zombie on the ground state (alive/dead)
  • Zombie count
  • Player stats (professions/traits/skills/moodles)
  • On stairs or not
If you trip and fall, your hat, glasses and/or the items in your hands might fall to the ground. Also, you might get hurt!

To do
(maybe...)
  • Add a dropdown list for baseTripChances
    (-disable-stagger-fall-all)
  • Increase chance to trip at night
  • Include shoes in the equation
  • Grant XP for walking over zombies
    (on which condition?)
  • Play "walk in trees" anim when walking over corpses
    (clashes with existing functionality, gotta think about it)

Notes
  • There should be no conflicts with anything.
  • Safe to add/remove mid-save.
  • About multiplayer, server config doesn't apply to clients.
    Let me know if you know the fix.
  • Feedback/Suggestions are welcome.

Recommended mods
True Crawl - Adds a prone stance to the game!
                     You can crawl everywhere and shoot while prone.
Check out my other mods




                                                [www.buymeacoffee.com]
My fourth mod.
Initial release took two days. I had fun writing it but figuring out how to trigger the tripping animation was a chore, as well as adding sandbox options.
                                                       


Workshop ID: 3013901070
Mod ID: TripAndFall
Popular Discussions View All (1)
7
10 Nov, 2024 @ 11:11pm
PINNED: Balancing Suggestions
BOBcat
99 Comments
UnrealVenn 17 Dec, 2024 @ 4:38pm 
just going through my subscribed list because of the b42. when update for b42? tats all
Osama Bin Swagging 18 Oct, 2024 @ 3:38pm 
Been playing with this mod for like a week, is soo good and feels really immersive(adjusted setting in sandbox)
Thank you so much for making it and your other mods too. Really changes the way I play the game now:steamthumbsup:
Shal 31 Jul, 2024 @ 1:48am 
It seems that the mod doesn't recalculate if you change the sandbox options mid-game. You need to quit to menu and reload.
Jon Smith 23 Jun, 2024 @ 3:44pm 
Hey! Tried this out as I LOVE more ways for the game to fuck me over. However, no matter what I change in the sandbox settings, it's feeling like I'm absolutely plastered anytime I'm near a body. Like, calmly walking, trip basically 90% of the time. Not sure how to fix it but as a character who wears glasses I can't stand falling over and then grabbing the old spectacles like Velma every time lol
VANGUARD 14 Apr, 2024 @ 11:13am 
Would it be possible to add experience gain in the Nimble skill when walking over corpses?
A tiny amount each time when the check runs.
A sizeable amount when the check fails, causing the player to trip.
Nimble takes quite a long time to increase so more training oportunities would be welcome.
BOBcat  [author] 8 Apr, 2024 @ 12:09pm 
Cryofwar - I have never played multiplayer and have no idea how to fix that. If someone knows, let me know and I'll push a fix.
Cryofwar 5 Apr, 2024 @ 9:49am 
I noticed a weird bug. The config doesnt actually do anything on the server side. Friends who have installed this mod are still tripping every 5 seconds because their client configs are default. (I have decreased them for my own client and on the server config).
Obviously this can be resolved by giving my friends my client configs, but the servers configs should override theirs by default.
BOBcat  [author] 1 Mar, 2024 @ 12:19am 
@Segaside - Even though that is not possible, I have tried and couldn't replicate.
The damage and the animation functions reside in the same code block. So if one executes, the other has to do so as well.
Segaside 29 Feb, 2024 @ 4:48pm 
I've noticed an issue with retesting this mod to disable trip while walking with the -999 recommendation and Murphy lore at 0. Since I don't like the trip chance happening simply by playing the game. However, though this does disable the animation. The damage can still occur as if you were still tripping. Causing out of nowhere cuts for no apparent reason. I hope you look into it. :)
BOBcat  [author] 18 Jan, 2024 @ 9:05am 
@Novantico - Thank you :)

@worldprop - Thanks. Clothes already have variables that affect movement/combat speeds but since you said climbing, you must be thinking about a mod that's more comprehensive.
It'd be a multifaceted mod. Custom logic, UI integration, support for other mods...
If you're going to attempt it, try to tackle each aspect on their own. Look at existing mods, how they are built, and start with making smaller mods.
Lua is a simple language that wouldn't take long to learn if you dedicate some time.
You can do it! But only get into modding for your love of the game or self-improvement or some other intrinsic motivation, keep your expectations in check.