Advertisement
Guest User

Adding Holes Twice?

a guest
Aug 21st, 2021
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.53 KB | None | 0 0
  1.         bl = this.getParentChar().addHoleFromZombieAttacks(BloodBodyPartType.FromIndex(n3));
  2.         if (Rand.Next(100) > n4) {
  3.             n = 1;
  4.             boolean bl4 = false;
  5.             if (this.getParentChar().helmetFall(n3 == BodyPartType.ToIndex(BodyPartType.Neck) || n3 == BodyPartType.ToIndex(BodyPartType.Head))) {
  6.                 return false;
  7.             }
  8.             if (Rand.Next(100) > n6) {
  9.                 n = 0;
  10.                 bl4 = true;
  11.             }
  12.             if (Rand.Next(100) > n5) {
  13.                 n = 0;
  14.                 bl4 = false;
  15.             }
  16.             if (n != 0) {
  17.                 Float f2 = Float.valueOf(this.getParentChar().getBodyPartClothingDefense(n3, false, false));
  18.                 if (this.getHealth() > 0.0f) {
  19.                     this.getParentChar().getEmitter().playSound("ZombieScratch");
  20.                 }
  21.                 if ((float)Rand.Next(100) < f2.floatValue()) {
  22.                     return false;
  23.                 }
  24.                 if (!bl) {
  25.                     this.getParentChar().addHole(BloodBodyPartType.FromIndex(n3));
  26.                 }
  27.                 this.AddDamage(n3, f);
  28.                 this.SetScratched(n3, true);
  29.                 this.getParentChar().addBlood(BloodBodyPartType.FromIndex(n3), true, false, true);
  30.                 n2 = 1;
  31.                 if (GameServer.bServer && this.ParentChar instanceof IsoPlayer) {
  32.                     DebugLog.log(DebugType.Combat, "zombie scratched " + ((IsoPlayer)this.ParentChar).username);
  33.                 }
  34.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement