Skip to content

Commit

Permalink
remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimmyMySherbet committed Jun 30, 2022
1 parent 3abc64a commit ecb349c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ShimmysAdminTools/Behaviors/FireworkBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public void Launch()
Trailer.Rate = TrailRate;
Trailer.enabled = true;

// Set launched
Launched = Time.realtimeSinceStartup;
IsLaunched = true;
}
Expand All @@ -73,7 +74,7 @@ public void FixedUpdate()
EffectManager.sendEffect(ExplosionEffectID, EffectManager.INSANE, transform.position);
EffectManager.sendEffect(123, EffectManager.INSANE, transform.position);
StartCoroutine(DoExplosionEffects());
DamageTool.explode(transform.position, ExplosionRadius, EDeathCause.GRENADE, Player.channel.owner.playerID.steamID,
DamageTool.explode(transform.position, ExplosionRadius, EDeathCause.MISSILE, Player.channel.owner.playerID.steamID,
ExplosionDamage, ExplosionDamage, ExplosionDamage, ExplosionDamage, ExplosionDamage, ExplosionDamage, ExplosionDamage,
ExplosionDamage, out _);
AlertTool.alert(transform.position, 200f);
Expand All @@ -93,7 +94,6 @@ private IEnumerator DoExplosionEffects(float timeToComplete = 0.2f, bool destroy
{
if (ExplosionEffects.Count == 0)
{
System.Console.WriteLine("No Effects to run");
yield break;
}

Expand All @@ -119,7 +119,6 @@ private IEnumerator DoExplosionEffects(float timeToComplete = 0.2f, bool destroy
var position = transform.position + (Random.insideUnitSphere * ExplosionRadius);

effects.Add((position, randomEffect));
System.Console.WriteLine($"Scheduled effect at {position}: {randomEffect}");
}

// Order effects inside to out of the sphere to simulate an outward explosion
Expand All @@ -142,12 +141,13 @@ private IEnumerator DoExplosionEffects(float timeToComplete = 0.2f, bool destroy
}
yield return new WaitForSeconds(effectDelay);
}

// If set, destroy the object once the coroutine is finished
if (destroyPost)
{
Destroy(Trailer);
Destroy(this);
}
System.Console.WriteLine("done");
}
}
}

0 comments on commit ecb349c

Please sign in to comment.