mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-19 18:44:45 +00:00
adjust
This commit is contained in:
parent
c24e46f735
commit
0d09d9d6fc
|
|
@ -1310,7 +1310,7 @@ class PlayerControl(player: Player, avatarActor: typed.ActorRef[AvatarActor.Comm
|
|||
*/
|
||||
def doInteractingWithDeath(obj: PlanetSideServerObject, body: PieceOfEnvironment, data: Option[OxygenStateTarget]): Unit = {
|
||||
player.History.findLast { entry => entry.isInstanceOf[ReconstructionActivity] } match {
|
||||
case Some(entry) if System.currentTimeMillis() - entry.time > 3000L => suicide()
|
||||
case Some(entry) if System.currentTimeMillis() - entry.time > 4000L => suicide()
|
||||
case _ =>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import net.psforever.objects.serverobject.terminals.Terminal
|
|||
import net.psforever.objects.sourcing.{PlayerSource, SourceEntry, VehicleSource}
|
||||
import net.psforever.objects.vehicles._
|
||||
import net.psforever.objects.vital.interaction.{DamageInteraction, DamageResult}
|
||||
import net.psforever.objects.vital.{DamagingActivity, InGameActivity, ShieldCharge, SpawningActivity, VehicleDismountActivity, VehicleMountActivity}
|
||||
import net.psforever.objects.vital.{DamagingActivity, InGameActivity, ReconstructionActivity, ShieldCharge, SpawningActivity, VehicleDismountActivity, VehicleMountActivity}
|
||||
import net.psforever.objects.vital.environment.EnvironmentReason
|
||||
import net.psforever.objects.vital.etc.SuicideReason
|
||||
import net.psforever.objects.zones._
|
||||
|
|
@ -679,8 +679,8 @@ class VehicleControl(vehicle: Vehicle)
|
|||
*/
|
||||
def doInteractingWithDeath(obj: PlanetSideServerObject, body: PieceOfEnvironment, data: Option[OxygenStateTarget]): Unit = {
|
||||
if (!obj.Destroyed) {
|
||||
vehicle.History.findLast { entry => entry.isInstanceOf[SpawningActivity] } match {
|
||||
case Some(entry) if System.currentTimeMillis() - entry.time > 3000L =>
|
||||
vehicle.History.findLast { entry => entry.isInstanceOf[ReconstructionActivity] } match {
|
||||
case Some(entry) if System.currentTimeMillis() - entry.time > 4000L =>
|
||||
PerformDamage(
|
||||
vehicle,
|
||||
DamageInteraction(
|
||||
|
|
|
|||
Loading…
Reference in a new issue