Project Zomboid

Project Zomboid

71 voti
Spear Trap leave Deep Wounds
   
Premio
Aggiungi ai preferiti
Preferito
Rimuovi dai preferiti
Dimensioni del file
Pubblicato in data
Aggiornato in data
1.143 MB
18 ott 2023, ore 1:27
19 feb, ore 23:11
4 note di rilascio ( visualizza )

Sottoscrivi per scaricare
Spear Trap leave Deep Wounds

In 1 collezione di Birget
50 дней Эйприл.
69 elementi
Descrizione
It is a simple addon to Spear Traps mod. You NEED the original mod installed. This mod must be loaded AFTER original one!

If player death from traps is turned off you will fall and get deep wounds on legs on trap tiles and fall while running and sprinting on ordinary empty graves.

Made for MP. It can work in SP, but will give an error message. You can try to get rid of the error by deleting "server" folder in my mod.

No updates planned.

Credits
Huge thanks to the author of original Spear Traps mod.

Some code parts are inspired by Slippery snow mod.

Also thanks to Aiteron for helping me with synchronisation of players falling for another mod.

Workshop ID: 3053589793
Mod ID: SpearTrapDeepWounds
17 commenti
NivJake 3 mar, ore 18:41 
would you consider adding a thing where the spears dont instantly break, but rather use up durability. kinda weird we can stab a zombie couple times with a spear before breaking, but if we put it in the ground, its made of mega thin glass
Birget  [autore] 19 feb, ore 23:12 
B42 compatibility added
LumberingTroll 6 feb, ore 6:09 
When you have time B42 compatibility would be greatly appreciated!
Anach 31 lug 2024, ore 1:05 
@Birget I've noticed it adds the spear to the grave, and even if it's only one spear, it will go through another action, which is why I didn't think it was caused by this mod, directly, but possibly something else. It's possible it's the tidy up mod I have for returning items to their original containers after use, as it's like there's an extra action to placing the last spear is trying to return it to the inventory, but there's nothing there to return. I found a workaround by keeping spears in my pack when adding to the grave, which prevents that double-action.

The other error, was definitely an 'on death' error, as it also happened when I died to a trap when I accidentally left the death toggle on. The error log pointed to that section of the code where the double-spacing was, whether it was the player death or zombie death section. I've been error free since, even after a horde night.
Birget  [autore] 30 lug 2024, ore 22:43 
@Anach thanks)

I do not remember having errors on zombie death, but i use original mod by co' not by Tot.

I assume fake spear in hand is somewhere in "add spears" action of the original mod. I cannot check it myself in nearest future to say where is it exactly, but actions usually have several stages and one of them gives an equipping opportunity. like in building action we see hammer in one arm and a plank in another here we have spears.
Anach 30 lug 2024, ore 21:28 
I went through fixing the indentation, and merging it with Tot's mod, so I could better look for errors. In found three double-spaced statements when checking for spears. Fixing those, seemed to fix the constant errors upon death.

I still have nonexistent spears getting stuck in my secondary hand when placing them, but unsure what is causing that.

https://pastebin.com/CKjcDDtv
Anach 22 lug 2024, ore 3:45 
Whenever a zombie gets killed by the trap, I get an error. I believe this is an issue with all versions of the Spear Traps mod, as they all have the unfinished "ToDo" section.

*edit, looks more like the error gets fired off when they fall.

-----------------------------------------
function: breakSpear -- file: SpearTraps.lua line # 146 | MOD: Spear Traps Fall & Deep Wounds
function: onZombieUpdate -- file: SpearTraps.lua line # 370 | MOD: Spear Traps Fall & Deep Wounds
Dok Woya 7 gen 2024, ore 17:27 
Ran into a bug that nearly killed my friend. Running over filled graves hurts you, even if you're running on stairs with the grave underneath.
H 22 ott 2023, ore 10:23 
xd
Birget  [autore] 20 ott 2023, ore 2:31 
@Captain Tofu I haven't seen this mod before. I m afraid its not compatiple as I replace the same file that make main function