fixed some projectile stuff
This commit is contained in:
parent
23be8aa1dd
commit
225f067ab3
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user