Project Zomboid

Project Zomboid

61 beoordelingen
Spear Trap leave Deep Wounds
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Bestandsgrootte
Geplaatst op
Bijgewerkt op
384.385 KB
18 okt 2023 om 1:27
18 okt 2023 om 2:39
3 wijzigingsnotities (weergeven)

Abonneren om te downloaden
Spear Trap leave Deep Wounds

In 1 verzameling van Birget
50 дней Эйприл.
70 items
Omschrijving
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
14 opmerkingen
Anach 31 jul om 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  [auteur] 30 jul om 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 jul om 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 jul om 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 jan om 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.
El Chapo fr76 22 okt 2023 om 10:23 
xd
Birget  [auteur] 20 okt 2023 om 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
Captain Tofu 20 okt 2023 om 2:11 
Uhh nice idea! Thumbs up! Are you aware of the "Tot's Modified Spear Traps" mod? It makes the spears take 1 durability damage on triggering, instead of breaking them. Is this compatible with tots mod?
Birget  [auteur] 19 okt 2023 om 20:37 
@SleepyNotDead you can edit load order if you use "mod manager" mod) if you do not use it - yes, install spear traps first then this.
SleepyNotDead 19 okt 2023 om 12:34 
ive seen a handful of mods now saying to load certain mods in certain places, but what does that mean? what load order? i cant move the mods in the in-game mod list
do you mean order of install? like, install Spear Traps first then this?