Project Zomboid

Project Zomboid

Subpar Survivors
KI5 6 września 2021 o 14:25
Vehicle armor
People have been complaining that they are taking damage in my armored vehicles and it seems the script is not detecting attacks from this mod. Would it be possible to avoid player damage from npcs if they are in a vehicle with specific flag?

something like: frontEndHealth higher than 3k for example
< >
Wyświetlanie 1-2 z 2 komentarzy
SlightlyMadman  [producent] 7 września 2021 o 7:22 
Yes, I think I could add something in SuperSurvivorPVPHandle in SuperSurvivorUpdate.lua. So something like: "if player:getVehicle() ~= nil and player:getVehicle():getFrontEndHealth() > 3000"? I'm not sure exactly what the properties on the vehicle class are.
KI5 7 września 2021 o 9:32 
that should work, the flag is frontEndHealth, it would fix most of the armored vehicles on steam, since they are all above 3k
< >
Wyświetlanie 1-2 z 2 komentarzy
Na stronę: 1530 50