mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-20 10:34:44 +00:00
Merge pull request #443 from Fate-JH/turret-kick2
Kick Occupants From Amenities When Facility Is Hacked (properly)
This commit is contained in:
commit
4fa2be151b
|
|
@ -7486,11 +7486,11 @@ class WorldSessionActor extends Actor
|
|||
}
|
||||
value = start_num + deciseconds_remaining
|
||||
sendResponse(PlanetsideAttributeMessage(target_guid, 20, value))
|
||||
continent.GUID(player.VehicleSeated) match {
|
||||
case Some(mountable : Amenity with Mountable) =>
|
||||
if(mountable.Owner.GUID == capture_terminal.Owner.GUID) {
|
||||
continent.VehicleEvents ! VehicleServiceMessage(continent.Id, VehicleAction.KickPassenger(player.GUID, mountable.Seats.head._1, true, mountable.GUID))
|
||||
}
|
||||
GetMountableAndSeat(None, player) match {
|
||||
case (Some(mountable : Amenity), Some(seat)) if mountable.Owner.GUID == capture_terminal.Owner.GUID =>
|
||||
mountable.Seats(seat).Occupant = None
|
||||
player.VehicleSeated = None
|
||||
continent.VehicleEvents ! VehicleServiceMessage(continent.Id, VehicleAction.KickPassenger(player.GUID, seat, true, mountable.GUID))
|
||||
case _ => ;
|
||||
}
|
||||
case _ => log.warn("HackCaptureTerminal: hack state monitor not defined")
|
||||
|
|
|
|||
Loading…
Reference in a new issue