/// <summary> /// Handles an explosion notifier from a client /// </summary> static public void Handle_CS_Explosion(CS_Explosion pkt, Player player) { //Allow the player's arena to handle it if (player._arena == null) { Log.write(TLog.Error, "Player {0} sent update packet with no arena.", player); return; } if (player.IsSpectator) { Log.write(TLog.Warning, "Player {0} attempted to trigger an explosion from spec.", player); return; } player._arena.handleEvent(delegate(Arena arena) { player._arena.handlePlayerExplosion(player, pkt); } ); }
/// <summary> /// Triggered when a player notifies the server of an explosion /// </summary> public virtual void handlePlayerExplosion(Player from, CS_Explosion update) { }
/// <summary> /// Triggered when a player notifies the server of an explosion /// </summary> public void handlePlayerExplosion(Player from, CS_Explosion update) { //Warpie doo //from.warp(SC_PlayerWarp.WarpMode.Normal, update.positionX, update.positionY); }