mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-19 18:44:45 +00:00
changed conditions so stamina is full upon time-out respawning back at sanctuary (#1319)
This commit is contained in:
parent
09e648e953
commit
ba8a7caedf
|
|
@ -2988,7 +2988,7 @@ class ZoningOperations(
|
||||||
}
|
}
|
||||||
val toSpawnPoint = physSpawnPoint.collect { case o: PlanetSideGameObject with FactionAffinity => SourceEntry(o) }
|
val toSpawnPoint = physSpawnPoint.collect { case o: PlanetSideGameObject with FactionAffinity => SourceEntry(o) }
|
||||||
respawnTimer = context.system.scheduler.scheduleOnce(respawnTime) {
|
respawnTimer = context.system.scheduler.scheduleOnce(respawnTime) {
|
||||||
if (player.isBackpack) { // if the player is dead, he is handled as dead infantry, even if he died in a vehicle
|
if (!player.isAlive && player.History.nonEmpty) { // if the player is dead, handle as dead infantry, even if dead in a vehicle
|
||||||
// new player is spawning
|
// new player is spawning
|
||||||
val newPlayer = RespawnClone(player)
|
val newPlayer = RespawnClone(player)
|
||||||
newPlayer.LogActivity(SpawningActivity(PlayerSource(newPlayer), toZoneNumber, toSpawnPoint))
|
newPlayer.LogActivity(SpawningActivity(PlayerSource(newPlayer), toZoneNumber, toSpawnPoint))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue