Project Zomboid

Project Zomboid

Superb Survivors!
Edd えどがあ 2021 年 12 月 10 日 下午 5:59
Survivors not dealing damage or attacking
Thats pretty much, survivors aint attacking anything, they just push them and do nothing.
< >
正在显示第 1 - 15 条,共 19 条留言
Rose Nebula 2021 年 12 月 15 日 上午 11:29 
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 2021 年 12 月 23 日 上午 5:55 
Same issue, survivors just make the animation for attack zombies but the zombies dont take any damage and then they bite the survivor.
Shenji 2021 年 12 月 23 日 下午 10:35 
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.
最后由 Shenji 编辑于; 2021 年 12 月 23 日 下午 10:37
MakuBexx 2021 年 12 月 24 日 下午 9:27 
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.
最后由 MakuBexx 编辑于; 2021 年 12 月 24 日 下午 9:30
PLASMA_Spartan 2021 年 12 月 25 日 上午 7:25 
Got the same problem
99killer 2021 年 12 月 25 日 下午 7:53 
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
最后由 99killer 编辑于; 2021 年 12 月 25 日 下午 7:53
I guess the best thing we can do is left the survivors on the base doing the shores till this get patched.
Bullet1890 2021 年 12 月 29 日 上午 3:27 
Me too.
Septron 2022 年 1 月 3 日 上午 9:37 
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.
最后由 Septron 编辑于; 2022 年 1 月 11 日 下午 1:18
Polliwallop 2022 年 1 月 4 日 下午 10:00 
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...
GoodOlMericanGamer 2022 年 1 月 4 日 下午 10:43 
Bummer just tried that and still wont work for me, Wonder if its because of having the subpar survivors active as well.
binging 2022 年 1 月 5 日 下午 4:25 
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 2022 年 1 月 5 日 下午 4:26 
Also, its not smooth by any means, survivors attack very strangely but can damage and kill zombies and defend themselves from the players.
General Geko Green 2022 年 1 月 7 日 上午 8:43 
引用自 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 2022 年 1 月 7 日 下午 5:56 
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"
最后由 Septron 编辑于; 2022 年 1 月 7 日 下午 6:00
< >
正在显示第 1 - 15 条,共 19 条留言
每页显示数: 1530 50