Project Zomboid

Project Zomboid

Superb Survivors!
Survivors not dealing damage or attacking
Thats pretty much, survivors aint attacking anything, they just push them and do nothing.
< >
Zobrazuje se 115 z 19 komentářů
i think you have to set them to attack dont remember the option for it. go up to the survivor right click it. look for some thing that says commands or some thing similar. and look for an option that sets them to aggressive. im thinking about turning this mod on agine but im not sure about it. if i do. ill get a better description for ya.
Same issue, survivors just make the animation for attack zombies but the zombies dont take any damage and then they bite the survivor.
And NPCs stoped shooting, I watched a full pack of gangsters with guns got eaten by about a dozen zombies. They never shot a round.
NPC set to Brave.
Naposledy upravil Shenji; 23. pro. 2021 v 22.37
so my npc wife left me for dead I was a buffet for 3 zombies couldn't move they took turns just getting a nibble until I died all because she couldn't connect with any attacks. Being optimistic here I feel like this stuff is happening because they are working on NPCs for the next update.
Naposledy upravil MakuBexx; 24. pro. 2021 v 21.30
Got the same problem
i got the same thing happening but they are immortal to some weapons (from mods and vanilla) and will play the animation but do no damage or will completely freeze mid run
Naposledy upravil 99killer; 25. pro. 2021 v 19.53
I guess the best thing we can do is left the survivors on the base doing the shores till this get patched.
Me too.
This can be fixed by changing the following in "SuperSurvivor.lua" located in your "steamapps\workshop\content\<game id>\<mod id>\mods\Superb-Survivors\media\lua\client\2_Other" folder.

Go down to line 2316 it should look something like this:
if(self.player ~= nil) then local distance = getDistanceBetween(self.player,victim) local minrange = self:getMinWeaponRange() + 0.1 --print("distance was ".. tostring(distance)) if(distance < minrange) or (self.player:getPrimaryHandItem() == nil) then --self:Speak("Shove!"..tostring(distance).."/"..tostring(minrange)) self.player:setForceShove(true); self.player:setVariable("bShoveAiming", true); self.player:setVariable("bDoShove", true); self.player:setVariable("meleePressed", true); self.player:pressedAttack(); self.player:NPCSetAttack(true); self.player:NPCSetMelee(true); self.player:AttemptAttack(10.0); else --self:Speak("Attack!"..tostring(distance).."/"..tostring(minrange)) self.player:NPCSetAttack(true); self.player:NPCSetMelee(false); end end

Replace that entire block with the following:

if(self.player ~= nil) then local distance = getDistanceBetween(self.player,victim) local minrange = self:getMinWeaponRange() + 0.1 --print("distance was ".. tostring(distance)) local weapon = self.player:getPrimaryHandItem(); local damage = 0 if (weapon ~= nil) then damage = weapon:getMaxDamage(); end self.player:setVariable("bAiming", true) self.player:NPCSetAttack(true) if(distance < minrange) or (self.player:getPrimaryHandItem() == nil) then --self:Speak("Shove!"..tostring(distance).."/"..tostring(minrange)) victim:Hit(weapon, self.player, damage, true, 1.0, false) else --self:Speak("Attack!"..tostring(distance).."/"..tostring(minrange)) victim:Hit(weapon, self.player, damage, false, 1.0, false) end end

There is probably other issues that will occur due to the mod being outdated but this will fix most of the issues with not attacking from my experience.
Naposledy upravil Septron; 11. led. 2022 v 13.18
Well I have good news and bad news. The good news is that this worked! Thanks, man! The bad news is now I got shot by the food guard for stealing the corn...
Bummer just tried that and still wont work for me, Wonder if its because of having the subpar survivors active as well.
Tried this fix, fiddled with it for a bit when it didn't work and finally figured it out.

You can't use subpar survivors (I think because of a copy of the lua file in this mod overwriting the fix in superb surviors (May be able to apply fix in subpar lua) with this fix and you need to make a new save for it to apply!
Also, its not smooth by any means, survivors attack very strangely but can damage and kill zombies and defend themselves from the players.
Septron původně napsal:
This can be fixed by changing the following in "SuperSurvivor.lua" located in your "steamapps\workshop\content\<game id>\<mod id>\mods\Superb-Survivors\media\lua\client\2_Other" folder.

Go down to line 2316 it should look something like this:
if(self.player ~= nil) then local distance = getDistanceBetween(self.player,victim) local minrange = self:getMinWeaponRange() + 0.1 --print("distance was ".. tostring(distance)) if(distance < minrange) or (self.player:getPrimaryHandItem() == nil) then --self:Speak("Shove!"..tostring(distance).."/"..tostring(minrange)) self.player:setForceShove(true); self.player:setVariable("bShoveAiming", true); self.player:setVariable("bDoShove", true); self.player:setVariable("meleePressed", true); self.player:pressedAttack(); self.player:NPCSetAttack(true); self.player:NPCSetMelee(true); self.player:AttemptAttack(10.0); else --self:Speak("Attack!"..tostring(distance).."/"..tostring(minrange)) self.player:NPCSetAttack(true); self.player:NPCSetMelee(false); end end

Replace that entire block with the following:

if(self.player ~= nil) then local distance = getDistanceBetween(self.player,victim) local minrange = self:getMinWeaponRange() + 0.1 --print("distance was ".. tostring(distance)) local weapon = self.player:getPrimaryHandItem(); local damage = 0 if (weapon ~= nil) then damage = weapon:getMaxDamage(); end self.player:NPCSetAiming(true) self.player:NPCSetAttack(true) if(distance < minrange) or (self.player:getPrimaryHandItem() == nil) then --self:Speak("Shove!"..tostring(distance).."/"..tostring(minrange)) victim:Hit(weapon, self.player, damage, true, 1.0, false) else --self:Speak("Attack!"..tostring(distance).."/"..tostring(minrange)) victim:Hit(weapon, self.player, damage, false, 1.0, false) end end

There is probably other issues that will occur due to the mod being outdated but this will fix most of the issues with not attacking from my experience.

Which is the Game id and Mod Id?
You can find the Game ID and the Mod ID by looking at the links to those specific things.

For example here's the game and mod id for this game and mod.

https://psteamproxy.yuanyoumao.com/app/108600/Project_Zomboid/
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1905148104

You can get the current page URL on the Steam Application by right clicking anywhere on the page and clicking Copy Page URL.

Game = 108600
Mod = 1905148104

So the path would be "steamapps\workshop\content\108600\1905148104\mods\Superb-Survivors\media\lua\client\2_Other"
Naposledy upravil Septron; 7. led. 2022 v 18.00
< >
Zobrazuje se 115 z 19 komentářů
Na stránku: 1530 50