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),
|
||||
|
||||
Basketball("Hoops", Material.SLIME_BALL, (byte)0, GameCategory.EXTRA, 63),
|
||||
<<<<<<< HEAD
|
||||
|
||||
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),
|
||||
|
||||
|
@ -526,7 +526,7 @@ public class QuiverPayload extends TeamGame
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.getType() == UpdateType.TWOSEC && _isOvertime)
|
||||
if (event.getType() == UpdateType.SEC && _isOvertime)
|
||||
{
|
||||
if (_lastOvertimeTrack.isEmpty())
|
||||
{
|
||||
@ -596,6 +596,11 @@ public class QuiverPayload extends TeamGame
|
||||
powerupGenerator.update();
|
||||
}
|
||||
|
||||
for (SpawnBarrier spawnBarrier : _spawnBarrier)
|
||||
{
|
||||
spawnBarrier.playParticles();
|
||||
}
|
||||
|
||||
_coloredMessage = !_coloredMessage;
|
||||
|
||||
for (Player player : GetPlayers(true))
|
||||
@ -1130,7 +1135,12 @@ public class QuiverPayload extends TeamGame
|
||||
@EventHandler
|
||||
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;
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ public class SpawnBarrier
|
||||
continue;
|
||||
}
|
||||
|
||||
if(_game.GetTeam(player).equals(_gameTeam))
|
||||
if (_game.GetTeam(player).equals(_gameTeam))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@ -64,7 +64,26 @@ public class SpawnBarrier
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user