public void MouseClickUpRight(object Sender, GameWindow.MouseData Mouse) { foreach (var Player in Players) { if (Player.Value.LocalMouse == Mouse) { Player.Value.WannaMovement = false; break; } } }
public void MouseClickDownLeft(object Sender, GameWindow.MouseData Mouse) { foreach (var Player in Players) { if (Player.Value.LocalMouse == Mouse) { Player.Value.WannaShoot = true; break; } } }
public void MouseWheelDown(object Sender, GameWindow.MouseData Mouse) { foreach (var Player in Players) { if (Player.Value.LocalMouse == Mouse) { Worm PlayerWorm = Player.Value.ControlledWorm; PlayerWorm.WeaponIndex--; if (PlayerWorm.WeaponIndex < 0) { PlayerWorm.WeaponIndex = PlayerWorm.CarriedWeapons.Count - 1; } PlayerWorm.CurrentWeapon = PlayerWorm.CarriedWeapons[PlayerWorm.WeaponIndex]; Player.Value.CreateWeaponSwapTag(PlayerWorm.CurrentWeapon); } } }