Project Zomboid

Project Zomboid

61 rating
Spear Trap leave Deep Wounds
   
Penghargaan
Favorit
Difavoritkan
Batalkan favorit
Ukuran File
Diposting
Diperbarui
384.385 KB
18 Okt 2023 @ 1:27am
18 Okt 2023 @ 2:39am
3 Catatan Perubahan ( lihat )

Berlangganan untuk mengunduh
Spear Trap leave Deep Wounds

Dalam koleksi 1 dari Birget
50 дней Эйприл.
Item 70
Deskripsi
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 Komentar
Anach 31 Jul @ 1:05am 
@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  [pembuat] 30 Jul @ 10:43pm 
@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 @ 9:28pm 
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 @ 3:45am 
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 @ 5:27pm 
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 @ 10:23am 
xd
Birget  [pembuat] 20 Okt 2023 @ 2:31am 
@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 @ 2:11am 
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  [pembuat] 19 Okt 2023 @ 8:37pm 
@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 @ 12:34pm 
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?