mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 22:22:10 +00:00
firework proj velocity option
This commit is contained in:
1 parent
e2acbabf94
commit
adbd512c30
4 files changed
+5
-2
No files matched your search
@@ -25,6 +25,7 @@ public class FireworkProjectile extends SiegeEngineProjectile {
|
||||
public float inaccuracy = 0.125f;
|
||||
public Particle particleType = Particle.EXPLOSION_NORMAL;
|
||||
public Sound soundType = Sound.ENTITY_FIREWORK_ROCKET_BLAST_FAR;
|
||||
public float velocityFactor = 0.5f;
|
||||
|
||||
private boolean playSound = true;
|
||||
|
||||
@@ -51,7 +52,7 @@ public class FireworkProjectile extends SiegeEngineProjectile {
|
||||
if (delayedFire) {
|
||||
baseDelay += delayTime;
|
||||
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(SiegeEngines.getInstance(), () -> {
|
||||
CreateEntity(entity, FireLocation, velocity, player);
|
||||
CreateEntity(entity, FireLocation, velocity*velocityFactor, player);
|
||||
}, (long) baseDelay);
|
||||
} else {
|
||||
CreateEntity(entity, FireLocation, velocity, player);
|
||||
|
||||
Reference in new issue
Block a user