Project Zomboid

Project Zomboid

Superb Survivors!
Edd えどがあ 10 Dec, 2021 @ 5:59pm
Survivors not dealing damage or attacking
Thats pretty much, survivors aint attacking anything, they just push them and do nothing.
< >
Showing 1-15 of 19 comments
Rose Nebula 15 Dec, 2021 @ 11:29am 
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.
BOIX 23 Dec, 2021 @ 5:55am 
Same issue, survivors just make the animation for attack zombies but the zombies dont take any damage and then they bite the survivor.
Shenji 23 Dec, 2021 @ 10:35pm 
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.
Last edited by Shenji; 23 Dec, 2021 @ 10:37pm
MakuBexx 24 Dec, 2021 @ 9:27pm 
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.
Last edited by MakuBexx; 24 Dec, 2021 @ 9:30pm
PLASMA_Spartan 25 Dec, 2021 @ 7:25am 
Got the same problem
99killer 25 Dec, 2021 @ 7:53pm 
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
Last edited by 99killer; 25 Dec, 2021 @ 7:53pm
I guess the best thing we can do is left the survivors on the base doing the shores till this get patched.
Bullet1890 29 Dec, 2021 @ 3:27am 
Me too.
Septron 3 Jan, 2022 @ 9:37am 
2
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.
Last edited by Septron; 11 Jan, 2022 @ 1:18pm
Polliwallop 4 Jan, 2022 @ 10:00pm 
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.
binging 5 Jan, 2022 @ 4:25pm 
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!
binging 5 Jan, 2022 @ 4:26pm 
Also, its not smooth by any means, survivors attack very strangely but can damage and kill zombies and defend themselves from the players.
Originally posted by Septron:
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?
Septron 7 Jan, 2022 @ 5:56pm 
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://store.steampowered.com/app/108600/Project_Zomboid/
https://gtm.steamproxy.vip/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"
Last edited by Septron; 7 Jan, 2022 @ 6:00pm
< >
Showing 1-15 of 19 comments
Per page: 1530 50