mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-13 15:34:42 +00:00
adjust
This commit is contained in:
parent
c24e46f735
commit
0d09d9d6fc
2 changed files with 4 additions and 4 deletions
|
|
@ -1310,7 +1310,7 @@ class PlayerControl(player: Player, avatarActor: typed.ActorRef[AvatarActor.Comm
|
||||||
*/
|
*/
|
||||||
def doInteractingWithDeath(obj: PlanetSideServerObject, body: PieceOfEnvironment, data: Option[OxygenStateTarget]): Unit = {
|
def doInteractingWithDeath(obj: PlanetSideServerObject, body: PieceOfEnvironment, data: Option[OxygenStateTarget]): Unit = {
|
||||||
player.History.findLast { entry => entry.isInstanceOf[ReconstructionActivity] } match {
|
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 _ =>
|
case _ =>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ import net.psforever.objects.serverobject.terminals.Terminal
|
||||||
import net.psforever.objects.sourcing.{PlayerSource, SourceEntry, VehicleSource}
|
import net.psforever.objects.sourcing.{PlayerSource, SourceEntry, VehicleSource}
|
||||||
import net.psforever.objects.vehicles._
|
import net.psforever.objects.vehicles._
|
||||||
import net.psforever.objects.vital.interaction.{DamageInteraction, DamageResult}
|
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.environment.EnvironmentReason
|
||||||
import net.psforever.objects.vital.etc.SuicideReason
|
import net.psforever.objects.vital.etc.SuicideReason
|
||||||
import net.psforever.objects.zones._
|
import net.psforever.objects.zones._
|
||||||
|
|
@ -679,8 +679,8 @@ class VehicleControl(vehicle: Vehicle)
|
||||||
*/
|
*/
|
||||||
def doInteractingWithDeath(obj: PlanetSideServerObject, body: PieceOfEnvironment, data: Option[OxygenStateTarget]): Unit = {
|
def doInteractingWithDeath(obj: PlanetSideServerObject, body: PieceOfEnvironment, data: Option[OxygenStateTarget]): Unit = {
|
||||||
if (!obj.Destroyed) {
|
if (!obj.Destroyed) {
|
||||||
vehicle.History.findLast { entry => entry.isInstanceOf[SpawningActivity] } match {
|
vehicle.History.findLast { entry => entry.isInstanceOf[ReconstructionActivity] } match {
|
||||||
case Some(entry) if System.currentTimeMillis() - entry.time > 3000L =>
|
case Some(entry) if System.currentTimeMillis() - entry.time > 4000L =>
|
||||||
PerformDamage(
|
PerformDamage(
|
||||||
vehicle,
|
vehicle,
|
||||||
DamageInteraction(
|
DamageInteraction(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue