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.
< >
Visar 1-15 av 19 kommentarer
Rose Nebula 15 dec, 2021 @ 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 23 dec, 2021 @ 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 23 dec, 2021 @ 22: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.
Senast ändrad av Shenji; 23 dec, 2021 @ 22:37
MakuBexx 24 dec, 2021 @ 21: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.
Senast ändrad av MakuBexx; 24 dec, 2021 @ 21:30
Got the same problem
99killer 25 dec, 2021 @ 19: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
Senast ändrad av 99killer; 25 dec, 2021 @ 19:53
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:27 
Me too.
Septron 3 jan, 2022 @ 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.
Senast ändrad av Septron; 11 jan, 2022 @ 13:18
Polliwallop 4 jan, 2022 @ 22: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...
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 @ 16: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 5 jan, 2022 @ 16:26 
Also, its not smooth by any means, survivors attack very strangely but can damage and kill zombies and defend themselves from the players.
Ursprungligen skrivet av 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 @ 17: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://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"
Senast ändrad av Septron; 7 jan, 2022 @ 18:00
< >
Visar 1-15 av 19 kommentarer
Per sida: 1530 50