Extend Death System; Add Revive-System
This commit is contained in:
@@ -22,7 +22,7 @@ namespace reallife_gamemode.Server.Events
|
||||
[ServerEvent(Event.PlayerDeath)]
|
||||
public void OnPlayerDeath(Client player, Client killer, uint reason)
|
||||
{
|
||||
|
||||
player.SetData("isDead", true);
|
||||
player.TriggerEvent("startDeathTimer");
|
||||
|
||||
//TODO: Zum Full Release entfernen
|
||||
@@ -65,14 +65,9 @@ namespace reallife_gamemode.Server.Events
|
||||
[RemoteEvent("RespawnPlayerAtHospital")]
|
||||
public void RespawnPlayerAtHospital(Client player)
|
||||
{
|
||||
player.SetData("isDead", false);
|
||||
player.RemoveAllWeapons();
|
||||
NAPI.Player.SpawnPlayer(player, new Vector3(-495.45, -336.33, 34.5));
|
||||
}
|
||||
[RemoteEvent("RespawnPlayerAtDeathpoint")]
|
||||
public void RespawnPlayerAtDeathpoint(Client player)
|
||||
{
|
||||
NAPI.Player.SpawnPlayer(player, player.Position);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user