more testing
This commit is contained in:
parent
1c6252f445
commit
e676cca703
15
Program.cs
15
Program.cs
|
@ -60,15 +60,12 @@ internal class MyGameServer : GameServer<MyPlayer>
|
|||
|
||||
public void UpdateWeapon(MyPlayer player)
|
||||
{
|
||||
if (player.Level < mGunGame.Count)
|
||||
var w = new WeaponItem
|
||||
{
|
||||
var w = new WeaponItem
|
||||
{
|
||||
ToolName = "M9",
|
||||
MainSight = Attachments.RedDot
|
||||
};
|
||||
player.SetPrimaryWeapon(w, 3, true);
|
||||
}
|
||||
ToolName = mGunGame[player.Level].Name,
|
||||
MainSight = Attachments.RedDot
|
||||
};
|
||||
player.SetPrimaryWeapon(w, 3, true);
|
||||
}
|
||||
|
||||
public override async Task OnAPlayerKilledAnotherPlayer(OnPlayerKillArguments<MyPlayer> onPlayerKillArguments)
|
||||
|
@ -113,7 +110,7 @@ internal class MyGameServer : GameServer<MyPlayer>
|
|||
public override Task OnPlayerConnected(MyPlayer player)
|
||||
{
|
||||
Console.WriteLine($"{player.Name} connected");
|
||||
|
||||
player.Level = 0;
|
||||
return base.OnPlayerConnected(player);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue