Project Zomboid

Project Zomboid

Brutal Handwork
 This topic has been pinned, so it's probably important
dhert  [developer] Jul 7, 2023 @ 4:32pm
State of Brutal Handwork
I know I'm sounding like a broken record, but I am working on an update for this and Fancy Handwork. I also kind of got side-tracked on a different mod that I will be releasing very soon; hopefully this partially makes up for things!

The main issue with this latest Brutal Handwork update is that I am hitting the limits of what can be changed for the game at this point in regards to attacking, and needing to work around this as best I can without this just becoming a Java mod.

TL;DR: This game is not designed to support attacking with the left hand in its core. The bugs that everyone is having are due to my use of the built-in Attack functions. The "behind the scenes" stuff that syncs reactions states in Multiplayer is not usable in Lua. Most of the attack stack is being reworked because hit reactions don't work in multiplayer currently.

Issue #1: Although you can pass in a weapon to the vanilla attack functions, at certain points this reference is ignored and the Primary weapon's stats are used. If you don't have a primary weapon, or its a gun, or its not a weapon at all, weird things can start to happen. I didn't realize the extent of this until after release and further usage.

Issue #2: The attack stack happens in Java. There are hooks and events that are called that can be used to modify an attack, but for a true replacement like I was hoping for these cannot be used. I also cannot simply "replace" these Java functions as that's just not how Lua modding works.

To solve 1 and 2, I have opted to simply refactor the full damage calculations, hit reactions, and everything else in Lua instead of it being done in the Java core. This works perfectly fine in singleplayer and local co-op currently; the main issue is Multiplayer. The player animation syncs, damage is done, but no hit reactions from zombies are processed. Which leads to...

Issue #3: I don't really have a method to say "I hit this specific zombie" to a remote client. While zombies DO have an ID, I have no method to get a zombie by ID. :(
There's no event that is shared on remote to process these hits either.
I am currently working on a way to get the hit reactions to sync in multiplayer.

This is what I'm stuck on currently. I have some leads, but I just need a bit more time.

That said, as this is now a full attack stack replacement the scope has ballooned to a ridiculous amount. I have tried to ensure that EVERYTHING is configurable for the attack.

I also opted to work on something else for a little bit to help keep my mind fresh. I should be releasing that either today or tomorrow.

See you all soon!
Last edited by dhert; Jul 7, 2023 @ 4:37pm
< >
Showing 1-5 of 5 comments
SpookyJumpscare Jul 8, 2023 @ 12:11am 
I wanted to take the time to say thanks for the work on this mod! I'm sure that I speak for a lot of people when I say that I love this mod and can not wait to see what gets done with it and the potential possibilities! I'll be waiting for the day we can slap zombies around with two meat cleavers without issue!

I will be looking around for your new mod when its posted!
Whytry Jul 17, 2023 @ 5:53am 
The mod is great for attacking with the left arm when i amputate the right but i cant use a gun with the left hand? is this what you mean by duel weilding guns?
dhert  [developer] Jul 28, 2023 @ 8:10pm 
OH HEY:
https://steamcommunity.com/sharedfiles/filedetails/?id=3011495224

This is a BIG step in the right direction. Just a few more things to iron out.
Ronin Sep 19, 2023 @ 5:31pm 
Originally posted by dhert:
OH HEY:
https://steamcommunity.com/sharedfiles/filedetails/?id=3011495224

This is a BIG step in the right direction. Just a few more things to iron out.

Any news brother?
WastelandCanid Dec 27, 2023 @ 4:14pm 
Probably one of the few mods I straight up cannot play without. Keep us posted, very very eager to see what you come up with as far as the unarmed fighting as a skill!
< >
Showing 1-5 of 5 comments
Per page: 1530 50