one of the mods out there probably has this already
i haven't been able to get any of them yet because i've been bogged down in school work
so, i'm thinking i'd like a knife in my game that is one hit kill for ALL ENEMIES except for zombies
i want my zombies will be near impervious to melee attacks
but i don't know if this is possible without a mod
a static "isweapontype=x" condition would do the trick
(by the way, static in a java sense means global
)
by the way tell me if this exists already
as a matter of syntax, boolean conditions such as this should begin with "is" so that the programmer has an idea of what he is using without having to look anything up
isweapontype=x
true when the type of the weapon doing damage has the value of x
x = 1 melee
x = 2 pistol
x = 3 automatic
x = 4 shotgun
x = 5 scoped (sniper rifle)
this way, you could define a behavior by the type of weapon used
so a zombie with 100 health would:
:state=1,shotdamage=1,isweapontype=1:addhealth=-5
:state=1,shotdamage=1,isweapontype=2:addhealth=-15
:state=1,shotdamage=1,isweapontype=3:addhealth=-10
:state=1,shotdamage=1,isweapontype=4:addhealth=-90
:state=1,shotdamage=1,isweapontype=5:addhealth=-5
as you can see there is a lot of functionality in this
is there currently a way to do this?
"There's more to life than being really, really, ridiculously good looking." - Derek Zoolander