Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bl = this.getParentChar().addHoleFromZombieAttacks(BloodBodyPartType.FromIndex(n3));
- if (Rand.Next(100) > n4) {
- n = 1;
- boolean bl4 = false;
- if (this.getParentChar().helmetFall(n3 == BodyPartType.ToIndex(BodyPartType.Neck) || n3 == BodyPartType.ToIndex(BodyPartType.Head))) {
- return false;
- }
- if (Rand.Next(100) > n6) {
- n = 0;
- bl4 = true;
- }
- if (Rand.Next(100) > n5) {
- n = 0;
- bl4 = false;
- }
- if (n != 0) {
- Float f2 = Float.valueOf(this.getParentChar().getBodyPartClothingDefense(n3, false, false));
- if (this.getHealth() > 0.0f) {
- this.getParentChar().getEmitter().playSound("ZombieScratch");
- }
- if ((float)Rand.Next(100) < f2.floatValue()) {
- return false;
- }
- if (!bl) {
- this.getParentChar().addHole(BloodBodyPartType.FromIndex(n3));
- }
- this.AddDamage(n3, f);
- this.SetScratched(n3, true);
- this.getParentChar().addBlood(BloodBodyPartType.FromIndex(n3), true, false, true);
- n2 = 1;
- if (GameServer.bServer && this.ParentChar instanceof IsoPlayer) {
- DebugLog.log(DebugType.Combat, "zombie scratched " + ((IsoPlayer)this.ParentChar).username);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement