Project Zomboid

Project Zomboid

Subpar Survivors
KI5 2021년 9월 6일 오후 2시 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
< >
전체 댓글 2개 중 1~2개 표시 중
SlightlyMadman  [개발자] 2021년 9월 7일 오전 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 2021년 9월 7일 오전 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
< >
전체 댓글 2개 중 1~2개 표시 중
페이지당 표시 개수: 1530 50