ZioPao / The-Only-Cure

Amputation mod for Project Zomboid
GNU General Public License v3.0
11 stars 7 forks source link

Adding more ways of causing amputations on zombies #118

Open ZioPao opened 2 months ago

ZioPao commented 2 months ago
  1. Some type of firearms should cause amputations
  2. Probability should change depending on caliber
m-hynek commented 2 months ago

I was playing with this and in the end i scrapped everyting and just modified condition for shotguns

if not (weaponCategories:contains("Axe") or weaponCategories:contains("LongBlade") or handWeapon:getScriptItem():getAmmoType() == "Base.ShotgunShells") then return end

and the result is satisfying without adding too much of overhead https://medal.tv/games/project-zomboid/clips/iwaVHgBWHJi7olIr9/d1337JrdtnXq?invite=cr-MSw5M3csMTg4MTgxODEwLA

First, I implemented also .308 and .44 Magnum rounds. But then I realized people are probably using firearms mods that adds new ammo types, even heavier calibers that would not work without compatibility implementations. Also modded weapons have usually rapid fire rates, so it would trigger a lot of calculations. Shotgun is most popular gun among PZ players IMO so It would make sense to keep it simply shotgun only.

What do you think?

ZioPao commented 2 months ago

I was playing with this and in the end i scrapped everyting and just modified condition for shotguns

if not (weaponCategories:contains("Axe") or weaponCategories:contains("LongBlade") or handWeapon:getScriptItem():getAmmoType() == "Base.ShotgunShells") then return end

and the result is satisfying without adding too much of overhead https://medal.tv/games/project-zomboid/clips/iwaVHgBWHJi7olIr9/d1337JrdtnXq?invite=cr-MSw5M3csMTg4MTgxODEwLA

First, I implemented also .308 and .44 Magnum rounds. But then I realized people are probably using firearms mods that adds new ammo types, even heavier calibers that would not work without compatibility implementations. Also modded weapons have usually rapid fire rates, so it would trigger a lot of calculations. Shotgun is most popular gun among PZ players IMO so It would make sense to keep it simply shotgun only.

What do you think?

I think you're completely right. Generally we could just add a sandbox var to set other acceptable type of ammo, notifying players that it could be heavy in certain situations.

m-hynek commented 2 months ago

And maybe don't care about damage for firearms and trigger it only for criticals, so there is less calculations. I will try to come up with something