mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-19 18:14:44 +00:00
let me explore
This commit is contained in:
parent
ebf821865a
commit
c24e46f735
|
|
@ -1309,7 +1309,10 @@ class PlayerControl(player: Player, avatarActor: typed.ActorRef[AvatarActor.Comm
|
|||
* @param data additional interaction information, if applicable
|
||||
*/
|
||||
def doInteractingWithDeath(obj: PlanetSideServerObject, body: PieceOfEnvironment, data: Option[OxygenStateTarget]): Unit = {
|
||||
suicide()
|
||||
player.History.findLast { entry => entry.isInstanceOf[ReconstructionActivity] } match {
|
||||
case Some(entry) if System.currentTimeMillis() - entry.time > 3000L => suicide()
|
||||
case _ =>
|
||||
}
|
||||
}
|
||||
|
||||
//noinspection ScalaUnusedSymbol
|
||||
|
|
|
|||
|
|
@ -679,14 +679,18 @@ class VehicleControl(vehicle: Vehicle)
|
|||
*/
|
||||
def doInteractingWithDeath(obj: PlanetSideServerObject, body: PieceOfEnvironment, data: Option[OxygenStateTarget]): Unit = {
|
||||
if (!obj.Destroyed) {
|
||||
PerformDamage(
|
||||
vehicle,
|
||||
DamageInteraction(
|
||||
VehicleSource(vehicle),
|
||||
SuicideReason(),
|
||||
vehicle.Position
|
||||
).calculate()
|
||||
)
|
||||
vehicle.History.findLast { entry => entry.isInstanceOf[SpawningActivity] } match {
|
||||
case Some(entry) if System.currentTimeMillis() - entry.time > 3000L =>
|
||||
PerformDamage(
|
||||
vehicle,
|
||||
DamageInteraction(
|
||||
VehicleSource(vehicle),
|
||||
SuicideReason(),
|
||||
vehicle.Position
|
||||
).calculate()
|
||||
)
|
||||
case _ =>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue