fixed some projectile stuff

This commit is contained in:
Cheese 2015-10-31 18:22:53 +11:00
parent 23be8aa1dd
commit 225f067ab3
3 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ public class ProjectileUser
_thrower = thrower;
_callback = callback;
_expireTime = expireTime;
_expireTime = System.currentTimeMillis() + expireTime;
_hitPlayer = hitPlayer;
_hitNonPlayerEntity = hitNonPlayerEntity;
_hitBlock = hitBlock;
@ -112,7 +112,7 @@ public class ProjectileUser
_thrower = thrower;
_callback = callback;
_expireTime = expireTime;
_expireTime = System.currentTimeMillis() + expireTime;
_hitPlayer = hitPlayer;
_hitNonPlayerEntity = hitNonPlayerEntity;
_hitBlock = hitBlock;

View File

@ -123,7 +123,7 @@ public class PerkBoneRush extends SmashPerk implements IThrown
{
Item bone = player.getWorld().dropItem(player.getLocation().add(Math.random()*5 - 2.5, Math.random()*3, Math.random()*5 - 2.5), new ItemStack(Material.BONE));
UtilAction.velocity(bone, dir, 0.6 + 0.3 * Math.random(), false, 0, 0.1 + Math.random() * 0.05, 0.3, false);
Manager.GetProjectile().AddThrow(bone, player, this, -1, true, true, true, false, 0.5f);
Manager.GetProjectile().AddThrow(bone, player, this, 2000, true, true, true, true, 0.5f);
}
}
}

View File

@ -76,7 +76,7 @@ public class PerkWebShot extends SmashPerk implements IThrown
random.multiply(0.2);
UtilAction.velocity(ent, player.getLocation().getDirection().multiply(-1).add(random), 1 + Math.random() * 0.4, false, 0, 0.2, 10, false);
Manager.GetProjectile().AddThrow(ent, player, this, -1, true, true, true, false, 0.5f);
Manager.GetProjectile().AddThrow(ent, player, this, -1, true, true, true, true, 0.5f);
}
//Inform