Particle changes
This commit is contained in:
parent
4b1c93150b
commit
b3212fc003
@ -83,11 +83,8 @@ public enum GameDisplay
|
|||||||
Valentines("Valentines Vendetta", Material.LEATHER, (byte)0, GameCategory.EXTRA, 61),
|
Valentines("Valentines Vendetta", Material.LEATHER, (byte)0, GameCategory.EXTRA, 61),
|
||||||
|
|
||||||
Basketball("Hoops", Material.SLIME_BALL, (byte)0, GameCategory.EXTRA, 63),
|
Basketball("Hoops", Material.SLIME_BALL, (byte)0, GameCategory.EXTRA, 63),
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
QuiverPayload("One in the Quiver Payload", Material.ARROW, (byte)0, GameCategory.ARCADE, 64),
|
QuiverPayload("One in the Quiver Payload", Material.ARROW, (byte)0, GameCategory.ARCADE, 64),
|
||||||
=======
|
|
||||||
>>>>>>> refs/remotes/origin/develop
|
|
||||||
|
|
||||||
Event("Mineplex Event", Material.CAKE, (byte)0, GameCategory.EVENT, 999),
|
Event("Mineplex Event", Material.CAKE, (byte)0, GameCategory.EVENT, 999),
|
||||||
|
|
||||||
|
@ -526,7 +526,7 @@ public class QuiverPayload extends TeamGame
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.getType() == UpdateType.TWOSEC && _isOvertime)
|
if (event.getType() == UpdateType.SEC && _isOvertime)
|
||||||
{
|
{
|
||||||
if (_lastOvertimeTrack.isEmpty())
|
if (_lastOvertimeTrack.isEmpty())
|
||||||
{
|
{
|
||||||
@ -596,6 +596,11 @@ public class QuiverPayload extends TeamGame
|
|||||||
powerupGenerator.update();
|
powerupGenerator.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (SpawnBarrier spawnBarrier : _spawnBarrier)
|
||||||
|
{
|
||||||
|
spawnBarrier.playParticles();
|
||||||
|
}
|
||||||
|
|
||||||
_coloredMessage = !_coloredMessage;
|
_coloredMessage = !_coloredMessage;
|
||||||
|
|
||||||
for (Player player : GetPlayers(true))
|
for (Player player : GetPlayers(true))
|
||||||
@ -1130,7 +1135,12 @@ public class QuiverPayload extends TeamGame
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onCombatDeath(CombatDeathEvent event)
|
public void onCombatDeath(CombatDeathEvent event)
|
||||||
{
|
{
|
||||||
if (event.GetLog().GetKiller().GetName() == null || !(event.GetEvent().getEntity() instanceof Player))
|
if (event.GetEvent().getEntity() == null || event.GetLog().GetKiller().GetName() == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!(event.GetEvent().getEntity() instanceof Player))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,26 @@ public class SpawnBarrier
|
|||||||
{
|
{
|
||||||
UtilAction.velocity(player, UtilAlg.getTrajectory(location, player.getLocation()).normalize().setY(0.4));
|
UtilAction.velocity(player, UtilAlg.getTrajectory(location, player.getLocation()).normalize().setY(0.4));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void playParticles()
|
||||||
|
{
|
||||||
|
for (Player player : _game.GetPlayers(true))
|
||||||
|
{
|
||||||
|
if (UtilPlayer.isSpectator(player))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_game.GetTeam(player).equals(_gameTeam))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (Location location : _barriers)
|
||||||
|
{
|
||||||
UtilParticle.PlayParticle(ParticleType.BARRIER, location.clone().add(0, 0.5, 0), 0, 0, 0, 0.1F, 1, ViewDist.SHORT, player);
|
UtilParticle.PlayParticle(ParticleType.BARRIER, location.clone().add(0, 0.5, 0), 0, 0, 0, 0.1F, 1, ViewDist.SHORT, player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user